Package wt.vc
Class VersionToObjectLink
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.vc._VersionToObjectLink
wt.vc.VersionToObjectLink
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._BinaryLink,wt.fc._Link,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,BinaryLink,Link,NetFactor,ObjectMappable,Persistable,DisplayIdentification
- Direct Known Subclasses:
_AffectedActivityData,_ChangeRecord2,wt.change2._ChangeReviewItemLink,wt.mpm._MPMPartMgmtLink,_RelevantAnalysisData,_RelevantRequestData2,_ReportedAgainst
@GenAsBinaryLink(superClass=WTObject.class,extendable=true,properties={@GeneratedProperty(name="roleAObjectRef",type=VersionReference.class,accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="roleBObjectRef",type=ObjectReference.class,accessors=@PropertyAccessors(setExceptions={}))},roleA=@GeneratedRole(name="roleAObject",type=Persistable.class,accessors=@PropertyAccessors(setExceptions={}),cardinality=ONE),roleB=@GeneratedRole(name="roleBObject",type=Persistable.class,accessors=@PropertyAccessors(setExceptions={}),cardinality=ONE),tableProperties=@TableProperties(compositeIndex1="roleAObjectRef.key.branchId",compositeIndex2="+roleBObjectRef.key.id"))
public abstract class VersionToObjectLink
extends wt.vc._VersionToObjectLink
The VersionToObjectLink provides a binary type of link between a version
object (role A) and a persistable object (role B). When used in navigating from
the version object to its associated persistable object, only the latest iteration
is found. Navigating from the persistable object to its associated version object
acts a typical navigation, but is applicable only from the latest iteration.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.vc._VersionToObjectLink
EXTERNALIZATION_VERSION_UID, ROLE_AOBJECT_REF, ROLE_BOBJECT_REFFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc._BinaryLink
ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLEFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.fc.BinaryLink
ALL_ROLES, BOTH_ROLESFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.fc.Persistable
IDENTITY, TYPE -
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this Link.Object[]Gets all the role objects of this link.Returns the role B object of this Link for this Link.getRoleObject(String rolename) Gets the role object of this link for the given role name.protected voidinitialize(Iterated roleAObject, Persistable roleBObject) Default initializer for Link objects.voidsetRoleAObject(Persistable roleAObject) Sets the role A object for this Link.voidsetRoleObject(Object roleObject, String rolename) Sets the role object of this link for the given role name.Methods inherited from class wt.vc._VersionToObjectLink
getClassInfo, getConceptualClassname, getRoleAObjectRef, getRoleBObjectRef, getType, readExternal, readExternal, readVersion, super_readExternal_VersionToObjectLink, super_readVersion_VersionToObjectLink, super_writeExternal_VersionToObjectLink, writeExternal, writeExternalMethods inherited from class wt.fc.WTObject
checkAttributes, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, initialize, toStringMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.fc._Persistable
getPersistInfo, setPersistInfoMethods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity
-
Method Details
-
getRoleBObject
Returns the role B object of this Link for this Link.
Supported API: true- Returns:
- Persistable
-
setRoleAObject
Sets the role A object for this Link.
Supported API: true- Parameters:
roleAObject- The role A object for this Link.
-
getAllObjects
Gets all the role objects of this link.
Supported API: true- Returns:
- Object[]
-
getRoleObject
Gets the role object of this link for the given role name.
Supported API: true- Parameters:
rolename-- Returns:
- Object
- Throws:
WTException
-
setRoleObject
Sets the role object of this link for the given role name.
Supported API: true- Parameters:
roleObject- The role object for this Link.rolename-- Throws:
WTException
-
duplicate
Create a deep copy of this Link. This overriding method ensures that the copy has the same references to the roleA and roleB members as the source object.
Supported API: true- Overrides:
duplicatein classWTObject- Returns:
- WTObject
- Throws:
WTException
-
initialize
Default initializer for Link objects.
Supported API: true- Parameters:
roleAObject-roleBObject-- Throws:
WTException
-