| org.objectweb.speedo.genclass.GenClassElement
All known Subclasses: org.objectweb.speedo.genclass.collection.CollectionElem,
GenClassElement | public interface GenClassElement extends PIndexedElem,Serializable(Code) | | Represents a element of a gen class. It matches to a reference element or
a primitive element.
author: S.Chassande-Barrioz |
getElement | Object getElement()(Code) | | the element of the gen class. It is a user object. |
getElement | Object getElement(POManagerItf pm)(Code) | | Parameters: pm - is the persistence manager which permits to resolve the PNameinto a java reference. the element of the gen class. The element is a reference(PersistentObjectItf). |
getIndex | Object getIndex()(Code) | | the index of this gen class element, possibly wrapped in an object. |
getSpeedoAccessor | StateItf getSpeedoAccessor()(Code) | | Retrieves the Speedo accessor associated to this gen class element.
|
retainStatusForMerge | byte retainStatusForMerge()(Code) | | When thin lock is enabled (locking managed at genclass element level
instead of at genclass level), this method store the current status of
the genclass element into another variable. This status is in fact the
status of the genclass element during the working set. If the element
is modified, the change(delta) has to be report on the reference state
(cache) at commit time.
a byte indicating the retained status |
setElement | void setElement(Object element)(Code) | | Assignes the element of the gen class. It is a user object.
Parameters: element - to add, it cannot be null. |
setIndex | void setIndex(Object index)(Code) | | Assignes the index of the element of the gen class. It is a user object.
Parameters: index - to add, it cannot be null. |
setStatus | void setStatus(byte s)(Code) | | Assignes the jorm status of the PIndexedElement
Parameters: s - the new status |
unSwizzle | void unSwizzle()(Code) | | In case of the element of the generic class is a persistent class. The
implementation of this method should replace the direct reference to
the persistent object by its identifier (PName). The aim of the
unswizzling feature is to permit to the cache to garbage unused instance.
This unswizzling is done at commit time usualy.
|
|
|