org.apache.openjpa.lib.jdbc
Class JDBCEventConnectionDecorator.EventStatement

java.lang.Object
  extended by org.apache.openjpa.lib.jdbc.DelegatingStatement
      extended by org.apache.openjpa.lib.jdbc.JDBCEventConnectionDecorator.EventStatement
All Implemented Interfaces:
Statement, Wrapper, Closeable
Enclosing class:
JDBCEventConnectionDecorator

protected abstract class JDBCEventConnectionDecorator.EventStatement
extends DelegatingStatement

Fires events as appropriate.


Field Summary
 
Fields inherited from class org.apache.openjpa.lib.jdbc.DelegatingStatement
concreteImpl
 
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
 
Constructor Summary
JDBCEventConnectionDecorator.EventStatement(Statement stmnt, JDBCEventConnectionDecorator.EventConnection conn)
           
 
Method Summary
 boolean execute(String sql)
           
 boolean execute(String sql, int i)
           
 boolean execute(String sql, int[] ia)
           
 boolean execute(String sql, String[] sa)
           
protected  ResultSet executeQuery(String sql, boolean wrap)
          Execute the query, with the option of not wrapping it in a DelegatingResultSet, which is the default.
 int executeUpdate(String sql)
           
 int executeUpdate(String sql, int i)
           
 int executeUpdate(String sql, int[] ia)
           
 int executeUpdate(String sql, String[] sa)
           
 
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingStatement
addBatch, appendInfo, cancel, clearBatch, clearWarnings, close, enforceAbstract, equals, executeBatch, executeQuery, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, isClosed, isPoolable, isWrapperFor, newInstance, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, toString, unwrap, wrapResult
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCEventConnectionDecorator.EventStatement

public JDBCEventConnectionDecorator.EventStatement(Statement stmnt,
                                                   JDBCEventConnectionDecorator.EventConnection conn)
Method Detail

executeUpdate

public int executeUpdate(String sql)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class DelegatingStatement
Throws:
SQLException

executeQuery

protected ResultSet executeQuery(String sql,
                                 boolean wrap)
                          throws 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:
SQLException

execute

public boolean execute(String sql)
                throws SQLException
Specified by:
execute in interface Statement
Overrides:
execute in class DelegatingStatement
Throws:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         int i)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class DelegatingStatement
Throws:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         int[] ia)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class DelegatingStatement
Throws:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         String[] sa)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class DelegatingStatement
Throws:
SQLException

execute

public boolean execute(String sql,
                       int i)
                throws SQLException
Specified by:
execute in interface Statement
Overrides:
execute in class DelegatingStatement
Throws:
SQLException

execute

public boolean execute(String sql,
                       int[] ia)
                throws SQLException
Specified by:
execute in interface Statement
Overrides:
execute in class DelegatingStatement
Throws:
SQLException

execute

public boolean execute(String sql,
                       String[] sa)
                throws SQLException
Specified by:
execute in interface Statement
Overrides:
execute in class DelegatingStatement
Throws:
SQLException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.