- java.lang.Object
- 
- org.jooq.tools.jdbc.JDBC41Connection
- 
- org.jooq.tools.jdbc.DefaultConnection
 
 
- 
- All Implemented Interfaces:
- AutoCloseable,- Connection,- Wrapper
 - Direct Known Subclasses:
- LoggingConnection
 
 public class DefaultConnection extends JDBC41Connection implements Connection A default JDBC Connection implementation delegating all JDBC 4.0 calls to an internal delegate.- Author:
- Lukas Eder
 
- 
- 
Field Summary- 
Fields inherited from interface java.sql.ConnectionTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultConnection(Connection delegate)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
DefaultConnectionpublic DefaultConnection(Connection delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic Connection getDelegate() 
 - 
unwrappublic <T> T unwrap(Class<T> iface) throws SQLException - Specified by:
- unwrapin interface- Wrapper
- Throws:
- SQLException
 
 - 
isWrapperForpublic boolean isWrapperFor(Class<?> iface) throws SQLException - Specified by:
- isWrapperForin interface- Wrapper
- Throws:
- SQLException
 
 - 
createStatementpublic Statement createStatement() throws SQLException - Specified by:
- createStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareCallpublic CallableStatement prepareCall(String sql) throws SQLException - Specified by:
- prepareCallin interface- Connection
- Throws:
- SQLException
 
 - 
nativeSQLpublic String nativeSQL(String sql) throws SQLException - Specified by:
- nativeSQLin interface- Connection
- Throws:
- SQLException
 
 - 
setAutoCommitpublic void setAutoCommit(boolean autoCommit) throws SQLException- Specified by:
- setAutoCommitin interface- Connection
- Throws:
- SQLException
 
 - 
getAutoCommitpublic boolean getAutoCommit() throws SQLException- Specified by:
- getAutoCommitin interface- Connection
- Throws:
- SQLException
 
 - 
commitpublic void commit() throws SQLException- Specified by:
- commitin interface- Connection
- Throws:
- SQLException
 
 - 
rollbackpublic void rollback() throws SQLException- Specified by:
- rollbackin interface- Connection
- Throws:
- SQLException
 
 - 
closepublic void close() throws SQLException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Connection
- Throws:
- SQLException
 
 - 
isClosedpublic boolean isClosed() throws SQLException- Specified by:
- isClosedin interface- Connection
- Throws:
- SQLException
 
 - 
getMetaDatapublic DatabaseMetaData getMetaData() throws SQLException - Specified by:
- getMetaDatain interface- Connection
- Throws:
- SQLException
 
 - 
setReadOnlypublic void setReadOnly(boolean readOnly) throws SQLException- Specified by:
- setReadOnlyin interface- Connection
- Throws:
- SQLException
 
 - 
isReadOnlypublic boolean isReadOnly() throws SQLException- Specified by:
- isReadOnlyin interface- Connection
- Throws:
- SQLException
 
 - 
setCatalogpublic void setCatalog(String catalog) throws SQLException - Specified by:
- setCatalogin interface- Connection
- Throws:
- SQLException
 
 - 
getCatalogpublic String getCatalog() throws SQLException - Specified by:
- getCatalogin interface- Connection
- Throws:
- SQLException
 
 - 
setTransactionIsolationpublic void setTransactionIsolation(int level) throws SQLException- Specified by:
- setTransactionIsolationin interface- Connection
- Throws:
- SQLException
 
 - 
getTransactionIsolationpublic int getTransactionIsolation() throws SQLException- Specified by:
- getTransactionIsolationin interface- Connection
- Throws:
- SQLException
 
 - 
getWarningspublic SQLWarning getWarnings() throws SQLException - Specified by:
- getWarningsin interface- Connection
- Throws:
- SQLException
 
 - 
clearWarningspublic void clearWarnings() throws SQLException- Specified by:
- clearWarningsin interface- Connection
- Throws:
- SQLException
 
 - 
createStatementpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
- createStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareCallpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
- prepareCallin interface- Connection
- Throws:
- SQLException
 
 - 
getTypeMappublic Map<String,Class<?>> getTypeMap() throws SQLException - Specified by:
- getTypeMapin interface- Connection
- Throws:
- SQLException
 
 - 
setTypeMappublic void setTypeMap(Map<String,Class<?>> map) throws SQLException - Specified by:
- setTypeMapin interface- Connection
- Throws:
- SQLException
 
 - 
setHoldabilitypublic void setHoldability(int holdability) throws SQLException- Specified by:
- setHoldabilityin interface- Connection
- Throws:
- SQLException
 
 - 
getHoldabilitypublic int getHoldability() throws SQLException- Specified by:
- getHoldabilityin interface- Connection
- Throws:
- SQLException
 
 - 
setSavepointpublic Savepoint setSavepoint() throws SQLException - Specified by:
- setSavepointin interface- Connection
- Throws:
- SQLException
 
 - 
setSavepointpublic Savepoint setSavepoint(String name) throws SQLException - Specified by:
- setSavepointin interface- Connection
- Throws:
- SQLException
 
 - 
rollbackpublic void rollback(Savepoint savepoint) throws SQLException - Specified by:
- rollbackin interface- Connection
- Throws:
- SQLException
 
 - 
releaseSavepointpublic void releaseSavepoint(Savepoint savepoint) throws SQLException - Specified by:
- releaseSavepointin interface- Connection
- Throws:
- SQLException
 
 - 
createStatementpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
- createStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareCallpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
- prepareCallin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
prepareStatementpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException - Specified by:
- prepareStatementin interface- Connection
- Throws:
- SQLException
 
 - 
createClobpublic Clob createClob() throws SQLException - Specified by:
- createClobin interface- Connection
- Throws:
- SQLException
 
 - 
createBlobpublic Blob createBlob() throws SQLException - Specified by:
- createBlobin interface- Connection
- Throws:
- SQLException
 
 - 
createNClobpublic NClob createNClob() throws SQLException - Specified by:
- createNClobin interface- Connection
- Throws:
- SQLException
 
 - 
createSQLXMLpublic SQLXML createSQLXML() throws SQLException - Specified by:
- createSQLXMLin interface- Connection
- Throws:
- SQLException
 
 - 
isValidpublic boolean isValid(int timeout) throws SQLException- Specified by:
- isValidin interface- Connection
- Throws:
- SQLException
 
 - 
setClientInfopublic void setClientInfo(String name, String value) throws SQLClientInfoException - Specified by:
- setClientInfoin interface- Connection
- Throws:
- SQLClientInfoException
 
 - 
setClientInfopublic void setClientInfo(Properties properties) throws SQLClientInfoException - Specified by:
- setClientInfoin interface- Connection
- Throws:
- SQLClientInfoException
 
 - 
getClientInfopublic String getClientInfo(String name) throws SQLException - Specified by:
- getClientInfoin interface- Connection
- Throws:
- SQLException
 
 - 
getClientInfopublic Properties getClientInfo() throws SQLException - Specified by:
- getClientInfoin interface- Connection
- Throws:
- SQLException
 
 - 
createArrayOfpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException - Specified by:
- createArrayOfin interface- Connection
- Throws:
- SQLException
 
 - 
createStructpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException - Specified by:
- createStructin interface- Connection
- Throws:
- SQLException
 
 - 
setSchemapublic void setSchema(String s) throws SQLException - Specified by:
- setSchemain interface- Connection
- Overrides:
- setSchemain class- JDBC41Connection
- Throws:
- SQLException
 
 - 
getSchemapublic String getSchema() throws SQLException - Specified by:
- getSchemain interface- Connection
- Overrides:
- getSchemain class- JDBC41Connection
- Throws:
- SQLException
 
 - 
abortpublic void abort(Executor executor) throws SQLException - Specified by:
- abortin interface- Connection
- Overrides:
- abortin class- JDBC41Connection
- Throws:
- SQLException
 
 - 
setNetworkTimeoutpublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException - Specified by:
- setNetworkTimeoutin interface- Connection
- Overrides:
- setNetworkTimeoutin class- JDBC41Connection
- Throws:
- SQLException
 
 - 
getNetworkTimeoutpublic int getNetworkTimeout() throws SQLException- Specified by:
- getNetworkTimeoutin interface- Connection
- Overrides:
- getNetworkTimeoutin class- JDBC41Connection
- Throws:
- SQLException
 
 - 
beginRequestpublic void beginRequest() throws SQLException- Specified by:
- beginRequestin interface- Connection
- Throws:
- SQLException
 
 - 
endRequestpublic void endRequest() throws SQLException- Specified by:
- endRequestin interface- Connection
- Throws:
- SQLException
 
 - 
setShardingKeyIfValidpublic boolean setShardingKeyIfValid(ShardingKey shardingKey, ShardingKey superShardingKey, int timeout) throws SQLException - Specified by:
- setShardingKeyIfValidin interface- Connection
- Throws:
- SQLException
 
 - 
setShardingKeyIfValidpublic boolean setShardingKeyIfValid(ShardingKey shardingKey, int timeout) throws SQLException - Specified by:
- setShardingKeyIfValidin interface- Connection
- Throws:
- SQLException
 
 - 
setShardingKeypublic void setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey) throws SQLException - Specified by:
- setShardingKeyin interface- Connection
- Throws:
- SQLException
 
 - 
setShardingKeypublic void setShardingKey(ShardingKey shardingKey) throws SQLException - Specified by:
- setShardingKeyin interface- Connection
- Throws:
- SQLException
 
 
- 
 
-