|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.PCState
org.apache.openjpa.kernel.PNonTransDirtyState
class PNonTransDirtyState
Lifecycle state. Represents a persistent instance that has been dirtied outside of transaction. This state is only reachable only if the RetainNontransactional property is set.
| 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 | |
|---|---|
PNonTransDirtyState()
|
|
| Method Summary | |
|---|---|
(package private) PCState |
afterNontransactionalRefresh()
Return the state to transition to after refresh. |
(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) PCState |
evict(StateManagerImpl context)
Perform any actions necesssary and return the proper lifecycle state on a call to Broker.evict(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given instance. |
(package private) void |
initialize(StateManagerImpl context,
PCState previous)
Called when this state is first assigned to the given state manager. |
(package private) boolean |
isDirty()
Return whether this is a dirty state. |
(package private) boolean |
isPendingTransactional()
Return whether this is a state that will become transactional upon the begin of the next transaction. |
(package private) boolean |
isPersistent()
Return whether this is a persistent state. |
(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. |
String |
toString()
|
(package private) PCState |
transactional(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. |
| Methods inherited from class org.apache.openjpa.kernel.PCState |
|---|
afterOptimisticRefresh, afterRefresh, beforeFlush, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, commit, commitRetain, error, flush, isDeleted, isNew, isProvisional, isTransactional, isVersionCheckRequired, nonprovisional, nontransactional, persist, readResolve, rollback, rollbackRestore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
PNonTransDirtyState()
| Method Detail |
|---|
void initialize(StateManagerImpl context,
PCState previous)
PCState
initialize in class PCStatePCState delete(StateManagerImpl context)
PCStateBroker.delete(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given instance.
Returns the this pointer by default.
delete in class PCStatePCState transactional(StateManagerImpl context)
PCStateStoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given
instance. Returns the this pointer by default.
transactional in class PCStatePCState release(StateManagerImpl context)
PCStateBroker#makeTransient with the given instance.
Returns the this pointer by default.
release in class PCStatePCState evict(StateManagerImpl context)
PCStateBroker.evict(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given instance.
Returns the this pointer by default.
evict in class PCStatePCState afterNontransactionalRefresh()
PCState
afterNontransactionalRefresh in class PCStateboolean isPendingTransactional()
PCStatefalse by default.
isPendingTransactional in class PCStateboolean isPersistent()
PCStatefalse by default.
isPersistent in class PCStateboolean isDirty()
PCStatefalse by default.
isDirty in class PCStatepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||