|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.otm.states.State
Represents the state of object.
Field Summary | |
static State |
HOLLOW
|
static State |
PERSISTENT_CLEAN
|
static State |
PERSISTENT_DELETED
|
static State |
PERSISTENT_DIRTY
|
static State |
PERSISTENT_NEW
|
static State |
PERSISTENT_NEW_DELETED
|
static State |
TRANSIENT
|
Fields inherited from interface org.apache.ojb.broker.util.ObjectModification |
serialVersionUID |
Constructor Summary | |
State()
|
Method Summary | |
State |
commit()
Describes the state transition on commit() |
State |
deletePersistent()
Describes the state transition on deletePersistent() |
State |
getObject()
Describes the state transition when object is gotten from the cache or is loaded from database (once per transaction). |
State |
makePersistent()
Describes the state transition on makePersistent() |
State |
markDirty()
Describes the state transition when user modifies object |
boolean |
needsDelete()
returns true is this state requires DELETE |
boolean |
needsInsert()
returns true is this state requires INSERT |
boolean |
needsUpdate()
returns true is this state requires UPDATE |
State |
rollback()
Describes the state transition on rollback() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final State TRANSIENT
public static final State PERSISTENT_CLEAN
public static final State PERSISTENT_DIRTY
public static final State PERSISTENT_NEW
public static final State PERSISTENT_DELETED
public static final State PERSISTENT_NEW_DELETED
public static final State HOLLOW
Constructor Detail |
public State()
Method Detail |
public State getObject() throws IllegalObjectStateException
IllegalObjectStateException
public State markDirty() throws IllegalObjectStateException
IllegalObjectStateException
public State makePersistent() throws IllegalObjectStateException
IllegalObjectStateException
public State deletePersistent() throws IllegalObjectStateException
IllegalObjectStateException
public State commit() throws IllegalObjectStateException
IllegalObjectStateException
public State rollback() throws IllegalObjectStateException
IllegalObjectStateException
public boolean needsInsert()
needsInsert
in interface ObjectModification
public boolean needsUpdate()
needsUpdate
in interface ObjectModification
public boolean needsDelete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |