Class BatchingOperationOrderUpdateManager
java.lang.Object
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager
org.apache.openjpa.jdbc.kernel.BatchingOperationOrderUpdateManager
- All Implemented Interfaces:
UpdateManager, Configurable
Batch update manager that writes the SQL in object-level operation order. This update manager initiates a BatchPreparedStatementManagerImpl which will utilize the JDBC addBatch() and executeBatch() APIs to batch the statements for performance improvement.
This is the plug-in class for UpdateManager to support statement
batching for ordering. You can plug-in this statement batch implementation
through the following property:
<property name="openjpa.jdbc.UpdateManager"
value="org.apache.openjpa.jdbc.kernel.BatchingOperationOrderUpdateManager" />
- Author:
- Teresa Kan
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractUpdateManager
AbstractUpdateManager.CustomMapping -
Field Summary
Fields inherited from class AbstractUpdateManager
conf, dict -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collectionflush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps) Flush all rows of the given row manager.protected PreparedStatementManagernewPreparedStatementManager(JDBCStore store, Connection conn) Return a newPreparedStatementManager.Methods inherited from class OperationOrderUpdateManager
flush, newRowManager, orderDirtyMethods inherited from class AbstractUpdateManager
addException, delete, endConfiguration, flush, flush, insert, populateRowManager, setConfiguration, startConfiguration, update, updateIndicators
-
Constructor Details
-
BatchingOperationOrderUpdateManager
public BatchingOperationOrderUpdateManager()
-
-
Method Details
-
newPreparedStatementManager
Description copied from class:AbstractUpdateManagerReturn a newPreparedStatementManager.- Overrides:
newPreparedStatementManagerin classOperationOrderUpdateManager
-
flush
Description copied from class:AbstractUpdateManagerFlush all rows of the given row manager. Add exceptions toexceps(which may start as null) usingAbstractUpdateManager.addException(Collection, Exception). Returnexceps.- Overrides:
flushin classOperationOrderUpdateManager
-