| org.objectweb.speedo.mim.api.PersistentObjectItf
PersistentObjectItf | public interface PersistentObjectItf extends PBinding,ReplaceableCacheEntry(Code) | | 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.
See Also: org.objectweb.speedo.mim.api.HomeItf See Also: org.objectweb.speedo.mim.api.StateItf author: S.Chassande-Barrioz |
speedoAdd | void speedoAdd(Object elem, int gcFieldNumber)(Code) | | Adds an element in the gen class field whose number is given. This method
must call the speedoAdd method of the SpeedoGenClassCoherence interface,
or the Collection.add method (if the field contains a collection that
does implement the previous interface). If the field is null, a new
(speedo) collection must be created first.
|
speedoCopyState | void speedoCopyState(StateItf src, StateItf dest)(Code) | | Copies persistent fields from an accessor to another.
Parameters: src - is the accessor containing peristent fields to copy Parameters: dest - is the accessor where persistent fields have to be copied |
speedoCreateState | StateItf speedoCreateState()(Code) | | a new StateItf instance. |
speedoGetEncodedPName | Object speedoGetEncodedPName()(Code) | | the encoded PName of the detached copy |
speedoGetPNameHints | Object speedoGetPNameHints()(Code) | | Retrieves the hints needed to build the PName of the persistent object
during the export action.
|
speedoGetReferenceState | StateItf speedoGetReferenceState()(Code) | | the reference accessor of the PersistentObjectItf instance. It can be *null.The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy. |
speedoGetState | StateItf speedoGetState()(Code) | | It retrieves the StateItf instance used in the current context.
If the po is not active then the reference state is returned.
otherwise a $classNameFields is returned
|
speedoIsActive | boolean speedoIsActive()(Code) | | Tests whether the po infrastructure has already been set.
A po has a correct PClassMapping linked to a PBinder,
a PName obtained thanks to this PClassMapping.
|
speedoIsPersistent | boolean speedoIsPersistent()(Code) | | |
speedoSetEncodedPName | void speedoSetEncodedPName(Object encodedPName)(Code) | | Set the encoded PName of the detach copy to allow serialization.
Parameters: encodedPName - : the encoded PName of the persistent object |
speedoSetReferenceState | void speedoSetReferenceState(StateItf refAcc)(Code) | | Assignes the reference accessor to the PersistentObjectItf
The Reference accessor is used for non persistent instance, as cache
value and for pessimistic policy.
Parameters: refAcc - the new reference accessor |
|
|