Package org.eclipse.net4j.db.jdbc
Class DelegatingConnection
java.lang.Object
org.eclipse.net4j.db.jdbc.DelegatingConnection
- All Implemented Interfaces:
AutoCloseable
,Connection
,Wrapper
- Direct Known Subclasses:
DelegatingConnection.Default
- Author:
- Eike Stepper
-
Nested Class Summary
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Since JDK 1.7.void
void
close()
void
commit()
createArrayOf
(String typeName, Object[] elements) Since JDK 1.6.Since JDK 1.6.Since JDK 1.6.Since JDK 1.6.Since JDK 1.6.createStatement
(int resultSetType, int resultSetConcurrency) createStatement
(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct
(String typeName, Object[] attributes) Since JDK 1.6.boolean
Since JDK 1.6.getClientInfo
(String name) Since JDK 1.6.final Connection
int
int
Since JDK 1.7.Since JDK 1.7.int
boolean
isClosed()
boolean
boolean
isValid
(int timeout) Since JDK 1.6.boolean
isWrapperFor
(Class<?> iface) Since JDK 1.6.prepareCall
(String sql) prepareCall
(String sql, int resultSetType, int resultSetConcurrency) prepareCall
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) abstract PreparedStatement
prepareStatement
(String sql) abstract PreparedStatement
prepareStatement
(String sql, int autoGeneratedKeys) abstract PreparedStatement
prepareStatement
(String sql, int[] columnIndexes) abstract PreparedStatement
prepareStatement
(String sql, int resultSetType, int resultSetConcurrency) abstract PreparedStatement
prepareStatement
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) abstract PreparedStatement
prepareStatement
(String sql, String[] columnNames) void
releaseSavepoint
(Savepoint savepoint) void
rollback()
void
void
setAutoCommit
(boolean autoCommit) void
setCatalog
(String catalog) void
setClientInfo
(String name, String value) Since JDK 1.6.void
setClientInfo
(Properties properties) Since JDK 1.6.void
setHoldability
(int holdability) void
setNetworkTimeout
(Executor executor, int milliseconds) Since JDK 1.7.void
setReadOnly
(boolean readOnly) setSavepoint
(String name) void
Since JDK 1.7.void
setTransactionIsolation
(int level) void
setTypeMap
(Map<String, Class<?>> map) <T> T
Since JDK 1.6.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Constructor Details
-
DelegatingConnection
-
-
Method Details
-
getDelegate
-
prepareStatement
- Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException - Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException - Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException - Specified by:
prepareStatement
in interfaceConnection
- Throws:
SQLException
-
createStatement
- Specified by:
createStatement
in interfaceConnection
- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCall
in interfaceConnection
- Throws:
SQLException
-
nativeSQL
- Specified by:
nativeSQL
in interfaceConnection
- Throws:
SQLException
-
setAutoCommit
- Specified by:
setAutoCommit
in interfaceConnection
- Throws:
SQLException
-
getAutoCommit
- Specified by:
getAutoCommit
in interfaceConnection
- Throws:
SQLException
-
commit
- Specified by:
commit
in interfaceConnection
- Throws:
SQLException
-
rollback
- Specified by:
rollback
in interfaceConnection
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceConnection
- Throws:
SQLException
-
isClosed
- Specified by:
isClosed
in interfaceConnection
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfaceConnection
- Throws:
SQLException
-
setReadOnly
- Specified by:
setReadOnly
in interfaceConnection
- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceConnection
- Throws:
SQLException
-
setCatalog
- Specified by:
setCatalog
in interfaceConnection
- Throws:
SQLException
-
getCatalog
- Specified by:
getCatalog
in interfaceConnection
- Throws:
SQLException
-
setTransactionIsolation
- Specified by:
setTransactionIsolation
in interfaceConnection
- Throws:
SQLException
-
getTransactionIsolation
- Specified by:
getTransactionIsolation
in interfaceConnection
- Throws:
SQLException
-
getWarnings
- Specified by:
getWarnings
in interfaceConnection
- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarnings
in interfaceConnection
- Throws:
SQLException
-
createStatement
- Specified by:
createStatement
in interfaceConnection
- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareCall
in interfaceConnection
- Throws:
SQLException
-
getTypeMap
- Specified by:
getTypeMap
in interfaceConnection
- Throws:
SQLException
-
setTypeMap
- Specified by:
setTypeMap
in interfaceConnection
- Throws:
SQLException
-
setHoldability
- Specified by:
setHoldability
in interfaceConnection
- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldability
in interfaceConnection
- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepoint
in interfaceConnection
- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepoint
in interfaceConnection
- Throws:
SQLException
-
rollback
- Specified by:
rollback
in interfaceConnection
- Throws:
SQLException
-
releaseSavepoint
- Specified by:
releaseSavepoint
in interfaceConnection
- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
createStatement
in interfaceConnection
- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareCall
in interfaceConnection
- Throws:
SQLException
-
unwrap
Since JDK 1.6.- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
Since JDK 1.6.- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
createClob
Since JDK 1.6.- Specified by:
createClob
in interfaceConnection
- Throws:
SQLException
-
createBlob
Since JDK 1.6.- Specified by:
createBlob
in interfaceConnection
- Throws:
SQLException
-
createNClob
Since JDK 1.6.- Specified by:
createNClob
in interfaceConnection
- Throws:
SQLException
-
createSQLXML
Since JDK 1.6.- Specified by:
createSQLXML
in interfaceConnection
- Throws:
SQLException
-
isValid
Since JDK 1.6.- Specified by:
isValid
in interfaceConnection
- Throws:
SQLException
-
setClientInfo
Since JDK 1.6.- Specified by:
setClientInfo
in interfaceConnection
- Throws:
SQLClientInfoException
-
setClientInfo
Since JDK 1.6.- Specified by:
setClientInfo
in interfaceConnection
- Throws:
SQLClientInfoException
-
getClientInfo
Since JDK 1.6.- Specified by:
getClientInfo
in interfaceConnection
- Throws:
SQLException
-
getClientInfo
Since JDK 1.6.- Specified by:
getClientInfo
in interfaceConnection
- Throws:
SQLException
-
createArrayOf
Since JDK 1.6.- Specified by:
createArrayOf
in interfaceConnection
- Throws:
SQLException
-
createStruct
Since JDK 1.6.- Specified by:
createStruct
in interfaceConnection
- Throws:
SQLException
-
setSchema
Since JDK 1.7.- Specified by:
setSchema
in interfaceConnection
- Throws:
SQLException
-
getSchema
Since JDK 1.7.- Specified by:
getSchema
in interfaceConnection
- Throws:
SQLException
-
abort
Since JDK 1.7.- Specified by:
abort
in interfaceConnection
- Throws:
SQLException
-
setNetworkTimeout
Since JDK 1.7.- Specified by:
setNetworkTimeout
in interfaceConnection
- Throws:
SQLException
-
getNetworkTimeout
Since JDK 1.7.- Specified by:
getNetworkTimeout
in interfaceConnection
- Throws:
SQLException
-