com.solarmetric.kodo.runtime
Class PNewFlushedDeletedFlushedState
java.lang.Object
|
+--com.solarmetric.kodo.runtime.JDOState
|
+--com.solarmetric.kodo.runtime.PNewFlushedDeletedState
|
+--com.solarmetric.kodo.runtime.PNewFlushedDeletedFlushedState
- class PNewFlushedDeletedFlushedState
- extends PNewFlushedDeletedState
JDO lifecycle state.
Represents an instance that was made persistent within the
current transaction, flushed, deleted, and flushed.
| Fields inherited from class com.solarmetric.kodo.runtime.JDOState |
HOLLOW, PCLEAN, PDELETED, PDELETEDFLUSHED, PDIRTY, PNEW, PNEWDELETED, PNEWDELETEDFLUSHED, PNEWFLUSHED, PNEWFLUSHEDDELETED, PNEWFLUSHEDDELETEDFLUSHED, PNONTRANS, TCLEAN, TDIRTY, TRANSIENT |
| Methods inherited from class com.solarmetric.kodo.runtime.PNewFlushedDeletedState |
beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, commit, commitRetain, isDeleted, isDirty, isNew, isPersistent, isTransactional, makeNontransactional, makeTransient, rollback, rollbackRetain |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNewFlushedDeletedFlushedState
PNewFlushedDeletedFlushedState()
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 PNewFlushedDeletedState
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 JDOState
flush
JDOState flush(StateManagerImpl context)
- Description copied from class:
JDOState
- Perform any actions necesssary and return the proper lifecycle
state on transaction flush. This is only invoked when the user
explicitly invokes
PersistenceManagerImpl.flush(). That
is, it is not invoked when flushing due to a commit
operation. That is Returns the this pointer by
default.
- Overrides:
flush in class PNewFlushedDeletedState
beforeCommit
void beforeCommit(StateManagerImpl context)
- Description copied from class:
JDOState
- Called before the state is committed.
- Overrides:
beforeCommit in class JDOState
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 PNewFlushedDeletedState
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.