Class CachedObjectReference
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,_WTReference,NetFactor,ObjectMappable,WTReference,Evolvable
- Direct Known Subclasses:
wt.admin._AdminDomainRef,wt.folder._CabinetReference,wt.inf.team._ContainerTeamReference,wt.epm._EPMAuthAppVersionRef,wt.lifecycle._LifeCycleTemplateMasterReference,wt.lifecycle._LifeCycleTemplateReference,wt.team._TeamTemplateReference,wt.vc.views._ViewReference,wt.inf.container._WTContainerRef,wt.inf.container._WTContainerTemplateRef
CachedObjectReference was specifically designed to support the StandardObjReferenceCacheService.
The StandardObjReferenceCacheService maintains a set of cached Persistables while ensuring their
consistency with the database. Use of this service and CachedObjectReferences relieves the
developer from concerns associated with managing data consistency with the database.
CachedObjectReference is a subclass of ObjectReference therefore the object
it references is referred to as it's target, as is done in ObjectReference.
The two most important API's of CachedObjectReference are getObject and
getReadOnlyObject.
The method getObject returns a clone of this reference's target object, getReadOnlyObject
returns a reference to the target itself. This is a very important distinction. The read only target is a reference to the
object which is being held by the StandardObjReferenceCacheService. Under no circumstances should this
target object be altered in any way! doing so will corrupt the data integrity of the referenced target, and
more importantly the caches in the service itself.
The concept of inflate in CachedObjectReference is somewhat different than in ObjectReference.
CachedObjectReference provides two abstract inflate methods so that subclasses can extract specific members
from the target object without exposing others. Note that the target passed to the inflate method "may" be a read only
target thus is should never itself be modified.
Supported API: true
Extendable: true
- See Also:
-
StandardObjReferenceCacheService- Serialized Form
-
Field Summary
Fields inherited from class wt.fc._ObjectReference
OBJECT -
Method Summary
Methods inherited from class wt.fc.ObjectReference
equals, getKey, hashCode, newObjectReference, newObjectReference, references, setObject, toString