|
||||||||||
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.PNewFlushedDeletedState
class PNewFlushedDeletedState
Lifecycle state. Represents an instance that was made persistent within the current transaction, flushed, and subsequently deleted.
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 | |
---|---|
PNewFlushedDeletedState()
|
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 |
commit(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on transaction commit. |
(package private) PCState |
commitRetain(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on transaction commit with the retainValues flag set. |
(package private) PCState |
flush(StateManagerImpl context)
Perform any actions necessary and return the proper lifecycle state on fush. |
(package private) boolean |
isDeleted()
Return whether this is a deleted state. |
(package private) boolean |
isDirty()
Return whether this is a dirty state. |
(package private) boolean |
isNew()
Return whether this is a new state. |
(package private) boolean |
isPersistent()
Return whether this is a persistent state. |
(package private) boolean |
isTransactional()
Return whether this is a transactional state. |
(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. |
(package private) PCState |
release(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on a call to Broker#makeTransient with the given instance. |
(package private) PCState |
rollback(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on transaction rollback. |
(package private) PCState |
rollbackRestore(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on transaction rollback with the restoreValues flag set. |
String |
toString()
|
Methods inherited from class org.apache.openjpa.kernel.PCState |
---|
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeRead, delete, error, evict, initialize, isPendingTransactional, isProvisional, isVersionCheckRequired, nonprovisional, readResolve, transactional |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
PNewFlushedDeletedState()
Method Detail |
---|
PCState flush(StateManagerImpl context)
PCState
this
pointer by default.
flush
in class PCState
PCState commit(StateManagerImpl context)
PCState
this
pointer by default.
commit
in class PCState
PCState commitRetain(StateManagerImpl context)
PCState
this
pointer by default.
commitRetain
in class PCState
PCState rollback(StateManagerImpl context)
PCState
this
pointer by default.
rollback
in class PCState
PCState rollbackRestore(StateManagerImpl context)
PCState
this
pointer by default.
rollbackRestore
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 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 release(StateManagerImpl context)
PCState
Broker#makeTransient
with the given instance.
Returns the this
pointer by default.
release
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
boolean isTransactional()
PCState
false
by default.
isTransactional
in class PCState
boolean isPersistent()
PCState
false
by default.
isPersistent
in class PCState
boolean isNew()
PCState
false
by default.
isNew
in class PCState
boolean isDeleted()
PCState
false
by default.
isDeleted
in class PCState
boolean isDirty()
PCState
false
by default.
isDirty
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 |