| java.lang.Object org.apache.derby.impl.jdbc.Util
Util | abstract public class Util (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 |
Method Summary | |
public static void | ASSERT(EmbedConnection conn, boolean mustBeTrue, String msg) Mimic SanityManager.ASSERT in a JDBC-friendly way,
and providing system cleanup for JDBC failures. | static void | THROWASSERT(EmbedConnection conn, String msg) Mimic SanityManager.THROWASSERT in a JDBC-friendly way,
and providing system cleanup for JDBC failures. | public static SQLException | generateCsSQLException(String error) | public static SQLException | generateCsSQLException(String error, Object arg1) | public static SQLException | generateCsSQLException(String error, Object arg1, Object arg2) | public static SQLException | generateCsSQLException(String error, Object arg1, Object arg2, Object arg3) | static SQLException | generateCsSQLException(String error, Object arg1, Throwable t) | public static SQLException | generateCsSQLException(StandardException se) | public static SQLExceptionFactory | getExceptionFactory() Get the exception factory specific to the version of JDBC which
we are running. | public static SQLException | javaException(Throwable t) | public static SQLException | newEmbedSQLException(String messageId, Object[] args, int severity) | static SQLException | newException(String messageID, Object a1, Object a2, Object a3) | public static SQLException | noCurrentConnection() | public static SQLException | notImplemented() | public static SQLException | notImplemented(String feature) | public static void | setExceptionFactory(SQLExceptionFactory factory) | static SQLException | setStreamFailure(IOException e) | static SQLException | typeMisMatch(int targetSQLType) | public static String | typeName(int jdbcType) |
ASSERT | public static void ASSERT(EmbedConnection conn, boolean mustBeTrue, String msg) throws SQLException(Code) | | Mimic SanityManager.ASSERT in a JDBC-friendly way,
and providing system cleanup for JDBC failures.
We need the connection to do cleanup...
exception: SQLException - the exception |
THROWASSERT | static void THROWASSERT(EmbedConnection conn, String msg) throws SQLException(Code) | | Mimic SanityManager.THROWASSERT in a JDBC-friendly way,
and providing system cleanup for JDBC failures.
We need the connection to do cleanup...
|
getExceptionFactory | public static SQLExceptionFactory getExceptionFactory()(Code) | | Get the exception factory specific to the version of JDBC which
we are running.
|
setExceptionFactory | public static void setExceptionFactory(SQLExceptionFactory factory)(Code) | | this method is called to replace the exception factory to be
used to generate the SQLException or the subclass
|
|
|