|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.odmg.states.ModificationState | +--ojb.odmg.states.StateOldClean
this state represents old Objects (i.e. already persistent but not changed during tx) --> no need to do anything for commit or rollback
Method Summary | |
void |
checkpoint(ObjectEnvelope mod,
PersistenceBroker broker)
rollback the ObjectModification |
void |
commit(ObjectEnvelope mod,
PersistenceBroker broker)
commit the associated transaction |
static StateOldClean |
getInstance()
perform a checkpoint, i.e. perform updates on underlying db but keep locks on objects |
ModificationState |
markClean()
return resulting state after marking clean |
ModificationState |
markDelete()
return resulting state after marking delete |
ModificationState |
markDirty()
return resulting state after marking dirty |
ModificationState |
markNew()
return resulting state after marking new |
ModificationState |
markOld()
return resulting state after marking old |
void |
rollback(ObjectEnvelope mod,
PersistenceBroker broker)
Method declaration |
Methods inherited from class ojb.odmg.states.ModificationState |
needsDelete, needsInsert, needsUpdate, removeFromCache, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public ModificationState markClean()
markClean
in class ModificationState
public ModificationState markDelete()
markDelete
in class ModificationState
public ModificationState markDirty()
markDirty
in class ModificationState
public ModificationState markNew()
markNew
in class ModificationState
public ModificationState markOld()
markOld
in class ModificationState
public static StateOldClean getInstance()
public void checkpoint(ObjectEnvelope mod, PersistenceBroker broker)
checkpoint
in class ModificationState
mod
- public void commit(ObjectEnvelope mod, PersistenceBroker broker)
commit
in class ModificationState
mod
- public void rollback(ObjectEnvelope mod, PersistenceBroker broker)
rollback
in class ModificationState
mod
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |