org.apache.openjpa.lib.jdbc
protected abstract class JDBCEventConnectionDecorator.EventConnection extends DelegatingConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
JDBCEventConnectionDecorator.EventConnection(Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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() |
appendInfo, clearWarnings, 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, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo
public JDBCEventConnectionDecorator.EventConnection(Connection conn)
public void commit() throws SQLException
commit
in interface Connection
commit
in class DelegatingConnection
SQLException
public void rollback() throws SQLException
rollback
in interface Connection
rollback
in class DelegatingConnection
SQLException
protected Statement createStatement(boolean wrap) throws SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
SQLException
protected Statement createStatement(int rsType, int rsConcur, boolean wrap) throws SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, boolean wrap) throws SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap) throws SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
SQLException
public void close() throws SQLException
close
in interface Connection
close
in interface Closeable
close
in class DelegatingConnection
SQLException
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.