org.apache.openjpa.lib.jdbc
protected abstract class JDBCEventConnectionDecorator.EventConnection extends DelegatingConnection
| Constructor and Description |
|---|
JDBCEventConnectionDecorator.EventConnection(java.sql.Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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() |
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, unwrappublic JDBCEventConnectionDecorator.EventConnection(java.sql.Connection conn)
public void commit()
throws java.sql.SQLException
commit in interface java.sql.Connectioncommit in class DelegatingConnectionjava.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
rollback in interface java.sql.Connectionrollback in class DelegatingConnectionjava.sql.SQLExceptionprotected java.sql.Statement createStatement(boolean wrap)
throws java.sql.SQLException
DelegatingConnectionDelegatingStatement, which is the default.createStatement in class DelegatingConnectionjava.sql.SQLExceptionprotected java.sql.Statement createStatement(int rsType,
int rsConcur,
boolean wrap)
throws java.sql.SQLException
DelegatingConnectionDelegatingStatement, which is the default.createStatement in class DelegatingConnectionjava.sql.SQLExceptionprotected java.sql.PreparedStatement prepareStatement(java.lang.String sql,
boolean wrap)
throws java.sql.SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.prepareStatement in class DelegatingConnectionjava.sql.SQLExceptionprotected java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int rsType,
int rsConcur,
boolean wrap)
throws java.sql.SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.prepareStatement in class DelegatingConnectionjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
close in interface java.sql.Connectionclose in interface Closeableclose in class DelegatingConnectionjava.sql.SQLException