org.apache.openjpa.lib.jdbc
Class JDBCEventConnectionDecorator.EventStatement
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingStatement
org.apache.openjpa.lib.jdbc.JDBCEventConnectionDecorator.EventStatement
- All Implemented Interfaces:
- java.sql.Statement, java.sql.Wrapper, Closeable
- Enclosing class:
- JDBCEventConnectionDecorator
protected abstract class JDBCEventConnectionDecorator.EventStatement
- extends DelegatingStatement
Fires events as appropriate.
Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Method Summary |
protected java.sql.ResultSet |
executeQuery(java.lang.String sql,
boolean wrap)
Execute the query, with the option of not wrapping it in a
DelegatingResultSet , which is the default. |
int |
executeUpdate(java.lang.String sql)
|
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingStatement |
addBatch, appendInfo, cancel, clearBatch, clearWarnings, close, enforceAbstract, equals, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, isWrapperFor, newInstance, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, toString, unwrap, wrapResult |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.Statement |
isClosed, isPoolable, setPoolable |
JDBCEventConnectionDecorator.EventStatement
public JDBCEventConnectionDecorator.EventStatement(java.sql.Statement stmnt,
JDBCEventConnectionDecorator.EventConnection conn)
executeUpdate
public int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
executeUpdate
in interface java.sql.Statement
- Overrides:
executeUpdate
in class DelegatingStatement
- Throws:
java.sql.SQLException
executeQuery
protected java.sql.ResultSet executeQuery(java.lang.String sql,
boolean wrap)
throws java.sql.SQLException
- Description copied from class:
DelegatingStatement
- Execute the query, with the option of not wrapping it in a
DelegatingResultSet
, which is the default.
- Overrides:
executeQuery
in class DelegatingStatement
- Throws:
java.sql.SQLException