org.apache.ojb.otm.states
Class PersistentClean

java.lang.Object
  extended byorg.apache.ojb.otm.states.State
      extended byorg.apache.ojb.otm.states.PersistentClean
All Implemented Interfaces:
ObjectModification, java.io.Serializable

public class PersistentClean
extends State

this state represents old Objects (i.e. already persistent but not changed during tx) --> no need to do anything for commit or rollback (ODMG StateOldClean).

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

Constructor Detail

PersistentClean

PersistentClean()
Method Detail

toString

public java.lang.String toString()
return a String representation


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

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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14