|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.kernel.AbstractUpdateManager
public abstract class AbstractUpdateManager
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
|
Constructor Summary | |
---|---|
AbstractUpdateManager()
|
Method Summary | |
---|---|
protected java.util.Collection |
addException(java.util.Collection exceps,
java.lang.Exception err)
Add the given exception to the given list, which may start out as null. |
void |
endConfiguration()
|
java.util.Collection |
flush(java.util.Collection states,
JDBCStore store)
Flush the given instances to the data store. |
protected abstract java.util.Collection |
flush(RowManager rowMgr,
PreparedStatementManager psMgr,
java.util.Collection exceps)
Flush all rows of the given row manager. |
protected abstract PreparedStatementManager |
newPreparedStatementManager(JDBCStore store,
java.sql.Connection conn)
Return a new PreparedStatementManager . |
protected abstract RowManager |
newRowManager()
Return a new RowManager . |
protected java.util.Collection |
populateRowManager(org.apache.openjpa.kernel.OpenJPAStateManager sm,
RowManager rowMgr,
JDBCStore store,
java.util.Collection exceps,
java.util.Collection customs)
Populate the row manager with rows to be flushed for the given state. |
void |
setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
|
void |
startConfiguration()
|
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 |
---|
protected JDBCConfiguration conf
protected DBDictionary dict
Constructor Detail |
---|
public AbstractUpdateManager()
Method Detail |
---|
public void setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
setConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
public void startConfiguration()
startConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
public void endConfiguration()
endConfiguration
in interface org.apache.openjpa.lib.conf.Configurable
public java.util.Collection flush(java.util.Collection states, JDBCStore store)
UpdateManager
flush
in interface UpdateManager
StoreManager.flush(java.util.Collection)
protected abstract RowManager newRowManager()
RowManager
.
protected abstract PreparedStatementManager newPreparedStatementManager(JDBCStore store, java.sql.Connection conn)
PreparedStatementManager
.
protected abstract java.util.Collection flush(RowManager rowMgr, PreparedStatementManager psMgr, java.util.Collection exceps)
exceps
(which may start as null) using
addException(java.util.Collection, java.lang.Exception)
. Return exceps
.
protected java.util.Collection populateRowManager(org.apache.openjpa.kernel.OpenJPAStateManager sm, RowManager rowMgr, JDBCStore store, java.util.Collection exceps, java.util.Collection customs)
exceps
- exceptions encountered when flushing will be added to
this list and returned; the list may be null initiallycustoms
- buffer custom mappings
protected java.util.Collection addException(java.util.Collection exceps, java.lang.Exception err)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |