Package wt.fc
Interface WTReference
- All Superinterfaces:
wt.fc._NetFactor,wt.fc._ObjectMappable,_WTReference,NetFactor,ObjectMappable,Serializable
- All Known Implementing Classes:
wt.admin._AdminDomainRef,wt.folder._CabinetReference,wt.fc._CachedObjectReference,wt.effectivity._ConfigurationItemReference,wt.inf.team._ContainerTeamReference,_DataOccurrenceReference,wt.epm._EPMAuthAppVersionRef,wt.lifecycle._LifeCycleTemplateMasterReference,wt.lifecycle._LifeCycleTemplateReference,_ObjectReference,wt.facade.persistedcollection._PersistedCollectionReference,wt.team._TeamReference,wt.team._TeamTemplateReference,_UsesOccurrenceReference,_VersionReference,wt.vc.views._ViewReference,wt.inf.container._WTContainerRef,wt.inf.container._WTContainerTemplateRef,wt.org._WTPrincipalReference,AdminDomainRef,CabinetReference,CachedObjectReference,ConfigurationItemReference,ContainerTeamReference,DataOccurrenceReference,EPMAuthAppVersionRef,LifeCycleTemplateMasterReference,LifeCycleTemplateReference,ObjectReference,PersistedCollectionReference,TeamReference,TeamTemplateReference,UsesOccurrenceReference,VersionReference,ViewReference,WTContainerRef,WTContainerTemplateRef,WTPrincipalReference
@GenAsObjectMappable(extendable=true,properties={@GeneratedProperty(name="object",type=Persistable.class,javaDoc="Object which represents the target of this reference under normal usage scenarios.",supportedAPI=PUBLIC,accessors=@PropertyAccessors(setAccess=PRIVATE,getExceptions=WTRuntimeException.class,setExceptions={}),columnProperties=@ColumnProperties(persistent=false)),@GeneratedProperty(name="key",type=QueryKey.class,javaDoc="Lookup key for referenced target object.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true))})
public interface WTReference
extends _WTReference
Interface that defines the basic notion of holding a reference to a
Supported API: true
Extendable: true
Persistable
object, it's target object. The form of the reference is defined via a QueryKey.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from interface wt.fc._WTReference
OBJECT -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if two references refer to the same object.Gets the object for the association that plays role: OBJECT.Returns the class that this reference refers to.inthashCode()
Supported API: truebooleanreferences(Persistable obj) Tests if this reference refers to the Persistable object passed in.voidrefresh()Retreives the referenced object from the database
Supported API: trueMethods inherited from interface wt.fc.NetFactor
getClassInfo, getConceptualClassnameMethods inherited from interface wt.fc.ObjectMappable
readExternal, writeExternal
-
Method Details
-
getObject
Gets the object for the association that plays role: OBJECT.
Supported API: true- Specified by:
getObjectin interface_WTReference- Returns:
- Persistable
- Throws:
WTRuntimeException- See Also:
-
equals
Tests if two references refer to the same object.
Supported API: true -
hashCode
int hashCode()
Supported API: true -
refresh
Retreives the referenced object from the database
Supported API: true- Throws:
WTException
-
references
Tests if this reference refers to the Persistable object passed in.
Supported API: true- Parameters:
obj-- Returns:
- true if this reference refers to the Persistable object passed in, otherwise false.
-
getReferencedClass
Class getReferencedClass()Returns the class that this reference refers to. This method does not retreive the referenced object from the database.
Supported API: true- Returns:
- Class
-