SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.runtime
Class PNewFlushedState

java.lang.Object
  |
  +--com.solarmetric.kodo.runtime.JDOState
        |
        +--com.solarmetric.kodo.runtime.PNewState
              |
              +--com.solarmetric.kodo.runtime.PNewFlushedState

class PNewFlushedState
extends PNewState

JDO lifecycle state.

Represents an instance that was made persistent within the current transaction, and that has been flushed to the data store.


Fields inherited from class com.solarmetric.kodo.runtime.JDOState
HOLLOW, PCLEAN, PDELETED, PDELETEDFLUSHED, PDIRTY, PNEW, PNEWDELETED, PNEWDELETEDFLUSHED, PNEWFLUSHED, PNEWFLUSHEDDELETED, PNEWFLUSHEDDELETEDFLUSHED, PNONTRANS, TCLEAN, TDIRTY, TRANSIENT
 
Constructor Summary
(package private) PNewFlushedState()
           
 
Method Summary
(package private)  void beforeCommit(StateManagerImpl context)
          Called before the state is committed.
(package private)  void beforeFlush(StateManagerImpl context)
          Called before the state is flushed.
(package private)  JDOState deletePersistent(StateManagerImpl context)
          Perform any actions necesssary and return the proper lifecycle state on a call to PersistenceManager.deletePersistent(java.lang.Object) with the given instance.
(package private)  void initialize(StateManagerImpl context)
          Called when this state is first assigned to the given state manager.
(package private)  boolean isFlushed()
          Return whether this is a flushed state.
 
Methods inherited from class com.solarmetric.kodo.runtime.PNewState
commit, commitRetain, flush, isDirty, isNew, isPersistent, isTransactional, makeNontransactional, makeTransient, rollback, rollbackRetain
 
Methods inherited from class com.solarmetric.kodo.runtime.JDOState
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, error, evict, isDeleted, makePersistent, makeTransactional
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNewFlushedState

PNewFlushedState()
Method Detail

initialize

void initialize(StateManagerImpl context)
Description copied from class: JDOState
Called when this state is first assigned to the given state manager.
Overrides:
initialize in class PNewState

beforeFlush

void beforeFlush(StateManagerImpl context)
Description copied from class: JDOState
Called before the state is flushed. This is only invoked when the user explicitly invokes PersistenceManagerImpl.flush(). That is, it is not invoked when flushing due to a commit operation.
Overrides:
beforeFlush in class PNewState

beforeCommit

void beforeCommit(StateManagerImpl context)
Description copied from class: JDOState
Called before the state is committed.
Overrides:
beforeCommit in class PNewState

deletePersistent

JDOState deletePersistent(StateManagerImpl context)
Description copied from class: JDOState
Perform any actions necesssary and return the proper lifecycle state on a call to PersistenceManager.deletePersistent(java.lang.Object) with the given instance. Returns the this pointer by default.
Overrides:
deletePersistent in class PNewState

isFlushed

boolean isFlushed()
Description copied from class: JDOState
Return whether this is a flushed state. Returns false by default. Flushed states are those for which PersistenceManagerImpl.flush() has been invoked at least once. That is, PNewFlushed returns true, and so does PNewFlushedDeleted. So, it is not sufficient to check if this returns true to know if there are outstanding changes that need to be flushed.
Overrides:
isFlushed in class JDOState

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.