Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » kernel » [javadoc | source]
org.apache.openjpa.jdbc.kernel
abstract public class: AbstractUpdateManager [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.kernel.AbstractUpdateManager

All Implemented Interfaces:
    UpdateManager, Configurable

Direct Known Subclasses:
    OperationOrderUpdateManager, ConstraintUpdateManager, BatchingOperationOrderUpdateManager, BatchingConstraintUpdateManager

Base update manager with common functionality.
Nested Class Summary:
protected static class  AbstractUpdateManager.CustomMapping  Executes customized mapping updates. 
Field Summary
protected  JDBCConfiguration conf     
protected  DBDictionary dict     
Method from org.apache.openjpa.jdbc.kernel.AbstractUpdateManager Summary:
addException,   delete,   endConfiguration,   flush,   flush,   insert,   newPreparedStatementManager,   newRowManager,   populateRowManager,   setConfiguration,   startConfiguration,   update,   updateIndicators
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.kernel.AbstractUpdateManager Detail:
 protected Collection addException(Collection exceps,
    Exception err) 
    Add the given exception to the given list, which may start out as null.
 protected  void delete(OpenJPAStateManager sm,
    ClassMapping mapping,
    RowManager rowMgr,
    JDBCStore store,
    Collection customs) throws SQLException 
    Recursive method to delete the given instance, base class last.
 public  void endConfiguration() 
 public Collection flush(Collection states,
    JDBCStore store) 
 abstract protected Collection flush(RowManager rowMgr,
    PreparedStatementManager psMgr,
    Collection exceps)
    Flush all rows of the given row manager. Add exceptions to exceps (which may start as null) using #addException . Return exceps.
 protected  void insert(OpenJPAStateManager sm,
    ClassMapping mapping,
    RowManager rowMgr,
    JDBCStore store,
    Collection customs) throws SQLException 
    Recursive method to insert the given instance, base class first.
 abstract protected PreparedStatementManager newPreparedStatementManager(JDBCStore store,
    Connection conn)
 abstract protected RowManager newRowManager()
 protected 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.
 public  void setConfiguration(Configuration conf) 
 public  void startConfiguration() 
 protected  void update(OpenJPAStateManager sm,
    BitSet dirty,
    ClassMapping mapping,
    RowManager rowMgr,
    JDBCStore store,
    Collection customs) throws SQLException 
    Recursive method to update the given instance.
 protected  void updateIndicators(OpenJPAStateManager sm,
    ClassMapping mapping,
    RowManager rowMgr,
    JDBCStore store,
    Collection customs,
    boolean versionUpdateOnly) throws SQLException 
    Update version and discriminator indicators.