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
Nested Classes -
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSince JDK 1.7.voidvoidclose()voidcommit()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.booleanSince JDK 1.6.getClientInfo(String name) Since JDK 1.6.final ConnectionintintSince JDK 1.7.Since JDK 1.7.intbooleanisClosed()booleanbooleanisValid(int timeout) Since JDK 1.6.booleanisWrapperFor(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 PreparedStatementprepareStatement(String sql) abstract PreparedStatementprepareStatement(String sql, int autoGeneratedKeys) abstract PreparedStatementprepareStatement(String sql, int[] columnIndexes) abstract PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency) abstract PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) abstract PreparedStatementprepareStatement(String sql, String[] columnNames) voidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean autoCommit) voidsetCatalog(String catalog) voidsetClientInfo(String name, String value) Since JDK 1.6.voidsetClientInfo(Properties properties) Since JDK 1.6.voidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int milliseconds) Since JDK 1.7.voidsetReadOnly(boolean readOnly) setSavepoint(String name) voidSince JDK 1.7.voidsetTransactionIsolation(int level) voidsetTypeMap(Map<String, Class<?>> map) <T> TSince JDK 1.6.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Constructor Details
-
DelegatingConnection
-
-
Method Details
-
getDelegate
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
nativeSQL
- Specified by:
nativeSQLin interfaceConnection- Throws:
SQLException
-
setAutoCommit
- Specified by:
setAutoCommitin interfaceConnection- Throws:
SQLException
-
getAutoCommit
- Specified by:
getAutoCommitin interfaceConnection- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceConnection- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceConnection- Throws:
SQLException
-
setReadOnly
- Specified by:
setReadOnlyin interfaceConnection- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceConnection- Throws:
SQLException
-
setCatalog
- Specified by:
setCatalogin interfaceConnection- Throws:
SQLException
-
getCatalog
- Specified by:
getCatalogin interfaceConnection- Throws:
SQLException
-
setTransactionIsolation
- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getTransactionIsolation
- Specified by:
getTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceConnection- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
getTypeMap
- Specified by:
getTypeMapin interfaceConnection- Throws:
SQLException
-
setTypeMap
- Specified by:
setTypeMapin interfaceConnection- Throws:
SQLException
-
setHoldability
- Specified by:
setHoldabilityin interfaceConnection- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldabilityin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
releaseSavepoint
- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
unwrap
Since JDK 1.6.- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
Since JDK 1.6.- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
createClob
Since JDK 1.6.- Specified by:
createClobin interfaceConnection- Throws:
SQLException
-
createBlob
Since JDK 1.6.- Specified by:
createBlobin interfaceConnection- Throws:
SQLException
-
createNClob
Since JDK 1.6.- Specified by:
createNClobin interfaceConnection- Throws:
SQLException
-
createSQLXML
Since JDK 1.6.- Specified by:
createSQLXMLin interfaceConnection- Throws:
SQLException
-
isValid
Since JDK 1.6.- Specified by:
isValidin interfaceConnection- Throws:
SQLException
-
setClientInfo
Since JDK 1.6.- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
setClientInfo
Since JDK 1.6.- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
getClientInfo
Since JDK 1.6.- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
getClientInfo
Since JDK 1.6.- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
createArrayOf
Since JDK 1.6.- Specified by:
createArrayOfin interfaceConnection- Throws:
SQLException
-
createStruct
Since JDK 1.6.- Specified by:
createStructin interfaceConnection- Throws:
SQLException
-
setSchema
Since JDK 1.7.- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
getSchema
Since JDK 1.7.- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
abort
Since JDK 1.7.- Specified by:
abortin interfaceConnection- Throws:
SQLException
-
setNetworkTimeout
Since JDK 1.7.- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
getNetworkTimeout
Since JDK 1.7.- Specified by:
getNetworkTimeoutin interfaceConnection- Throws:
SQLException
-