Package org.apache.openjpa.jdbc.kernel
Class OperationOrderUpdateManager
- java.lang.Object
-
- org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
-
- org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager
-
- All Implemented Interfaces:
UpdateManager,Configurable
- Direct Known Subclasses:
BatchingOperationOrderUpdateManager
public class OperationOrderUpdateManager extends AbstractUpdateManager
Update manager that writes SQL in object-level operation order.- Author:
- Abe White
-
-
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 OperationOrderUpdateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidflush(Collection rows, PreparedStatementManager psMgr)Flush the given collection of secondary rows.protected Collectionflush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps)Flush all rows of the given row manager.protected PreparedStatementManagernewPreparedStatementManager(JDBCStore store, Connection conn)Return a newPreparedStatementManager.protected RowManagernewRowManager()Return a newRowManager.booleanorderDirty()Whether the store context should maintain the order in which instances are dirtied.-
Methods inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
addException, delete, endConfiguration, flush, flush, insert, populateRowManager, setConfiguration, startConfiguration, update, updateIndicators
-
-
-
-
Method Detail
-
orderDirty
public boolean orderDirty()
Description copied from interface:UpdateManagerWhether the store context should maintain the order in which instances are dirtied.
-
newRowManager
protected RowManager newRowManager()
Description copied from class:AbstractUpdateManagerReturn a newRowManager.- Specified by:
newRowManagerin classAbstractUpdateManager
-
newPreparedStatementManager
protected PreparedStatementManager newPreparedStatementManager(JDBCStore store, Connection conn)
Description copied from class:AbstractUpdateManagerReturn a newPreparedStatementManager.- Specified by:
newPreparedStatementManagerin classAbstractUpdateManager
-
flush
protected Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, 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.- Specified by:
flushin classAbstractUpdateManager
-
flush
protected void flush(Collection rows, PreparedStatementManager psMgr)
Flush the given collection of secondary rows.
-
-