Module org.tquadrat.foundation.sql
Package org.tquadrat.foundation.sql
Class StaticConnectionProvider.UncloseableConnection
java.lang.Object
org.tquadrat.foundation.sql.StaticConnectionProvider.UncloseableConnection
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper
- Enclosing class:
StaticConnectionProvider
@ClassVersion(sourceVersion="$Id: StaticConnectionProvider.java 1075 2023-10-02 12:37:07Z tquadrat $")
@API(status=INTERNAL,
since="0.0.1")
private final class StaticConnectionProvider.UncloseableConnection
extends Object
implements Connection
An implementation of
Connection
that replaces the implementation of the method
close()
by a dummy that does nothing.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: StaticConnectionProvider.java 1075 2023-10-02 12:37:07Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.StaticConnectionProvider.UncloseableConnection"
-
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 TypeMethodDescriptionfinal voidfinal voidfinal voidfinal voidclose()final voidcommit()final ArraycreateArrayOf(String typeName, Object[] elements) final Blobfinal Clobfinal NClobfinal SQLXMLfinal Statementfinal StatementcreateStatement(int resultSetType, int resultSetConcurrency) final StatementcreateStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) final StructcreateStruct(String typeName, Object[] attributes) final voidfinal booleanfinal Stringfinal Propertiesfinal StringgetClientInfo(String name) final intfinal DatabaseMetaDatafinal intfinal Stringfinal intfinal SQLWarningfinal booleanisClosed()final booleanfinal booleanisValid(int timeout) final booleanisWrapperFor(Class<?> iface) final Stringfinal CallableStatementprepareCall(String sql) final CallableStatementprepareCall(String sql, int resultSetType, int resultSetConcurrency) final CallableStatementprepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) final PreparedStatementprepareStatement(String sql) final PreparedStatementprepareStatement(String sql, int autoGeneratedKeys) final PreparedStatementprepareStatement(String sql, int[] columnIndexes) final PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency) final PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) final PreparedStatementprepareStatement(String sql, String[] columnNames) final voidreleaseSavepoint(Savepoint savepoint) final voidrollback()final voidfinal voidsetAutoCommit(boolean autoCommit) final voidsetCatalog(String catalog) final voidsetClientInfo(String name, String value) final voidsetClientInfo(Properties properties) final voidsetHoldability(int holdability) final voidsetNetworkTimeout(Executor executor, int milliseconds) final voidsetReadOnly(boolean readOnly) final Savepointfinal SavepointsetSavepoint(String name) final voidfinal voidsetShardingKey(ShardingKey shardingKey) final voidsetShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey) final booleansetShardingKeyIfValid(ShardingKey shardingKey, int timeout) final booleansetShardingKeyIfValid(ShardingKey shardingKey, ShardingKey superShardingKey, int timeout) final voidsetTransactionIsolation(int level) final voidsetTypeMap(Map<String, Class<?>> map) final <T> T
-
Constructor Details
-
UncloseableConnection
public UncloseableConnection()Creates an instance ofUncloseableConnection.
-
-
Method Details
-
abort
- Specified by:
abortin interfaceConnection- Throws:
SQLException
-
beginRequest
- Specified by:
beginRequestin interfaceConnection- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceConnection- Throws:
SQLException
-
close
This implementation does nothing!
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
createArrayOf
- Specified by:
createArrayOfin interfaceConnection- Throws:
SQLException
-
createBlob
- Specified by:
createBlobin interfaceConnection- Throws:
SQLException
-
createClob
- Specified by:
createClobin interfaceConnection- Throws:
SQLException
-
createNClob
- Specified by:
createNClobin interfaceConnection- Throws:
SQLException
-
createSQLXML
- Specified by:
createSQLXMLin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
public final Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
public final Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStruct
- Specified by:
createStructin interfaceConnection- Throws:
SQLException
-
endRequest
- Specified by:
endRequestin interfaceConnection- Throws:
SQLException
-
getAutoCommit
- Specified by:
getAutoCommitin interfaceConnection- Throws:
SQLException
-
getCatalog
- Specified by:
getCatalogin interfaceConnection- Throws:
SQLException
-
getClientInfo
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
getClientInfo
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldabilityin interfaceConnection- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceConnection- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
getSchema
- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
getTransactionIsolation
- Specified by:
getTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getTypeMap
- Specified by:
getTypeMapin interfaceConnection- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceConnection- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceConnection- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceConnection- Throws:
SQLException
-
isValid
- Specified by:
isValidin interfaceConnection- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
nativeSQL
- Specified by:
nativeSQLin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
public final CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
public final CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public final PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public final PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public final PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
releaseSavepoint
- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
setAutoCommit
- Specified by:
setAutoCommitin interfaceConnection- Throws:
SQLException
-
setCatalog
- Specified by:
setCatalogin interfaceConnection- Throws:
SQLException
-
setClientInfo
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
setClientInfo
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
setHoldability
- Specified by:
setHoldabilityin interfaceConnection- Throws:
SQLException
-
setNetworkTimeout
- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
setReadOnly
- Specified by:
setReadOnlyin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSchema
- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
setShardingKey
public final void setShardingKey(ShardingKey shardingKey, ShardingKey superShardingKey) throws SQLException - Specified by:
setShardingKeyin interfaceConnection- Throws:
SQLException
-
setShardingKey
- Specified by:
setShardingKeyin interfaceConnection- Throws:
SQLException
-
setShardingKeyIfValid
public final boolean setShardingKeyIfValid(ShardingKey shardingKey, ShardingKey superShardingKey, int timeout) throws SQLException - Specified by:
setShardingKeyIfValidin interfaceConnection- Throws:
SQLException
-
setShardingKeyIfValid
public final boolean setShardingKeyIfValid(ShardingKey shardingKey, int timeout) throws SQLException - Specified by:
setShardingKeyIfValidin interfaceConnection- Throws:
SQLException
-
setTransactionIsolation
- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLException
-
setTypeMap
- Specified by:
setTypeMapin interfaceConnection- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
