|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentObjectItf
This interface what is a Peristent Object in Speedo. It is the jorm PBinding because it is unique. The Persistent object is an entry of the L2 cache. A persistent object is linked to its home which is also the Mapping. A persistent object is linked to several state (StateIf) containing the persistent data.
HomeItf
,
StateItf
Field Summary |
---|
Fields inherited from interface org.objectweb.jorm.api.PBinding |
---|
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND |
Method Summary | |
---|---|
void |
speedoAdd(java.lang.Object elem,
int gcFieldNumber)
Adds an element in the gen class field whose number is given. |
void |
speedoCopyState(StateItf src,
StateItf dest)
Copies persistent fields from an accessor to another. |
StateItf |
speedoCreateState()
|
java.lang.Object |
speedoGetEncodedPName()
|
HomeItf |
speedoGetHome()
|
java.lang.Object |
speedoGetPNameHints()
Retrieves the hints needed to build the PName of the persistent object during the export action. |
POManagerItf |
speedoGetPOManager()
|
StateItf |
speedoGetReferenceState()
|
StateItf |
speedoGetState()
It retrieves the StateItf instance used in the current context. |
boolean |
speedoIsActive()
Tests whether the po infrastructure has already been set. |
void |
speedoIsActive(boolean newvalue)
Sets the new value of the po flags |
boolean |
speedoIsPersistent()
|
void |
speedoSetEncodedPName(java.lang.Object encodedPName)
Set the encoded PName of the detach copy to allow serialization. |
void |
speedoSetReferenceState(StateItf refAcc)
Assignes the reference accessor to the PersistentObjectItf The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy. |
Methods inherited from interface org.objectweb.jorm.api.PBinding |
---|
bind, exist, export, export, getPClassMapping, getPName, getStatus, init, read, read, read, unbind, unexport, write |
Methods inherited from interface org.objectweb.perseus.cache.replacement.api.ReplaceableCacheEntry |
---|
getCeAge, setCeAge |
Methods inherited from interface org.objectweb.perseus.cache.api.FixableCacheEntry |
---|
fixCe, getCeFixCount, unfixCe |
Methods inherited from interface org.objectweb.perseus.cache.api.CacheEntry |
---|
getCeIdentifier, getCeObject |
Method Detail |
---|
boolean speedoIsActive()
void speedoIsActive(boolean newvalue)
newvalue
- the new value of the po flagspeedoIsActive()
boolean speedoIsPersistent()
HomeItf speedoGetHome()
StateItf speedoGetState()
StateItf speedoGetReferenceState()
void speedoSetReferenceState(StateItf refAcc)
refAcc
- the new reference accessorStateItf speedoCreateState()
void speedoCopyState(StateItf src, StateItf dest)
src
- is the accessor containing peristent fields to copydest
- is the accessor where persistent fields have to be copiedvoid speedoSetEncodedPName(java.lang.Object encodedPName)
encodedPName
- : the encoded PName of the persistent objectjava.lang.Object speedoGetEncodedPName()
java.lang.Object speedoGetPNameHints()
void speedoAdd(java.lang.Object elem, int gcFieldNumber)
POManagerItf speedoGetPOManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |