org.apache.openjpa.jdbc.kernel
Class BatchingPreparedStatementManagerImpl
java.lang.Object
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl
org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl
- All Implemented Interfaces:
- PreparedStatementManager
public class BatchingPreparedStatementManagerImpl
- extends PreparedStatementManagerImpl
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.
- Author:
- Teresa Kan
Method Summary |
protected void |
flushAndUpdate(RowImpl row)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchingPreparedStatementManagerImpl
public BatchingPreparedStatementManagerImpl(JDBCStore store,
Connection conn,
int batchLimit)
- Constructor. Supply connection.
flushAndUpdate
protected void flushAndUpdate(RowImpl row)
throws SQLException
- Flush the given row immediately or deferred the flush in batch.
- Overrides:
flushAndUpdate
in class PreparedStatementManagerImpl
- Throws:
SQLException
flushBatch
protected void flushBatch()
- flush all cached up statements to be executed as a single or batched
prepared statements.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.