| Modifier and Type | Field and Description |
|---|---|
| private static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| public static void | checkForSupportedDataType(int dataType)
Checks whether a data type is supported and raises a SQLException if it isn't. |
| public static void | checkSupportedRaiseStandard(int dataType)
Checks whether a data type is supported and raises a StandardException if it isn't. |
| public static SQLException | |
| pack-priv static SQLException | |
| public static SQLException | |
| private static boolean | isSupportedType(int
the data type to check dataType)Returns false if a data type is not supported for:
|
| public static SQLException | |
| public static void | logAndThrowSQLException(SQLException
SQLException to log and throw se)Log SQLException to the error log if the severity exceeds the logSeverityLevel and then throw it. |
| private static void | |
| public static void | logSQLException(SQLException
SQLException to log se)Log an SQLException to the error log or to the console if there is no error log available. |
| pack-priv static IOException | Returns: anIOException linked to causethe underlying cause of the error cause)Create an |
| public static SQLException | |
| public static SQLException | |
| public static SQLException | |
| pack-priv static SQLException | Returns: an SQLException wrapping another SQLExceptionmessage id messageId, SQLException the next SQLException, possibly null next, Throwable the underlying exception, possibly null cause, Object... the arguments to the message creation args)Generate an |
| pack-priv static SQLException | |
| public static int[] | |
| pack-priv static SQLException | |
| public static String |
| logSeverityLevel | back to summary |
|---|---|
| private static int logSeverityLevel | |
| Util | back to summary |
|---|---|
| public Util() | |
| ASSERT | back to summary |
|---|---|
| public static void ASSERT(EmbedConnection conn, boolean mustBeTrue, String msg) throws SQLException Mimic SanityManager.ASSERT in a JDBC-friendly way, and providing system cleanup for JDBC failures. We need the connection to do cleanup...
| |
| checkForSupportedDataType | back to summary |
|---|---|
| public static void checkForSupportedDataType(int dataType) throws SQLException Checks whether a data type is supported and raises a SQLException if it isn't. | |
| checkSupportedRaiseStandard | back to summary |
|---|---|
| public static void checkSupportedRaiseStandard(int dataType) throws StandardException Checks whether a data type is supported and raises a StandardException if it isn't. | |
| generateCsSQLException | back to summary |
|---|---|
| public static SQLException generateCsSQLException(String error, Object... args) | |
| generateCsSQLException | back to summary |
|---|---|
| pack-priv static SQLException generateCsSQLException(String error, Throwable t, Object... args) | |
| generateCsSQLException | back to summary |
|---|---|
| public static SQLException generateCsSQLException(StandardException se) | |
| isSupportedType | back to summary |
|---|---|
| private static boolean isSupportedType(int dataType) Returns false if a data type is not supported for:
| |
| javaException | back to summary |
|---|---|
| public static SQLException javaException(Throwable t) | |
| logAndThrowSQLException | back to summary |
|---|---|
| public static void logAndThrowSQLException(SQLException se) throws SQLException Log SQLException to the error log if the severity exceeds the logSeverityLevel and then throw it. This method can be used for logging JDBC exceptions to derby.log DERBY-1191.
| |
| logError | back to summary |
|---|---|
| private static void logError(String errorMessage, Throwable t) | |
| logSQLException | back to summary |
|---|---|
| public static void logSQLException(SQLException se) Log an SQLException to the error log or to the console if there is no error log available. This method could perhaps be optimized to have a static shared ErrorStringBuilder and synchronize the method, but this works for now.
| |
| newIOException | back to summary |
|---|---|
| pack-priv static IOException newIOException(Throwable cause) Create an
| |
| noCurrentConnection | back to summary |
|---|---|
| public static SQLException noCurrentConnection() | |
| notImplemented | back to summary |
|---|---|
| public static SQLException notImplemented() | |
| notImplemented | back to summary |
|---|---|
| public static SQLException notImplemented(String feature) | |
| seeNextException | back to summary |
|---|---|
| pack-priv static SQLException seeNextException(String messageId, SQLException next, Throwable cause, Object... args) Generate an
| |
| setStreamFailure | back to summary |
|---|---|
| pack-priv static SQLException setStreamFailure(IOException e) | |
| squashLongs | back to summary |
|---|---|
| public static int[] squashLongs(long[] longs) Squash an array of longs into an array of ints | |
| typeMisMatch | back to summary |
|---|---|
| pack-priv static SQLException typeMisMatch(int targetSQLType) | |
| typeName | back to summary |
|---|---|
| public static String typeName(int jdbcType) | |