|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.runtime.KodoSavepoint
Represents a savepoint where operations afterwards can be rolled back and restored to this point
| Field Summary | |
static int |
FLUSH
Flush mode where initialize will call
{@KodoPersistenceManager#flush} |
static int |
NO_FLUSH
Flush mode where no flush method will be called. |
static int |
PRE_FLUSH
Flush mode where initialize() will call
{@KodoPersistenceManager#preFlush} |
| Constructor Summary | |
KodoSavepoint(KodoPersistenceManager pm,
String name)
Constructor. |
|
| Method Summary | |
boolean |
getCopyFields()
Return whether this savepoint should copy state into memory |
int |
getFlushMode()
Return the flush operation to use on initialize. |
String |
getName()
Return the name for this savepoint. |
KodoPersistenceManager |
getPersistenceManager()
Return the KodoPersistenceManager associated with this savepoint. |
protected Map |
getStates()
Return a Map of states to savepoint data. |
void |
initialize()
Initialize any resources necessary for this savepoint. |
void |
release(boolean user)
Release this savepoint and any associated resources. |
protected Collection |
rollback(Collection previous)
Handle the rolled back state, returning saved data. |
void |
save(Collection states)
Set this savepoint, saving any state for the passed-in KodoStateManagers as necessary. |
void |
setCopyFields(boolean copy)
Set whether to copy state into memory |
void |
setFlushMode(int flush)
Set the flush operation to use on initialize. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_FLUSH
public static final int PRE_FLUSH
initialize() will call
{@KodoPersistenceManager#preFlush}public static final int FLUSH
initialize will call
{@KodoPersistenceManager#flush}| Constructor Detail |
public KodoSavepoint(KodoPersistenceManager pm,
String name)
| Method Detail |
public boolean getCopyFields()
public void setCopyFields(boolean copy)
public int getFlushMode()
public void setFlushMode(int flush)
public KodoPersistenceManager getPersistenceManager()
public String getName()
public void release(boolean user)
user - if true, user initiated, otherwise a side effect of
another savepoint's release/rollbackprotected Map getStates()
protected Collection rollback(Collection previous)
previous - previous savepoints set in the transactionpublic void initialize()
KodoPersistenceManager flush command
based on getFlushMode()public void save(Collection states)
KodoStateManagers as necessary.
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||