Top Description Constructors Methods
org.apache.derby.shared.common.error

public Class SQLWarningFactory

extends Object
Class Inheritance
Imports
java.sql.SQLWarning, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.shared.common.error.ExceptionSeverity, org.apache.derby.shared.common.reference.SQLState

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SQLWarning

Returns:

Properly initialized SQLWarning instance.
newSQLWarning
(String
A Derby messageId as defined in org.apache.derby.shared.common.reference.SQLState.
messageId
,
Object...
Arguments for the warning message
args
)

Generates a SQLWarning instance based on the supplied messageId and arguments.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SQLWarningFactoryback to summary
public SQLWarningFactory()

Method Detail

newSQLWarningback to summary
public static SQLWarning newSQLWarning(String messageId, Object... args)

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:String

A Derby messageId as defined in org.apache.derby.shared.common.reference.SQLState.

args:Object[]

Arguments for the warning message

Returns:SQLWarning

Properly initialized SQLWarning instance.

See Also
org.apache.derby.shared.common.reference.SQLState