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

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

protected abstract class JDBCEventConnectionDecorator.EventPreparedStatement
extends DelegatingPreparedStatement

Fires events as appropriate.


Field Summary
 
Fields inherited from class org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
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.EventPreparedStatement(PreparedStatement ps, JDBCEventConnectionDecorator.EventConnection conn, String sql)
           
 
Method Summary
 int[] executeBatch()
           
protected  ResultSet executeQuery(boolean wrap)
          Execute the query, with the option of not wrapping it in a DelegatingResultSet, which is the default.
 int executeUpdate()
           
 
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
addBatch, addBatch, appendInfo, cancel, clearBatch, clearParameters, clearWarnings, close, equals, execute, execute, execute, execute, execute, executeQuery, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, isWrapperFor, newInstance, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toString, unwrap, wrapResult
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.PreparedStatement
setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
 
Methods inherited from interface java.sql.Statement
isClosed, isPoolable, setPoolable
 

Constructor Detail

JDBCEventConnectionDecorator.EventPreparedStatement

public JDBCEventConnectionDecorator.EventPreparedStatement(PreparedStatement ps,
                                                           JDBCEventConnectionDecorator.EventConnection conn,
                                                           String sql)
Method Detail

executeUpdate

public int executeUpdate()
                  throws SQLException
Specified by:
executeUpdate in interface PreparedStatement
Overrides:
executeUpdate in class DelegatingPreparedStatement
Throws:
SQLException

executeQuery

protected ResultSet executeQuery(boolean wrap)
                          throws SQLException
Description copied from class: DelegatingPreparedStatement
Execute the query, with the option of not wrapping it in a DelegatingResultSet, which is the default.

Overrides:
executeQuery in class DelegatingPreparedStatement
Throws:
SQLException

executeBatch

public int[] executeBatch()
                   throws SQLException
Specified by:
executeBatch in interface Statement
Overrides:
executeBatch in class DelegatingPreparedStatement
Throws:
SQLException


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