Package org.apache.openjpa.jdbc.kernel
Class ConstraintUpdateManager
java.lang.Object
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager
- All Implemented Interfaces:
UpdateManager,Configurable
- Direct Known Subclasses:
BatchingConstraintUpdateManager
Standard update manager, capable of foreign key constraint evaluation.
- Since:
- 1.0.0
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidflush(Collection deleteUpdates, Collection nodes, PreparedStatementManager psMgr) 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 voidflushGraph(Graph graph, PreparedStatementManager psMgr, boolean autoAssign) Flush the given graph of rows in the proper order.protected DepthFirstAnalysisnewDepthFirstAnalysis(Graph graph, boolean autoAssign) Create a newDepthFirstAnalysissuitable for the given graph and auto-assign settings.protected PreparedStatementManagernewPreparedStatementManager(JDBCStore store, Connection conn) Return a newPreparedStatementManager.protected RowManagerReturn a newRowManager.booleanWhether 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
-
Constructor Details
-
ConstraintUpdateManager
public ConstraintUpdateManager()
-
-
Method Details
-
orderDirty
public boolean orderDirty()Description copied from interface:UpdateManagerWhether the store context should maintain the order in which instances are dirtied. -
newPreparedStatementManager
Description copied from class:AbstractUpdateManagerReturn a newPreparedStatementManager.- Specified by:
newPreparedStatementManagerin classAbstractUpdateManager
-
newRowManager
Description copied from class:AbstractUpdateManagerReturn a newRowManager.- Specified by:
newRowManagerin classAbstractUpdateManager
-
flush
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
-
flushGraph
protected void flushGraph(Graph graph, PreparedStatementManager psMgr, boolean autoAssign) throws SQLException Flush the given graph of rows in the proper order.- Parameters:
graph- The graph of statements to be walkedpsMgr- The prepared statement manager to use to issue the statementsautoAssign- Whether any of the rows in the graph have any auto-assign constraints- Throws:
SQLException
-
flush
-
newDepthFirstAnalysis
Create a newDepthFirstAnalysissuitable for the given graph and auto-assign settings. -
flush
Flush the given collection of secondary rows.
-