ojb.odmg.states
Class StateOldDirty

java.lang.Object
  |
  +--ojb.odmg.states.ModificationState
        |
        +--ojb.odmg.states.StateOldDirty
All Implemented Interfaces:
java.io.Serializable

public class StateOldDirty
extends ModificationState

this state represents old objects which have been altered during tx.

See Also:
Serialized Form

Method Summary
 void checkpoint(ObjectEnvelope mod, PersistenceBroker broker)
          checkpoint the transaction
 void commit(ObjectEnvelope mod, PersistenceBroker broker)
          commit the associated transaction
static StateOldDirty getInstance()
          perform a checkpoint, i.e. perform updates on underlying db but keep locks on objects
 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 needsUpdate()
          returns true is this state requires UPDATE
 void rollback(ObjectEnvelope mod, PersistenceBroker broker)
          rollback transaction.
 
Methods inherited from class ojb.odmg.states.ModificationState
needsDelete, needsInsert, removeFromCache, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

getInstance

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


checkpoint

public void checkpoint(ObjectEnvelope mod,
                       PersistenceBroker broker)
                throws PersistenceBrokerException
checkpoint the transaction

Specified by:
checkpoint in class ModificationState
Parameters:
mod -
Throws:
PersistenceBrokerException

commit

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

Specified by:
commit in class ModificationState
Parameters:
mod -
Throws:
PersistenceBrokerException

rollback

public void rollback(ObjectEnvelope mod,
                     PersistenceBroker broker)
rollback transaction.

Specified by:
rollback in class ModificationState
Parameters:
mod -

needsUpdate

public boolean needsUpdate()
Description copied from class: ModificationState
returns true is this state requires UPDATE

Overrides:
needsUpdate in class ModificationState
Returns:
boolean


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04