public abstract class Jdbc3Utils extends Object
| Constructor and Description |
|---|
Jdbc3Utils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
determineBooleanTypeCode()
Determines the type code for the BOOLEAN JDBC type.
|
static int |
determineDatalinkTypeCode()
Determines the type code for the DATALINK JDBC type.
|
static String |
getBatchResultMessage(String tableName,
int rowIdx,
int resultCode)
Returns the logging message corresponding to the given result code of a batch message.
|
static boolean |
supportsJava14BatchResultCodes()
Determines whether the system supports the Java 1.4 batch result codes.
|
static boolean |
supportsJava14JdbcTypes()
Determines whether the system supports the Java 1.4 JDBC Types, DATALINK
and BOOLEAN.
|
public static boolean supportsJava14JdbcTypes()
true if BOOLEAN and DATALINK are availablepublic static int determineBooleanTypeCode()
throws UnsupportedOperationException
UnsupportedOperationException - If the BOOLEAN type is not supportedpublic static int determineDatalinkTypeCode()
throws UnsupportedOperationException
UnsupportedOperationException - If the DATALINK type is not supportedpublic static boolean supportsJava14BatchResultCodes()
true if SUCCESS_NO_INFO and EXECUTE_FAILED are available
in the Statement classpublic static String getBatchResultMessage(String tableName, int rowIdx, int resultCode)
Statement for details).tableName - The name of the table that the batch update/insert was performed onrowIdx - The index of the row within the batch for which this code isresultCode - The codenull if the code does not indicate an errorCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.