public class ProxyNonClosingSqlConnection extends ProxySqlConnection
ProxyNonClosingSqlConnection is a simple wrapper around a SqlConnection
The only difference here is that calling close will not close the connection. Instead a trace logging message will show that we are ignoring the close() method.
When you do actually want to close the connection, call stop().
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
ProxyNonClosingSqlConnection(java.sql.Connection c) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getConnection, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setConnection, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, stop, unwrap
public ProxyNonClosingSqlConnection(java.sql.Connection c)
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Connection
close
in class ProxySqlConnection
java.sql.SQLException
Connection.close()