|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.otm.states.State org.apache.ojb.otm.states.PersistentDirty
public class PersistentDirty
this state represents persistent objects which have been altered during tx (ODMG StateOldDirty).
Field Summary |
---|
Fields inherited from class org.apache.ojb.otm.states.State |
---|
HOLLOW, PERSISTENT_CLEAN, PERSISTENT_DELETED, PERSISTENT_DIRTY, PERSISTENT_NEW, PERSISTENT_NEW_DELETED, TRANSIENT |
Fields inherited from interface org.apache.ojb.broker.util.ObjectModification |
---|
INSERT, serialVersionUID, UPDATE |
Constructor Summary | |
---|---|
PersistentDirty()
|
Method Summary | |
---|---|
State |
commit()
Describes the state transition on commit() |
State |
deletePersistent()
Describes the state transition on deletePersistent() |
State |
makePersistent()
Describes the state transition on makePersistent() |
State |
markDirty()
Describes the state transition when user modifies object |
boolean |
needsUpdate()
returns true is this state requires UPDATE |
State |
refresh()
Describes the state transition on refresh() |
State |
rollback()
Describes the state transition on rollback() |
String |
toString()
return a String representation |
Methods inherited from class org.apache.ojb.otm.states.State |
---|
getObject, isDeleted, needsDelete, needsInsert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
PersistentDirty()
Method Detail |
---|
public String toString()
toString
in class Object
public State markDirty() throws IllegalObjectStateException
markDirty
in class State
IllegalObjectStateException
public State makePersistent() throws IllegalObjectStateException
makePersistent
in class State
IllegalObjectStateException
public State deletePersistent() throws IllegalObjectStateException
deletePersistent
in class State
IllegalObjectStateException
public State commit() throws IllegalObjectStateException
commit
in class State
IllegalObjectStateException
public State rollback() throws IllegalObjectStateException
rollback
in class State
IllegalObjectStateException
public State refresh() throws IllegalObjectStateException
State
refresh
in class State
IllegalObjectStateException
public boolean needsUpdate()
needsUpdate
in interface ObjectModification
needsUpdate
in class State
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |