Package org.apache.openjpa.jdbc.kernel
Class AbstractUpdateManager
java.lang.Object
org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
- All Implemented Interfaces:
- UpdateManager,- Configurable
- Direct Known Subclasses:
- ConstraintUpdateManager,- OperationOrderUpdateManager
Base update manager with common functionality.
- Author:
- Abe White
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classExecutes customized mapping updates.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected CollectionaddException(Collection exceps, Exception err) Add the given exception to the given list, which may start out as null.protected voiddelete(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) Recursive method to delete the given instance, base class last.voidInvoked upon completion of bean property configuration for this object.flush(Collection states, JDBCStore store) Flush the given instances to the data store.protected Collectionflush(Collection states, JDBCStore store, PreparedStatementManager psMgr) protected abstract Collectionflush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps) Flush all rows of the given row manager.protected voidinsert(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) Recursive method to insert the given instance, base class first.protected abstract PreparedStatementManagernewPreparedStatementManager(JDBCStore store, Connection conn) Return a newPreparedStatementManager.protected abstract RowManagerReturn a newRowManager.protected CollectionpopulateRowManager(OpenJPAStateManager sm, RowManager rowMgr, JDBCStore store, Collection exceps, Collection customs) Populate the row manager with rows to be flushed for the given state.voidInvoked prior to setting bean properties.voidInvoked before bean property configuration is begun on this object.protected voidupdate(OpenJPAStateManager sm, BitSet dirty, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean updateIndicators) Recursive method to update the given instance.protected voidupdateIndicators(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean versionUpdateOnly) Update version and discriminator indicators.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.jdbc.kernel.UpdateManagerorderDirty
- 
Field Details- 
conf
- 
dict
 
- 
- 
Constructor Details- 
AbstractUpdateManagerpublic AbstractUpdateManager()
 
- 
- 
Method Details- 
setConfigurationDescription copied from interface:ConfigurableInvoked prior to setting bean properties.- Specified by:
- setConfigurationin interface- Configurable
 
- 
startConfigurationpublic void startConfiguration()Description copied from interface:ConfigurableInvoked before bean property configuration is begun on this object.- Specified by:
- startConfigurationin interface- Configurable
 
- 
endConfigurationpublic void endConfiguration()Description copied from interface:ConfigurableInvoked upon completion of bean property configuration for this object.- Specified by:
- endConfigurationin interface- Configurable
 
- 
flushDescription copied from interface:UpdateManagerFlush the given instances to the data store.- Specified by:
- flushin interface- UpdateManager
- See Also:
 
- 
flush
- 
newRowManagerReturn a newRowManager.
- 
newPreparedStatementManagerprotected abstract PreparedStatementManager newPreparedStatementManager(JDBCStore store, Connection conn) Return a newPreparedStatementManager.
- 
flushprotected abstract Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps) Flush all rows of the given row manager. Add exceptions toexceps(which may start as null) usingaddException(java.util.Collection, java.lang.Exception). Returnexceps.
- 
populateRowManagerprotected Collection populateRowManager(OpenJPAStateManager sm, RowManager rowMgr, JDBCStore store, Collection exceps, Collection customs) Populate the row manager with rows to be flushed for the given state.- Parameters:
- exceps- exceptions encountered when flushing will be added to this list and returned; the list may be null initially
- customs- buffer custom mappings
- Returns:
- the exceptions list
 
- 
addExceptionAdd the given exception to the given list, which may start out as null.
- 
insertprotected void insert(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) throws SQLException Recursive method to insert the given instance, base class first.- Throws:
- SQLException
 
- 
deleteprotected void delete(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) throws SQLException Recursive method to delete the given instance, base class last.- Throws:
- SQLException
 
- 
updateprotected void update(OpenJPAStateManager sm, BitSet dirty, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean updateIndicators) throws SQLException Recursive method to update the given instance.- Throws:
- SQLException
 
- 
updateIndicatorsprotected void updateIndicators(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean versionUpdateOnly) throws SQLException Update version and discriminator indicators.- Throws:
- SQLException
 
 
-