|
|||||||||
| Home >> All >> ojb >> odmg >> [ states overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
ojb.odmg.states
Class StateOldDelete

java.lang.Objectojb.odmg.states.ModificationState
ojb.odmg.states.StateOldDelete
- All Implemented Interfaces:
- java.io.Serializable
- public class StateOldDelete
- extends ModificationState
this state represents old objects which have been marked for deletion during tx.
| Field Summary | |
private static StateOldDelete |
_instance
|
| Constructor Summary | |
private |
StateOldDelete()
private constructor: use singleton instance |
| Method Summary | |
void |
checkpoint(ojb.odmg.ObjectEnvelope mod,
ojb.broker.PersistenceBroker broker)
rollback the transaction |
void |
commit(ojb.odmg.ObjectEnvelope mod,
ojb.broker.PersistenceBroker broker)
commit the associated transaction |
static StateOldDelete |
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 |
void |
rollback(ojb.odmg.ObjectEnvelope mod,
ojb.broker.PersistenceBroker broker)
Method declaration |
| Methods inherited from class 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 |
| Field Detail |
_instance
private static StateOldDelete _instance
| Constructor Detail |
StateOldDelete
private StateOldDelete()
- private constructor: use singleton instance
| Method Detail |
markClean
public ModificationState markClean()
- return resulting state after marking clean
- Specified by:
markCleanin classModificationState
markDelete
public ModificationState markDelete()
- return resulting state after marking delete
- Specified by:
markDeletein classModificationState
markDirty
public ModificationState markDirty()
- return resulting state after marking dirty
- Specified by:
markDirtyin classModificationState
markNew
public ModificationState markNew()
- return resulting state after marking new
- Specified by:
markNewin classModificationState
markOld
public ModificationState markOld()
- return resulting state after marking old
- Specified by:
markOldin classModificationState
needsDelete
public boolean needsDelete()
- returns true is this state requires DELETE
- Overrides:
needsDeletein classModificationState
getInstance
public static StateOldDelete getInstance()
- perform a checkpoint, i.e. perform updates on underlying db but keep locks on objects
checkpoint
public void checkpoint(ojb.odmg.ObjectEnvelope mod, ojb.broker.PersistenceBroker broker) throws ojb.broker.PersistenceBrokerException
- rollback the transaction
- Specified by:
checkpointin classModificationState
commit
public void commit(ojb.odmg.ObjectEnvelope mod, ojb.broker.PersistenceBroker broker) throws ojb.broker.PersistenceBrokerException
- commit the associated transaction
- Specified by:
commitin classModificationState
rollback
public void rollback(ojb.odmg.ObjectEnvelope mod, ojb.broker.PersistenceBroker broker)
- Method declaration
- Specified by:
rollbackin classModificationState
|
|||||||||
| Home >> All >> ojb >> odmg >> [ states overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC