Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.jdbc.kernel
Class AbstractUpdateManager

    java.lang.Object
      org.apache.openjpa.jdbc.kernel.AbstractUpdateManager

All Implemented Interfaces:
  UpdateManager, Configurable

Direct Known Subclasses:
  OperationOrderUpdateManager

    public abstract class AbstractUpdateManager

extends Object
implements UpdateManager, Configurable

Base update manager with common functionality.

Author:
  Abe White

Field Summary
`protected JDBCConfiguration` | `conf`
`protected DBDictionary` | `dict`

Constructor Summary
`AbstractUpdateManager()`

Method Summary
`protected Collection` | `addException(Collection exceps, Exception err)` Add the given exception to the given list, which may start out as null.
`void` | `endConfiguration()` Invoked upon completion of bean property configuration for this object.
`Collection` | `flush(Collection states, JDBCStore store)` Flush the given instances to the data store.
`protected abstract Collection` | `flush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps)` Flush all rows of the given row manager.
`protected abstract PreparedStatementManager` | `newPreparedStatementManager(JDBCStore store, Connection conn)` Return a new `PreparedStatementManager`.
`protected abstract RowManager` | `newRowManager()` Return a new `RowManager`.
`void` | `setConfiguration(Configuration conf)` Invoked prior to setting bean properties.
`void` | `startConfiguration()` Invoked before bean property configuration is begun on this object.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.openjpa.jdbc.kernel.UpdateManager
`orderDirty`

Field Detail

### conf

    protected JDBCConfiguration conf

### dict

    protected DBDictionary dict

Constructor Detail

### AbstractUpdateManager

    public AbstractUpdateManager()

Method Detail

### setConfiguration

    public void setConfiguration(Configuration conf)

  Description copied from interface: `Configurable`
  Invoked prior to setting bean properties.

  Specified by:
    `setConfiguration` in interface `Configurable`

### startConfiguration

    public void startConfiguration()

  Description copied from interface: `Configurable`
  Invoked before bean property configuration is begun on this object.

  Specified by:
    `startConfiguration` in interface `Configurable`

### endConfiguration

    public void endConfiguration()

  Description copied from interface: `Configurable`
  Invoked upon completion of bean property configuration for this object.

  Specified by:
    `endConfiguration` in interface `Configurable`

### flush

    public Collection flush(Collection states,
                            JDBCStore store)

  Description copied from interface: `UpdateManager`
  Flush the given instances to the data store.

  Specified by:
    `flush` in interface `UpdateManager`
  See Also:
    `StoreManager.flush(java.util.Collection)`

### newRowManager

    protected abstract RowManager newRowManager()

  Return a new `RowManager`.

### newPreparedStatementManager

    protected abstract PreparedStatementManager newPreparedStatementManager(JDBCStore store,
                                                                            Connection conn)

  Return a new `PreparedStatementManager`.

### flush

    protected abstract 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(java.util.Collection, java.lang.Exception)`. Return `exceps`.

### addException

    protected Collection addException(Collection exceps,
                                      Exception err)

  Add the given exception to the given list, which may start out as null.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Apache Software Foundation. All Rights Reserved.