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
public class ConstraintUpdateManager extends AbstractUpdateManager
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 Constructor Description ConstraintUpdateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
flush(java.util.Collection deleteUpdates, java.util.Collection nodes, PreparedStatementManager psMgr)
protected void
flush(java.util.Collection rows, PreparedStatementManager psMgr)
Flush the given collection of secondary rows.protected java.util.Collection
flush(RowManager rowMgr, PreparedStatementManager psMgr, java.util.Collection exceps)
Flush all rows of the given row manager.protected void
flushGraph(Graph graph, PreparedStatementManager psMgr, boolean autoAssign)
Flush the given graph of rows in the proper order.protected DepthFirstAnalysis
newDepthFirstAnalysis(Graph graph, boolean autoAssign)
Create a newDepthFirstAnalysis
suitable for the given graph and auto-assign settings.protected PreparedStatementManager
newPreparedStatementManager(JDBCStore store, java.sql.Connection conn)
Return a newPreparedStatementManager
.protected RowManager
newRowManager()
Return a newRowManager
.boolean
orderDirty()
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:UpdateManager
Whether the store context should maintain the order in which instances are dirtied.
-
newPreparedStatementManager
protected PreparedStatementManager newPreparedStatementManager(JDBCStore store, java.sql.Connection conn)
Description copied from class:AbstractUpdateManager
Return a newPreparedStatementManager
.- Specified by:
newPreparedStatementManager
in classAbstractUpdateManager
-
newRowManager
protected RowManager newRowManager()
Description copied from class:AbstractUpdateManager
Return a newRowManager
.- Specified by:
newRowManager
in classAbstractUpdateManager
-
flush
protected java.util.Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, java.util.Collection exceps)
Description copied from class:AbstractUpdateManager
Flush 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:
flush
in classAbstractUpdateManager
-
flushGraph
protected void flushGraph(Graph graph, PreparedStatementManager psMgr, boolean autoAssign) throws java.sql.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:
java.sql.SQLException
-
flush
protected void flush(java.util.Collection deleteUpdates, java.util.Collection nodes, PreparedStatementManager psMgr)
-
newDepthFirstAnalysis
protected DepthFirstAnalysis newDepthFirstAnalysis(Graph graph, boolean autoAssign)
Create a newDepthFirstAnalysis
suitable for the given graph and auto-assign settings.
-
flush
protected void flush(java.util.Collection rows, PreparedStatementManager psMgr)
Flush the given collection of secondary rows.
-
-