org.apache.derby.iapi.error
Class SQLWarningFactory
java.lang.Object
org.apache.derby.iapi.error.SQLWarningFactory
public class SQLWarningFactory
- extends java.lang.Object
This class generates SQLWarning instances. It has an understanding of Derby's
internal error/warning message Ids, and transforms these to localised error
messages and appropriate SQLState.
Method Summary |
static java.sql.SQLWarning |
newSQLWarning(java.lang.String messageId)
Generates a SQLWarning instance based on the supplied messageId. |
static java.sql.SQLWarning |
newSQLWarning(java.lang.String messageId,
java.lang.Object arg)
Generates a SQLWarning instance based on the supplied messageId and
argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLWarningFactory
public SQLWarningFactory()
newSQLWarning
public static java.sql.SQLWarning newSQLWarning(java.lang.String messageId)
- Generates a SQLWarning instance based on the supplied messageId. It looks
up the messageId to generate a localised warning message. Also, SQLState
is set correctly based on the messageId.
- Parameters:
messageId
- A Derby messageId as defined in
org.apache.derby.shared.common.reference.SQLState
.
- Returns:
- Properly initialized SQLWarning instance.
- See Also:
SQLState
newSQLWarning
public static java.sql.SQLWarning newSQLWarning(java.lang.String messageId,
java.lang.Object arg)
- Generates a SQLWarning instance based on the supplied messageId and
argument. It looks up the messageId to generate a localised warning
message. Also, SQLState is set correctly based on the messageId.
- Parameters:
messageId
- A Derby messageId as defined in
org.apache.derby.shared.common.reference.SQLState
.arg
- An argument for the warning message
- Returns:
- Properly initialized SQLWarning instance.
- See Also:
SQLState
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.