org.apache.ojb.odmg.states
Class StateOldDelete

java.lang.Object
  extended by org.apache.ojb.odmg.states.ModificationState
      extended by org.apache.ojb.odmg.states.StateOldDelete
All Implemented Interfaces:
Serializable

public class StateOldDelete
extends ModificationState

this state represents old objects which have been marked for deletion during tx.

See Also:
Serialized Form

Method Summary
 void checkpoint(ObjectEnvelope mod)
          rollback the transaction
 void commit(ObjectEnvelope mod)
          commit the associated transaction
static StateOldDelete getInstance()
          perform a checkpoint, i.e.
 ModificationState markClean()
          return resulting state after marking clean
 ModificationState markDelete()
          return resulting state after marking delete
 ModificationState markDirty()
          return resulting state after marking dirty
 ModificationState markNew()
          return resulting state after marking new
 ModificationState markOld()
          return resulting state after marking old
 boolean needsDelete()
          returns true is this state requires DELETE
 void rollback(ObjectEnvelope mod)
           
 
Methods inherited from class org.apache.ojb.odmg.states.ModificationState
isTransient, needsInsert, needsUpdate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static StateOldDelete getInstance()
perform a checkpoint, i.e. perform updates on underlying db but keep locks on objects


markClean

public ModificationState markClean()
return resulting state after marking clean

Specified by:
markClean in class ModificationState

markDelete

public ModificationState markDelete()
return resulting state after marking delete

Specified by:
markDelete in class ModificationState

markDirty

public ModificationState markDirty()
return resulting state after marking dirty

Specified by:
markDirty in class ModificationState

markNew

public ModificationState markNew()
return resulting state after marking new

Specified by:
markNew in class ModificationState

markOld

public ModificationState markOld()
return resulting state after marking old

Specified by:
markOld in class ModificationState

needsDelete

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

Overrides:
needsDelete in class ModificationState
Returns:
boolean

checkpoint

public void checkpoint(ObjectEnvelope mod)
                throws PersistenceBrokerException
rollback the transaction

Specified by:
checkpoint in class ModificationState
Throws:
PersistenceBrokerException

commit

public void commit(ObjectEnvelope mod)
            throws PersistenceBrokerException
commit the associated transaction

Specified by:
commit in class ModificationState
Throws:
PersistenceBrokerException

rollback

public void rollback(ObjectEnvelope mod)
Specified by:
rollback in class ModificationState


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