Package org.apache.derby.iapi.error
Class SQLWarningFactory
java.lang.Object
org.apache.derby.iapi.error.SQLWarningFactory
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLWarning
newSQLWarning
(String messageId, Object... args) Generates a SQLWarning instance based on the supplied messageId and arguments.
-
Constructor Details
-
SQLWarningFactory
public SQLWarningFactory()
-
-
Method Details
-
newSQLWarning
Generates a SQLWarning instance based on the supplied messageId and arguments. 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 inorg.apache.derby.shared.common.reference.SQLState
.args
- Arguments for the warning message- Returns:
- Properly initialized SQLWarning instance.
- See Also:
-