Package org.apache.openjpa.jdbc.kernel
Class BatchingConstraintUpdateManager
- java.lang.Object
-
- org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
-
- org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager
-
- org.apache.openjpa.jdbc.kernel.BatchingConstraintUpdateManager
-
- All Implemented Interfaces:
UpdateManager,Configurable
public class BatchingConstraintUpdateManager extends ConstraintUpdateManager
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 default plug-in class for UpdateManager to support statement batching. You can plug-in your own statement batch implementation through the following property:
< property name="openjpa.jdbc.UpdateManager" value="org.apache.openjpa.jdbc.kernel.YourOperationOrderUpdateManager" />- Author:
- Teresa Kan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
AbstractUpdateManager.CustomMapping
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
conf, dict
-
-
Constructor Summary
Constructors Constructor Description BatchingConstraintUpdateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collectionflush(RowManager rowMgr, PreparedStatementManager psMgr, java.util.Collection exceps)Flush all rows of the given row manager.protected PreparedStatementManagernewPreparedStatementManager(JDBCStore store, java.sql.Connection conn)Return a newPreparedStatementManager.-
Methods inherited from class org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager
flush, flush, flushGraph, newDepthFirstAnalysis, newRowManager, orderDirty
-
Methods inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
addException, delete, endConfiguration, flush, flush, insert, populateRowManager, setConfiguration, startConfiguration, update, updateIndicators
-
-
-
-
Method Detail
-
newPreparedStatementManager
protected PreparedStatementManager newPreparedStatementManager(JDBCStore store, java.sql.Connection conn)
Description copied from class:AbstractUpdateManagerReturn a newPreparedStatementManager.- Overrides:
newPreparedStatementManagerin classConstraintUpdateManager
-
flush
protected java.util.Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, java.util.Collection exceps)
Description copied from class:AbstractUpdateManagerFlush all rows of the given row manager. Add exceptions toexceps(which may start as null) usingAbstractUpdateManager.addException(java.util.Collection, java.lang.Exception). Returnexceps.- Overrides:
flushin classConstraintUpdateManager
-
-