class PDeletedState extends 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 and Description |
|---|
PDeletedState() |
| Modifier and Type | Method and Description |
|---|---|
(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) void |
initialize(StateManagerImpl context,
PCState previous)
Called when this state is first assigned to the given state manager.
|
(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 |
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() |
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeRead, delete, error, evict, isNew, isPendingTransactional, isProvisional, isVersionCheckRequired, nonprovisional, readResolve, transactionalvoid initialize(StateManagerImpl context, PCState previous)
PCStateinitialize in class PCStatePCState flush(StateManagerImpl context)
PCStatethis pointer by default.PCState commit(StateManagerImpl context)
PCStatethis pointer by default.PCState commitRetain(StateManagerImpl context)
PCStatethis pointer by default.commitRetain in class PCStatePCState rollback(StateManagerImpl context)
PCStatethis pointer by default.PCState rollbackRestore(StateManagerImpl context)
PCStatethis pointer by default.rollbackRestore in class PCStatePCState nontransactional(StateManagerImpl context)
PCStateStoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks) with the given
instance. Returns the this pointer by default.nontransactional in class PCStatePCState persist(StateManagerImpl context)
PCStateBroker.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.PCState release(StateManagerImpl context)
PCStateBroker#makeTransient with the given instance.
Returns the this pointer by default.PCState beforeWrite(StateManagerImpl context, int field, boolean mutate)
PCStatethis pointer by default.beforeWrite in class PCStatePCState beforeOptimisticWrite(StateManagerImpl context, int field, boolean mutate)
PCStatethis pointer by default.beforeOptimisticWrite in class PCStateboolean isTransactional()
PCStatefalse by default.isTransactional in class PCStateboolean isPersistent()
PCStatefalse by default.isPersistent in class PCStateboolean isDeleted()
PCStatefalse by default.boolean isDirty()
PCStatefalse by default.Copyright © 2006–2015 Apache Software Foundation. All rights reserved.