| java.sql.SQLWarning org.apache.derby.impl.jdbc.EmbedSQLWarning
EmbedSQLWarning | public class EmbedSQLWarning extends SQLWarning (Code) | | This class understands the message protocol and looks up
SQLExceptions based on keys, so that the Local JDBC driver's
messages can be localized.
REMIND: May want to investigate putting some of this in the protocol
side, for the errors that any Cloudscape JDBC driver might return.
The ASSERT mechanism is a wrapper of the basic services,
to ensure that failed asserts at this level will behave
well in a JDBC environment.
author: ames |
EmbedSQLWarning | protected EmbedSQLWarning(String message, String sqlstate)(Code) | | Because SQLWarning does not have settable fields,
the caller of the constructor must do message lookup,
and pass the appropriate values here for message and SQLState,
|
generateCsSQLWarning | public static SQLWarning generateCsSQLWarning(StandardException se)(Code) | | Generate an SQL Warning from a Standard Exception
Parameters: se - Exception to convert to a warning new SQLWarning with message and SQLState of the se |
newEmbedSQLWarning | public static SQLWarning newEmbedSQLWarning(String messageId, Object arg)(Code) | | This looks up the message and sqlstate values and generates
the appropriate exception off of them.
|
toString | public String toString()(Code) | | Override Throwable's toString() to avoid the class name
appearing in the message.
|
|
|