|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.odmg.states.ModificationState org.apache.ojb.odmg.states.StateOldDirty
public class StateOldDirty
this state represents old objects which have been altered during tx.
Field Summary | |
---|---|
private static StateOldDirty |
_instance
|
Fields inherited from class org.apache.ojb.odmg.states.ModificationState |
---|
serialVersionUID |
Constructor Summary | |
---|---|
private |
StateOldDirty()
private constructor: use singleton instance |
Method Summary | |
---|---|
void |
checkpoint(ObjectEnvelope mod)
checkpoint the transaction |
void |
commit(ObjectEnvelope mod)
commit the associated transaction |
static StateOldDirty |
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 |
needsUpdate()
returns true is this state requires UPDATE |
void |
rollback(ObjectEnvelope mod)
rollback transaction. |
Methods inherited from class org.apache.ojb.odmg.states.ModificationState |
---|
isTransient, needsDelete, needsInsert, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static StateOldDirty _instance
Constructor Detail |
---|
private StateOldDirty()
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 StateOldDirty getInstance()
public void checkpoint(ObjectEnvelope mod) throws PersistenceBrokerException
checkpoint
in class ModificationState
PersistenceBrokerException
public void commit(ObjectEnvelope mod) throws PersistenceBrokerException
commit
in class ModificationState
PersistenceBrokerException
public void rollback(ObjectEnvelope mod)
rollback
in class ModificationState
public boolean needsUpdate()
ModificationState
needsUpdate
in class ModificationState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |