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" />
AbstractUpdateManager.CustomMappingconf, dict| Constructor and Description |
|---|
BatchingConstraintUpdateManager() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection |
flush(RowManager rowMgr,
PreparedStatementManager psMgr,
Collection exceps)
Flush all rows of the given row manager.
|
protected PreparedStatementManager |
newPreparedStatementManager(JDBCStore store,
Connection conn)
Return a new
PreparedStatementManager. |
flush, flush, flushGraph, newDepthFirstAnalysis, newRowManager, orderDirtyaddException, delete, endConfiguration, flush, flush, insert, populateRowManager, setConfiguration, startConfiguration, update, updateIndicatorsprotected PreparedStatementManager newPreparedStatementManager(JDBCStore store, Connection conn)
AbstractUpdateManagerPreparedStatementManager.newPreparedStatementManager in class ConstraintUpdateManagerprotected Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps)
AbstractUpdateManagerexceps (which may start as null) using
AbstractUpdateManager.addException(java.util.Collection, java.lang.Exception). Return exceps.flush in class ConstraintUpdateManagerCopyright © 2006–2018 Apache Software Foundation. All rights reserved.