|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.PCState org.apache.openjpa.kernel.TCleanState
class TCleanState
Lifecycle state. Represents a transient instance that is managed by a StateManager and may be participating in the current transaction, but has not yet been modified.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.kernel.PCState |
---|
ECLEAN, ECOPY, EDELETED, EDIRTY, ENONTRANS, HOLLOW, PCLEAN, PDELETED, PDELETEDFLUSHED, PDIRTY, PNEW, PNEWDELETED, PNEWFLUSHEDDELETED, PNEWFLUSHEDDELETEDFLUSHED, PNEWPROVISIONAL, PNONTRANS, PNONTRANSDELETED, PNONTRANSDIRTY, PNONTRANSNEW, TCLEAN, TDIRTY, TLOADED, TRANSIENT |
Constructor Summary | |
---|---|
TCleanState()
|
Method Summary | |
---|---|
(package private) PCState |
beforeOptimisticWrite(StateManagerImpl context,
int field,
boolean mutate)
Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an optimistic transaction. |
(package private) PCState |
beforeWrite(StateManagerImpl context,
int field,
boolean mutate)
Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an active transaction. |
(package private) PCState |
delete(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on a call to Broker.delete(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given instance. |
(package private) void |
initialize(StateManagerImpl context)
Called when this state is first assigned to the given state manager. |
(package private) PCState |
nontransactional(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on a call to StoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given
instance. |
(package private) PCState |
persist(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on a call to Broker.persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given instance. |
String |
toString()
|
Methods inherited from class org.apache.openjpa.kernel.PCState |
---|
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeRead, commit, commitRetain, error, evict, flush, isDeleted, isDirty, isNew, isPendingTransactional, isPersistent, isProvisional, isTransactional, isVersionCheckRequired, nonprovisional, readResolve, release, rollback, rollbackRestore, transactional |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
TCleanState()
Method Detail |
---|
void initialize(StateManagerImpl context)
PCState
initialize
in class PCState
PCState persist(StateManagerImpl context)
PCState
Broker.persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)
with the given instance.
Returns the this
pointer by default. Note: this method
is not called for embedded states, and is only called when an
existing managed instance is the target of a persist call.
persist
in class PCState
PCState delete(StateManagerImpl context)
PCState
Broker.delete(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)
with the given instance.
Returns the this
pointer by default.
delete
in class PCState
PCState nontransactional(StateManagerImpl context)
PCState
StoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)
with the given
instance. Returns the this
pointer by default.
nontransactional
in class PCState
PCState beforeWrite(StateManagerImpl context, int field, boolean mutate)
PCState
this
pointer by default.
beforeWrite
in class PCState
PCState beforeOptimisticWrite(StateManagerImpl context, int field, boolean mutate)
PCState
this
pointer by default.
beforeOptimisticWrite
in class PCState
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |