org.apache.ojb.otm.states
Class Hollow

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

public class Hollow
extends State

this state represents persistent objects outside of transaction (no ODMG equivalent).

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
 
Constructor Summary
Hollow()
           
 
Method Summary
 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 markDirty()
          Describes the state transition when user modifies object
 State rollback()
          Describes the state transition on rollback()
 String toString()
          return a String representation
 
Methods inherited from class org.apache.ojb.otm.states.State
commit, isDeleted, makePersistent, needsDelete, needsInsert, needsUpdate, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hollow

Hollow()
Method Detail

toString

public String toString()
return a String representation

Overrides:
toString in class Object

getObject

public State getObject()
                throws IllegalObjectStateException
Describes the state transition when object is gotten from the cache or is loaded from database (once per transaction).

Overrides:
getObject in class State
Throws:
IllegalObjectStateException

markDirty

public State markDirty()
                throws IllegalObjectStateException
Describes the state transition when user modifies object

Overrides:
markDirty in class State
Throws:
IllegalObjectStateException

deletePersistent

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

Overrides:
deletePersistent in class State
Throws:
IllegalObjectStateException

rollback

public State rollback()
               throws IllegalObjectStateException
Description copied from class: State
Describes the state transition on rollback()

Overrides:
rollback in class State
Throws:
IllegalObjectStateException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.