Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » kernel » [javadoc | source]
org.apache.openjpa.jdbc.kernel
public class: BatchingPreparedStatementManagerImpl [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl
      org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl

All Implemented Interfaces:
    PreparedStatementManager

Batch prepared statement manager implementation. This prepared statement manager will utilize the JDBC addBatch() and exceuteBatch() to batch the SQL statements together to improve the execution performance.
Fields inherited from org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl:
_store,  _conn,  _dict,  _exceptions
Constructor:
 public BatchingPreparedStatementManagerImpl(JDBCStore store,
    Connection conn,
    int batchLimit) 
    Constructor. Supply connection.
Method from org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl Summary:
flushAndUpdate,   flushBatch
Methods from org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl:
executeUpdate,   flush,   flush,   flushAndUpdate,   flushInternal,   getExceptions,   prepareStatement
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl Detail:
 protected  void flushAndUpdate(RowImpl row) throws SQLException 
    Flush the given row immediately or deferred the flush in batch.
 protected  void flushBatch() 
    flush all cached up statements to be executed as a single or batched prepared statements.