|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.jdbc.DelegatingConnection org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection
protected abstract class LoggingConnectionDecorator.LoggingConnection
Logging connection.
Nested Class Summary | |
---|---|
protected class |
LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement
CallableStatement decorated with logging. |
protected class |
LoggingConnectionDecorator.LoggingConnection.LoggingDatabaseMetaData
Metadata wrapper that logs actions. |
protected class |
LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
|
protected class |
LoggingConnectionDecorator.LoggingConnection.LoggingResultSet
Warning-handling result set. |
protected class |
LoggingConnectionDecorator.LoggingConnection.LoggingStatement
Statement wrapper that logs SQL to the parent data source and remembers the last piece of SQL to be executed on it. |
Field Summary |
---|
Fields inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection |
---|
concreteImpl |
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
LoggingConnectionDecorator.LoggingConnection(Connection conn)
|
Method Summary | |
---|---|
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 type,
int concurrency,
boolean wrap)
Create a statement, with the option of not wrapping it in a DelegatingStatement , which is the default. |
protected Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean wrap)
|
protected DatabaseMetaData |
getMetaData(boolean wrap)
Return the metadata, with the option of not wrapping it in a DelegatingDatabaseMetaData , which is the default. |
protected CallableStatement |
prepareCall(String sql,
boolean wrap)
Prepare a call, with the option of not wrapping it in a DelegatingCallableStatement , 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[] columnIndexes,
boolean wrap)
|
protected PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys,
boolean wrap)
|
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. |
protected PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean wrap)
|
protected PreparedStatement |
prepareStatement(String sql,
String[] columnNames,
boolean wrap)
|
void |
releaseSavepoint(Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(Savepoint savepoint)
|
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String name)
|
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection |
---|
appendInfo, clearWarnings, createStatement, createStatement, createStatement, enforceAbstract, equals, getAutoCommit, getCatalog, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isWrapperFor, nativeSQL, newInstance, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, setAutoCommit, setCatalog, setHoldability, setReadOnly, setTransactionIsolation, setTypeMap, toString, unwrap |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.Connection |
---|
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo |
Constructor Detail |
---|
public LoggingConnectionDecorator.LoggingConnection(Connection conn) throws SQLException
SQLException
Method Detail |
---|
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
protected Statement createStatement(boolean wrap) throws SQLException
DelegatingConnection
DelegatingStatement
, which is the default.
createStatement
in class DelegatingConnection
SQLException
protected Statement createStatement(int type, int concurrency, boolean wrap) throws SQLException
DelegatingConnection
DelegatingStatement
, which is the default.
createStatement
in class DelegatingConnection
SQLException
protected CallableStatement prepareCall(String sql, boolean wrap) throws SQLException
DelegatingConnection
DelegatingCallableStatement
, which is the default.
prepareCall
in class DelegatingConnection
SQLException
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
public void close() throws SQLException
close
in interface Connection
close
in interface Closeable
close
in class DelegatingConnection
SQLException
public Savepoint setSavepoint() throws SQLException
setSavepoint
in interface Connection
setSavepoint
in class DelegatingConnection
SQLException
public Savepoint setSavepoint(String name) throws SQLException
setSavepoint
in interface Connection
setSavepoint
in class DelegatingConnection
SQLException
public void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
rollback
in class DelegatingConnection
SQLException
public void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint
in interface Connection
releaseSavepoint
in class DelegatingConnection
SQLException
protected Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability, boolean wrap) throws SQLException
createStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, boolean wrap) throws SQLException
prepareStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, int autoGeneratedKeys, boolean wrap) throws SQLException
prepareStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, int[] columnIndexes, boolean wrap) throws SQLException
prepareStatement
in class DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, String[] columnNames, boolean wrap) throws SQLException
prepareStatement
in class DelegatingConnection
SQLException
protected DatabaseMetaData getMetaData(boolean wrap) throws SQLException
DelegatingConnection
DelegatingDatabaseMetaData
, which is the default.
getMetaData
in class DelegatingConnection
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |