public abstract class ConfiguringConnectionDecorator.ConfiguringConnection extends DelegatingConnection
Constructor and Description |
---|
ConfiguringConnectionDecorator.ConfiguringConnection(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
protected java.sql.Statement |
createStatement(boolean wrap)
Create a statement, with the option of not wrapping it in a
DelegatingStatement , which is the default. |
protected java.sql.Statement |
createStatement(int rsType,
int rsConcur,
boolean wrap)
Create a statement, with the option of not wrapping it in a
DelegatingStatement , which is the default. |
protected java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a
DelegatingPreparedStatement , which is the default. |
protected java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int rsType,
int rsConcur,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a
DelegatingPreparedStatement , which is the default. |
void |
rollback() |
void |
setAutoCommit(boolean auto) |
appendInfo, clearWarnings, close, createStatement, createStatement, createStatement, createStatement, enforceAbstract, equals, getAutoCommit, getCatalog, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isWrapperFor, nativeSQL, newInstance, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
public ConfiguringConnectionDecorator.ConfiguringConnection(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public void setAutoCommit(boolean auto) throws java.sql.SQLException
setAutoCommit
in interface java.sql.Connection
setAutoCommit
in class DelegatingConnection
java.sql.SQLException
public void commit() throws java.sql.SQLException
commit
in interface java.sql.Connection
commit
in class DelegatingConnection
java.sql.SQLException
public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
rollback
in class DelegatingConnection
java.sql.SQLException
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rsType, int rsConcur, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.Statement createStatement(boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.Statement createStatement(int rsType, int rsConcur, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
java.sql.SQLException