class PNonTransNewState 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 |
---|
PNonTransNewState() |
Modifier and Type | Method and Description |
---|---|
(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 |
isNew()
Return whether this is a new 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. |
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, commit, commitRetain, error, evict, flush, isDeleted, isProvisional, isTransactional, isVersionCheckRequired, nonprovisional, nontransactional, persist, readResolve, rollback, rollbackRestore
void initialize(StateManagerImpl context, PCState previous)
PCState
initialize
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 transactional(StateManagerImpl context)
PCState
StoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)
with the given
instance. Returns the this
pointer by default.transactional
in class PCState
PCState release(StateManagerImpl context)
PCState
Broker#makeTransient
with the given instance.
Returns the this
pointer by default.boolean isPersistent()
PCState
false
by default.isPersistent
in class PCState
boolean isNew()
PCState
false
by default.boolean isDirty()
PCState
false
by default.boolean isPendingTransactional()
PCState
false
by default.isPendingTransactional
in class PCState
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.