|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.odmg.states.ModificationState
org.apache.ojb.odmg.states.StateNewDelete
this state represents new objects which have been mrked for deletion during tx.
| Field Summary |
| Fields inherited from class org.apache.ojb.odmg.states.ModificationState |
serialVersionUID |
| Method Summary | |
void |
checkpoint(ObjectEnvelope mod,
PersistenceBroker broker)
rollback the ObjectModification |
void |
commit(ObjectEnvelope mod,
PersistenceBroker broker)
commit ObjectModification |
static StateNewDelete |
getInstance()
perform a checkpoint, i.e. |
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 |
boolean |
needsDelete()
returns true is this state requires DELETE * @return boolean |
void |
rollback(ObjectEnvelope mod,
PersistenceBroker broker)
|
| Methods inherited from class org.apache.ojb.odmg.states.ModificationState |
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 ModificationStatepublic ModificationState markDelete()
markDelete in class ModificationStatepublic ModificationState markDirty()
markDirty in class ModificationStatepublic ModificationState markNew()
markNew in class ModificationStatepublic ModificationState markOld()
markOld in class ModificationStatepublic boolean needsDelete()
needsDelete in class ModificationStatepublic static StateNewDelete getInstance()
public void checkpoint(ObjectEnvelope mod,
PersistenceBroker broker)
checkpoint in class ModificationState
public void commit(ObjectEnvelope mod,
PersistenceBroker broker)
commit in class ModificationState
public void rollback(ObjectEnvelope mod,
PersistenceBroker broker)
rollback in class ModificationState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||