|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.PCState org.apache.openjpa.kernel.HollowState
class HollowState
Lifecycle state. Represents a hollow instance that exists in the data store, but whose state has not been loaded and who is not active in the current transaction (if any). This may be the state of instances returned on ID lookups or by traversing relations, and the state of persistent instances outside of transactions (unless the retainValues flag is set in the Broker).
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 | |
---|---|
HollowState()
|
Method Summary | |
---|---|
(package private) PCState |
beforeNontransactionalRead(StateManagerImpl context,
int field)
Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read outside of an active transaction. |
(package private) PCState |
beforeNontransactionalWrite(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 outside of an active transaction. |
(package private) PCState |
beforeOptimisticRead(StateManagerImpl context,
int field)
Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read in an optimistic transaction. |
(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 |
beforeRead(StateManagerImpl context,
int field)
Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read within an active 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 |
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)
Called when this state is first assigned to the given state manager. |
(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 |
---|
afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, commit, commitRetain, error, evict, flush, isDeleted, isDirty, isNew, isPendingTransactional, 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 |
---|
HollowState()
Method Detail |
---|
void initialize(StateManagerImpl context)
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.
delete
in class PCState
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.
release
in class PCState
PCState beforeRead(StateManagerImpl context, int field)
PCState
this
pointer by default.
beforeRead
in class PCState
PCState beforeOptimisticRead(StateManagerImpl context, int field)
PCState
this
pointer by default.
beforeOptimisticRead
in class PCState
PCState beforeNontransactionalRead(StateManagerImpl context, int field)
PCState
this
pointer by default.
beforeNontransactionalRead
in class PCState
PCState beforeWrite(StateManagerImpl context, int field, boolean mutate)
PCState
this
pointer by default.
beforeWrite
in class PCState
PCState beforeOptimisticWrite(StateManagerImpl context, int field, boolean mutate)
PCState
this
pointer by default.
beforeOptimisticWrite
in class PCState
PCState beforeNontransactionalWrite(StateManagerImpl context, int field, boolean mutate)
PCState
this
pointer by default.
beforeNontransactionalWrite
in class PCState
boolean isPersistent()
PCState
false
by default.
isPersistent
in class PCState
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |