public abstract class AbstractUpdateManager extends Object implements UpdateManager, Configurable
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractUpdateManager.CustomMapping
Executes customized mapping updates.
|
Modifier and Type | Field and Description |
---|---|
protected JDBCConfiguration |
conf |
protected DBDictionary |
dict |
Constructor and Description |
---|
AbstractUpdateManager() |
Modifier and Type | Method and Description |
---|---|
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)
Recursive method to delete the given instance, base class last.
|
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 Collection |
flush(Collection states,
JDBCStore store,
PreparedStatementManager psMgr) |
protected abstract Collection |
flush(RowManager rowMgr,
PreparedStatementManager psMgr,
Collection exceps)
Flush all rows of the given row manager.
|
protected void |
insert(OpenJPAStateManager sm,
ClassMapping mapping,
RowManager rowMgr,
JDBCStore store,
Collection customs)
Recursive method to insert the given instance, base class first.
|
protected abstract PreparedStatementManager |
newPreparedStatementManager(JDBCStore store,
Connection conn)
Return a new
PreparedStatementManager . |
protected abstract RowManager |
newRowManager()
Return a new
RowManager . |
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.
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
protected void |
update(OpenJPAStateManager sm,
BitSet dirty,
ClassMapping mapping,
RowManager rowMgr,
JDBCStore store,
Collection customs,
boolean updateIndicators)
Recursive method to update the given instance.
|
protected void |
updateIndicators(OpenJPAStateManager sm,
ClassMapping mapping,
RowManager rowMgr,
JDBCStore store,
Collection customs,
boolean versionUpdateOnly)
Update version and discriminator indicators.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
orderDirty
protected JDBCConfiguration conf
protected DBDictionary dict
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
public Collection flush(Collection states, JDBCStore store)
UpdateManager
flush
in interface UpdateManager
StoreManager.flush(java.util.Collection<org.apache.openjpa.kernel.OpenJPAStateManager>)
protected Collection flush(Collection states, JDBCStore store, PreparedStatementManager psMgr)
protected abstract RowManager newRowManager()
RowManager
.protected abstract PreparedStatementManager newPreparedStatementManager(JDBCStore store, Connection conn)
PreparedStatementManager
.protected abstract Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, Collection exceps)
exceps
(which may start as null) using
addException(java.util.Collection, java.lang.Exception)
. Return exceps
.protected Collection populateRowManager(OpenJPAStateManager sm, RowManager rowMgr, JDBCStore store, Collection exceps, Collection customs)
exceps
- exceptions encountered when flushing will be added to
this list and returned; the list may be null initiallycustoms
- buffer custom mappingsprotected Collection addException(Collection exceps, Exception err)
protected void insert(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) throws SQLException
SQLException
protected void delete(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs) throws SQLException
SQLException
protected void update(OpenJPAStateManager sm, BitSet dirty, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean updateIndicators) throws SQLException
SQLException
protected void updateIndicators(OpenJPAStateManager sm, ClassMapping mapping, RowManager rowMgr, JDBCStore store, Collection customs, boolean versionUpdateOnly) throws SQLException
SQLException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.