|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateItf
This interface a state of an user instance.
Method Summary | |
---|---|
void |
attachCopy(POManagerItf pm,
java.util.Map map,
StateItf detached)
This method is used during the attach operation. |
boolean |
checkVersion(StateItf sa)
check the validity of the version of sa compared to the persistent object this. |
void |
deletePersistent(POManagerItf pm)
Deletes persistent all inner elements of the persistent instance. |
void |
detachCopy(POManagerItf pm,
java.util.Map map,
StateItf clone,
java.util.Collection fgHints)
This method is used during the detach operation. |
void |
forceDetachedDirty()
Force the detached status to DETACHED_DIRTY and all the xxxLoaded to true |
byte |
getDetachedStatus()
Gets the current status of this detached object |
PersistentObjectItf |
getSpeedoPO()
|
long |
getVersion()
Return the version of the object as a long |
boolean |
hasBeenFlush()
indicates if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close). |
void |
indexFieldModified(int cacheId,
boolean rebind)
The field uses in user cache, has been modified. |
boolean |
isToMerge()
indicates if the StateItf has to be merge with the reference state at commit time. |
void |
loadFields(POManagerItf pm,
long[] fields)
Askes the loading of the some fields identified by the long array. |
void |
makePersistent(POManagerItf pm)
Makes persistent all inner elements of the persistent instance. |
void |
makePersistentOnAttach(POManagerItf pm,
java.util.Map map)
makes persistent on attach, taking into account the map representing the attch context. |
void |
makeToMerge(java.lang.Object thinLock)
Mark the current state with the flag 'toMerge'. |
State |
merge(State oldState)
This action updates the old state with the change (delta) done in the transaction on this state. |
void |
prepareWrite()
Prepare to write (relations consistency management) |
void |
refresh(POManagerItf pm,
java.util.Map map,
java.util.Collection fgHints)
This method is used during the refresh operation. |
void |
restoreDetachedNone()
Restore the detached status to DETACHED_NONE and all the xxxLoaded to false |
void |
retrieve(POManagerItf pm,
java.util.Map map,
java.util.Collection fgHints)
This method is used during the retrieve operation. |
void |
setDetachedStatus(byte newValue)
Forces the new value of the detached status |
void |
setFlushed(boolean val)
Assignates a boolean value to indicate if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close). |
void |
setSpeedoPO(PersistentObjectItf sp)
Assignes the PersistentObjectItf attached to this state representation. |
void |
speedoChangeStatus(byte action)
Changes the status of this object |
void |
speedoChangeVersion()
change the version of this only if needed The version is computed by this method A call to changeVersion can have no effect. |
byte |
speedoGetStatus()
Gets the current status of this object |
void |
speedoSetStatus(byte newValue)
Forces the new value of the status |
void |
unSwizzle()
|
void |
workingSetClosed()
The context has been closed (ex: transaction end). |
Methods inherited from interface org.objectweb.jorm.api.PAccessor |
---|
getMemoryInstance |
Methods inherited from interface org.objectweb.perseus.persistence.api.State |
---|
getCacheEntry, setCacheEntry |
Method Detail |
---|
void speedoChangeStatus(byte action)
action
- the action that may change the statusLifeCycle
byte speedoGetStatus()
LifeCycle
void speedoSetStatus(byte newValue)
newValue
- the new status of this objectLifeCycle
void speedoChangeVersion()
long getVersion()
boolean checkVersion(StateItf sa)
byte getDetachedStatus()
void setDetachedStatus(byte newValue)
newValue
- the new status of this objectPersistentObjectItf getSpeedoPO()
void setSpeedoPO(PersistentObjectItf sp)
void prepareWrite()
void workingSetClosed()
boolean hasBeenFlush()
void setFlushed(boolean val)
val
- is the boolean which must be assigned.void makePersistent(POManagerItf pm)
pm
- is the po manager for making persistent inner element.void makePersistentOnAttach(POManagerItf pm, java.util.Map map)
pm
- is the po manager for making persistent inner element.map
- is the context of the attachment process.void deletePersistent(POManagerItf pm)
pm
- is the po manager for making persistent inner element.void loadFields(POManagerItf pm, long[] fields)
pm
- is the po manager to use to load referencesfields
- is an array of long. Each long is a bit mask indicating
fields to load. As a long is stored over 64 bits, each long of the array
can represent only 64 persistent fields. If the class has 70 persistent
field, the parameter could be a long array size is 2. This parameter
can be null if no field loading is required.void detachCopy(POManagerItf pm, java.util.Map map, StateItf clone, java.util.Collection fgHints)
pm
- is the po manager used during the detach operationmap
- is the map of the detached object. The use of this map permits
to support cycle in the object graph.clone
- is a clone of the current statefgHints
- represents the fetch plan.void attachCopy(POManagerItf pm, java.util.Map map, StateItf detached)
pm
- is the po manager used during the attach operationmap
- is the map of the atttached object. The use of this map permits
to support cycle in the object graph.detached
- is the detached state used to update the current statevoid refresh(POManagerItf pm, java.util.Map map, java.util.Collection fgHints)
pm
- is the po manager used during the refresh operationmap
- is the map of the refreshed object. The use of this map permits
to support cycle in the object graph.fgHints
- represents the fetch plan.void retrieve(POManagerItf pm, java.util.Map map, java.util.Collection fgHints)
pm
- is the po manager used during the retrieve operationmap
- is the map of the retrieved object. The use of this map permits
to support cycle in the object graph.fgHints
- represents the fetch plan.void forceDetachedDirty()
void restoreDetachedNone()
boolean isToMerge()
void makeToMerge(java.lang.Object thinLock)
thinLock
- is an object representing the thin lockState merge(State oldState)
oldState
- is the state which has to be updated
void unSwizzle()
void indexFieldModified(int cacheId, boolean rebind)
cacheId
- is the cache identifier. The value Integer.MAX_VALUE
means that all user cache must be updated.rebind
- if true, the speedoAcessor is rebound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |