org.apache.ojb.otm.states
Class PersistentDeleted

java.lang.Object
  extended by org.apache.ojb.otm.states.State
      extended by org.apache.ojb.otm.states.PersistentDeleted
All Implemented Interfaces:
Serializable, ObjectModification

public class PersistentDeleted
extends State

this state represents old objects which have been marked for deletion during tx (ODMG StateOldDelete).

See Also:
Serialized Form

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
 
Method Summary
 State commit()
          Describes the state transition on commit()
 State deletePersistent()
          Describes the state transition on deletePersistent()
 boolean isDeleted()
          returns true is this state means that the object has been deleted
 State makePersistent()
          Describes the state transition on makePersistent()
 boolean needsDelete()
          returns true is this state requires DELETE
 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, markDirty, needsInsert, needsUpdate, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
return a String representation

Overrides:
toString in class Object

makePersistent

public State makePersistent()
                     throws IllegalObjectStateException
Describes the state transition on makePersistent()

Overrides:
makePersistent in class State
Throws:
IllegalObjectStateException

deletePersistent

public State deletePersistent()
                       throws IllegalObjectStateException
Describes the state transition on deletePersistent()

Overrides:
deletePersistent in class State
Throws:
IllegalObjectStateException

commit

public State commit()
             throws IllegalObjectStateException
Describes the state transition on commit()

Overrides:
commit in class State
Throws:
IllegalObjectStateException

rollback

public State rollback()
               throws IllegalObjectStateException
Describes the state transition on rollback()

Overrides:
rollback in class State
Throws:
IllegalObjectStateException

needsDelete

public boolean needsDelete()
returns true is this state requires DELETE

Overrides:
needsDelete in class State
Returns:
boolean

isDeleted

public boolean isDeleted()
Description copied from class: State
returns true is this state means that the object has been deleted

Overrides:
isDeleted in class State


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.