|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
This interface a state of an user instance.
| Method Summary | |
|---|---|
void |
attachCopy(ProxyManager pm,
java.util.Map map,
SpeedoAccessor detached,
boolean makeTransactional)
This method is used during the attach operation. |
void |
changeVersion()
change the version of this only if needed The version is computed by this method A call to changeVersion can have no effect. |
boolean |
checkVersion(SpeedoAccessor sa)
check the validity of the version of sa compared to the persistent object this. |
void |
deletePersistent(ProxyManager pm)
Deletes persistent all inner elements of the persistent instance. |
void |
detachCopy(ProxyManager pm,
java.util.Map map,
SpeedoAccessor 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 |
SpeedoProxy |
getSpeedoProxy()
|
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 State has to be merge with the reference state at commit time. |
void |
jdoChangeStatus(byte action)
Changes the status of this object |
byte |
jdoGetStatus()
Gets the current status of this object |
void |
jdoSetStatus(byte newValue)
Forces the new value of the status |
void |
loadFields(ProxyManager pm,
long[] fields)
Askes the loading of the some fields identified by the long array. |
void |
makePersistent(ProxyManager pm)
Makes persistent all inner elements of the persistent instance. |
void |
makeToMerge(java.lang.Object thinLock)
Mark the current state with the flag 'toMerge'. |
org.objectweb.perseus.persistence.api.State |
merge(org.objectweb.perseus.persistence.api.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(ProxyManager 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(ProxyManager 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 |
setSpeedoProxy(SpeedoProxy sp)
Assignes the SpeedoProxy attached to this state representation. |
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 |
| Method Detail |
public void jdoChangeStatus(byte action)
action - the action that may change the statusLifeCyclepublic byte jdoGetStatus()
LifeCyclepublic void jdoSetStatus(byte newValue)
newValue - the new status of this objectLifeCyclepublic void changeVersion()
public long getVersion()
public boolean checkVersion(SpeedoAccessor sa)
public byte getDetachedStatus()
public void setDetachedStatus(byte newValue)
newValue - the new status of this objectpublic SpeedoProxy getSpeedoProxy()
public void setSpeedoProxy(SpeedoProxy sp)
public void prepareWrite()
public void workingSetClosed()
public boolean hasBeenFlush()
public void setFlushed(boolean val)
val - is the boolean which must be assigned.public void makePersistent(ProxyManager pm)
pm - is the proxy manager for making persistent inner element.public void deletePersistent(ProxyManager pm)
pm - is the proxy manager for making persistent inner element.
public void loadFields(ProxyManager pm,
long[] fields)
pm - is the Proxy 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.
public void detachCopy(ProxyManager pm,
java.util.Map map,
SpeedoAccessor clone,
java.util.Collection fgHints)
pm - is the proxy 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.
public void attachCopy(ProxyManager pm,
java.util.Map map,
SpeedoAccessor detached,
boolean makeTransactional)
pm - is the proxy 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 statemakeTransactional - ??? TODO comment the parameter
public void refresh(ProxyManager pm,
java.util.Map map,
java.util.Collection fgHints)
pm - is the proxy 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.
public void retrieve(ProxyManager pm,
java.util.Map map,
java.util.Collection fgHints)
pm - is the proxy 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.public void forceDetachedDirty()
public void restoreDetachedNone()
public boolean isToMerge()
public void makeToMerge(java.lang.Object thinLock)
thinLock - is an object representing the thin lockpublic org.objectweb.perseus.persistence.api.State merge(org.objectweb.perseus.persistence.api.State oldState)
oldState - is the state which has to be updated
public void unSwizzle()
public 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 | |||||||||||