class PDirtyState 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 |
---|
PDirtyState() |
Modifier and Type | Method and Description |
---|---|
(package private) PCState |
afterOptimisticRefresh()
Return the state to transition to after refresh.
|
(package private) PCState |
afterRefresh()
Return the state to transition to after refresh.
|
(package private) void |
beforeFlush(StateManagerImpl context,
boolean logical,
OpCallbacks call)
Called before the state is flushed.
|
(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 |
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,
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 |
isPersistent()
Return whether this is a persistent state.
|
(package private) boolean |
isTransactional()
Return whether this is a transactional state.
|
(package private) boolean |
isVersionCheckRequired(StateManagerImpl context)
Whether this state requires a version check when being flushed,
assuming the system is configured for version checks.
|
(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 |
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, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, error, evict, flush, isDeleted, isNew, isPendingTransactional, isProvisional, nonprovisional, persist, readResolve, transactional
void initialize(StateManagerImpl context, PCState previous)
PCState
initialize
in class PCState
void beforeFlush(StateManagerImpl context, boolean logical, OpCallbacks call)
PCState
beforeFlush
in class PCState
PCState commit(StateManagerImpl context)
PCState
this
pointer by default.PCState commitRetain(StateManagerImpl context)
PCState
this
pointer by default.commitRetain
in class PCState
PCState rollback(StateManagerImpl context)
PCState
this
pointer by default.PCState rollbackRestore(StateManagerImpl context)
PCState
this
pointer by default.rollbackRestore
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.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.boolean isVersionCheckRequired(StateManagerImpl context)
PCState
isVersionCheckRequired
in class PCState
PCState afterRefresh()
PCState
afterRefresh
in class PCState
PCState afterOptimisticRefresh()
PCState
afterOptimisticRefresh
in class PCState
boolean isTransactional()
PCState
false
by default.isTransactional
in class PCState
boolean isPersistent()
PCState
false
by default.isPersistent
in class PCState
boolean isDirty()
PCState
false
by default.Copyright © 2006–2013 Apache Software Foundation. All rights reserved.