public class ConfiguringConnectionDecorator.ConfiguringConnection extends DelegatingConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
ConfiguringConnection(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
protected Statement |
createStatement(boolean wrap)
Create a statement, with the option of not wrapping it in a
DelegatingStatement, which is the default. |
protected 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 PreparedStatement |
prepareStatement(String sql,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a
DelegatingPreparedStatement, which is the default. |
protected PreparedStatement |
prepareStatement(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) |
abort, appendInfo, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrappublic ConfiguringConnection(Connection conn) throws SQLException
SQLExceptionpublic void setAutoCommit(boolean auto)
throws SQLException
setAutoCommit in interface ConnectionsetAutoCommit in class DelegatingConnectionSQLExceptionpublic void commit()
throws SQLException
commit in interface Connectioncommit in class DelegatingConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback in interface Connectionrollback in class DelegatingConnectionSQLExceptionprotected PreparedStatement prepareStatement(String sql, boolean wrap) throws SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.prepareStatement in class DelegatingConnectionSQLExceptionprotected PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap) throws SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.prepareStatement in class DelegatingConnectionSQLExceptionprotected Statement createStatement(boolean wrap) throws SQLException
DelegatingConnectionDelegatingStatement, which is the default.createStatement in class DelegatingConnectionSQLExceptionprotected Statement createStatement(int rsType, int rsConcur, boolean wrap) throws SQLException
DelegatingConnectionDelegatingStatement, which is the default.createStatement in class DelegatingConnectionSQLExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.