public class Jdbc41Bridge
extends java.lang.Object
AbstractMethodError) when using a JDBC driver written for JDBC 4.0 (Java 6).| Constructor | Description |
|---|---|
Jdbc41Bridge() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
abort(java.sql.Connection connection,
java.util.concurrent.Executor executor) |
Delegates to
Connection.abort(Executor) without throwing an AbstractMethodError. |
static void |
closeOnCompletion(java.sql.Statement statement) |
Delegates to
Statement.closeOnCompletion() without throwing an AbstractMethodError. |
static boolean |
generatedKeyAlwaysReturned(java.sql.DatabaseMetaData databaseMetaData) |
Delegates to
DatabaseMetaData.generatedKeyAlwaysReturned() without throwing a
AbstractMethodError. |
static int |
getNetworkTimeout(java.sql.Connection connection) |
Delegates to
Connection.getNetworkTimeout() without throwing an AbstractMethodError. |
static <T> T |
getObject(java.sql.ResultSet resultSet,
int columnIndex,
java.lang.Class<T> type) |
Delegates to
ResultSet.getObject(int, Class) without throwing an AbstractMethodError. |
static <T> T |
getObject(java.sql.ResultSet resultSet,
java.lang.String columnLabel,
java.lang.Class<T> type) |
Delegates to
ResultSet.getObject(String, Class) without throwing an AbstractMethodError. |
static java.util.logging.Logger |
getParentLogger(javax.sql.CommonDataSource commonDataSource) |
Delegates to
CommonDataSource.getParentLogger() without throwing an AbstractMethodError. |
static java.sql.ResultSet |
getPseudoColumns(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String columnNamePattern) |
Delegates to
DatabaseMetaData.getPseudoColumns(String, String, String, String) without throwing a
AbstractMethodError. |
static java.lang.String |
getSchema(java.sql.Connection connection) |
Delegates to
Connection.getSchema() without throwing an AbstractMethodError. |
static boolean |
isCloseOnCompletion(java.sql.Statement statement) |
Delegates to
Statement.isCloseOnCompletion() without throwing an AbstractMethodError. |
static void |
setNetworkTimeout(java.sql.Connection connection,
java.util.concurrent.Executor executor,
int milliseconds) |
Delegates to
Connection.setNetworkTimeout(Executor, int) without throwing an AbstractMethodError. |
static void |
setSchema(java.sql.Connection connection,
java.lang.String schema) |
Delegates to
Connection.setSchema(String) without throwing an AbstractMethodError. |
public static void abort(java.sql.Connection connection,
java.util.concurrent.Executor executor)
throws java.sql.SQLException
Connection.abort(Executor) without throwing an AbstractMethodError.
If the JDBC driver does not implement Connection.abort(Executor), then call Connection.close().
connection - the receiverexecutor - See Connection.abort(Executor).java.sql.SQLException - See Connection.abort(Executor).Connection.abort(Executor)public static boolean generatedKeyAlwaysReturned(java.sql.DatabaseMetaData databaseMetaData)
throws java.sql.SQLException
DatabaseMetaData.generatedKeyAlwaysReturned() without throwing a
AbstractMethodError.
If the JDBC driver does not implement DatabaseMetaData.generatedKeyAlwaysReturned(), then return false.
databaseMetaData - See DatabaseMetaData.generatedKeyAlwaysReturned()DatabaseMetaData.generatedKeyAlwaysReturned()java.sql.SQLException - See DatabaseMetaData.generatedKeyAlwaysReturned()DatabaseMetaData.generatedKeyAlwaysReturned()public static int getNetworkTimeout(java.sql.Connection connection)
throws java.sql.SQLException
Connection.getNetworkTimeout() without throwing an AbstractMethodError.
If the JDBC driver does not implement Connection.getNetworkTimeout(), then return 0.
connection - the receiverConnection.getNetworkTimeout()java.sql.SQLException - See Connection.getNetworkTimeout()Connection.getNetworkTimeout()public static <T> T getObject(java.sql.ResultSet resultSet,
int columnIndex,
java.lang.Class<T> type)
throws java.sql.SQLException
ResultSet.getObject(int, Class) without throwing an AbstractMethodError.
If the JDBC driver does not implement ResultSet.getObject(int, Class), then return 0.
T - See ResultSet.getObject(int, Class)resultSet - See ResultSet.getObject(int, Class)columnIndex - See ResultSet.getObject(int, Class)type - See ResultSet.getObject(int, Class)ResultSet.getObject(int, Class)java.sql.SQLException - See ResultSet.getObject(int, Class)ResultSet.getObject(int, Class)public static <T> T getObject(java.sql.ResultSet resultSet,
java.lang.String columnLabel,
java.lang.Class<T> type)
throws java.sql.SQLException
ResultSet.getObject(String, Class) without throwing an AbstractMethodError.T - See ResultSet.getObject(String, Class)resultSet - See ResultSet.getObject(String, Class)columnLabel - See ResultSet.getObject(String, Class)type - See ResultSet.getObject(String, Class)ResultSet.getObject(String, Class)java.sql.SQLException - See ResultSet.getObject(String, Class)ResultSet.getObject(int, Class)public static java.sql.ResultSet getPseudoColumns(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String columnNamePattern)
throws java.sql.SQLException
DatabaseMetaData.getPseudoColumns(String, String, String, String) without throwing a
AbstractMethodError.
If the JDBC driver does not implement DatabaseMetaData.getPseudoColumns(String, String, String, String),
then return null.
databaseMetaData - the receivercatalog - See DatabaseMetaData.getPseudoColumns(String, String, String, String)schemaPattern - See DatabaseMetaData.getPseudoColumns(String, String, String, String)tableNamePattern - See DatabaseMetaData.getPseudoColumns(String, String, String, String)columnNamePattern - See DatabaseMetaData.getPseudoColumns(String, String, String, String)DatabaseMetaData.getPseudoColumns(String, String, String, String)java.sql.SQLException - See DatabaseMetaData.getPseudoColumns(String, String, String, String)DatabaseMetaData.getPseudoColumns(String, String, String, String)public static java.lang.String getSchema(java.sql.Connection connection)
throws java.sql.SQLException
Connection.getSchema() without throwing an AbstractMethodError.
If the JDBC driver does not implement Connection.getSchema(), then return null.
connection - the receiverConnection.getSchema().java.sql.SQLException - See Connection.getSchema().Connection.getSchema()public static void setNetworkTimeout(java.sql.Connection connection,
java.util.concurrent.Executor executor,
int milliseconds)
throws java.sql.SQLException
Connection.setNetworkTimeout(Executor, int) without throwing an AbstractMethodError.
If the JDBC driver does not implement Connection.setNetworkTimeout(Executor, int), then do nothing.
connection - the receiverexecutor - See Connection.setNetworkTimeout(Executor, int)milliseconds - Connection.setNetworkTimeout(Executor, int)java.sql.SQLException - Connection.setNetworkTimeout(Executor, int)Connection.setNetworkTimeout(Executor, int)public static void setSchema(java.sql.Connection connection,
java.lang.String schema)
throws java.sql.SQLException
Connection.setSchema(String) without throwing an AbstractMethodError.
If the JDBC driver does not implement Connection.setSchema(String), then do nothing.
connection - the receiverschema - See Connection.setSchema(String).java.sql.SQLException - See Connection.setSchema(String).Connection.setSchema(String)public static void closeOnCompletion(java.sql.Statement statement)
throws java.sql.SQLException
Statement.closeOnCompletion() without throwing an AbstractMethodError.
If the JDBC driver does not implement Statement.closeOnCompletion(), then just check that the connection
is closed to then throw an SQLException.
statement - See Statement.closeOnCompletion()java.sql.SQLException - See Statement.closeOnCompletion()Statement.closeOnCompletion()public static boolean isCloseOnCompletion(java.sql.Statement statement)
throws java.sql.SQLException
Statement.isCloseOnCompletion() without throwing an AbstractMethodError.
If the JDBC driver does not implement Statement.isCloseOnCompletion(), then just check that the
connection is closed to then throw an SQLException.
statement - See Statement.isCloseOnCompletion()Statement.isCloseOnCompletion()java.sql.SQLException - See Statement.isCloseOnCompletion()Statement.closeOnCompletion()public static java.util.logging.Logger getParentLogger(javax.sql.CommonDataSource commonDataSource)
throws java.sql.SQLFeatureNotSupportedException
CommonDataSource.getParentLogger() without throwing an AbstractMethodError.
If the JDBC driver does not implement CommonDataSource.getParentLogger(), then return null.
commonDataSource - See CommonDataSource.getParentLogger()CommonDataSource.getParentLogger()java.sql.SQLFeatureNotSupportedException - See CommonDataSource.getParentLogger()Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.