|
||||||||||
| 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.PNewState
class PNewState
Lifecycle state. Represents an instance that was made persistent within the current transaction.
| 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 | |
|---|---|
PNewState()
|
|
| Method Summary | |
|---|---|
(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 |
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) 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()
|
| Methods inherited from class org.apache.openjpa.kernel.PCState |
|---|
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeNontransactionalRead, beforeNontransactionalWrite, beforeOptimisticRead, beforeOptimisticWrite, beforeRead, beforeWrite, error, evict, flush, isDeleted, isPendingTransactional, isProvisional, nonprovisional, persist, readResolve, transactional |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
PNewState()
| Method Detail |
|---|
void initialize(StateManagerImpl context,
PCState previous)
PCState
initialize in class PCState
void beforeFlush(StateManagerImpl context,
boolean logical,
OpCallbacks call)
PCState
beforeFlush in class PCStatePCState commit(StateManagerImpl context)
PCStatethis pointer by default.
commit in class PCStatePCState commitRetain(StateManagerImpl context)
PCStatethis pointer by default.
commitRetain in class PCStatePCState rollback(StateManagerImpl context)
PCStatethis pointer by default.
rollback in class PCStatePCState rollbackRestore(StateManagerImpl context)
PCStatethis pointer by default.
rollbackRestore 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 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 release(StateManagerImpl context)
PCStateBroker#makeTransient with the given instance.
Returns the this pointer by default.
release in class PCStateboolean isVersionCheckRequired(StateManagerImpl context)
PCState
isVersionCheckRequired in class PCStateboolean isTransactional()
PCStatefalse by default.
isTransactional in class PCStateboolean isPersistent()
PCStatefalse by default.
isPersistent in class PCStateboolean isNew()
PCStatefalse by default.
isNew 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 | |||||||||