Package wt.fc
Class ObjectToObjectLink
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.fc._ObjectToObjectLink
wt.fc.ObjectToObjectLink
- 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:
wt.associativity.accountability._AccountabilityEntry,_AlternateItemGroup,com.ptc.windchill.option.model._ATONavigationFilterChoiceLink,_BaselineMember,wt.build._BuildHistory,wt.businessRules._BusinessRuleLink,_CheckoutLink,com.ptc.windchill.option.model._ChoiceMappableChoiceLink,_CombinedPathOccurrence,_ConfigurableMastersLink,wt.associativity._ConsumptionLink,_DriverLink,com.ptc.windchill.enterprise.data._EnterpriseDataLink,com.ptc.windchill.enterprise.data._EnterpriseDataMasterLink,_EPMBuildRuleAssociationLink,_EPMContainedIn,_EPMReferenceLink,wt.epm.structure._EPMVariantLink,_EquivalenceLink,_ERPMaterialLink,com.ptc.windchill.esi.txn._ESIRelatedTransaction,_ESIReleaseObjectLink,_ESIReleaseTransactionLink,_ESITargetAssignmentLink,com.ptc.windchill.esi.tgt._ESITargetOrganizationLink,_ESITransactionObjectLink,com.ptc.windchill.esi.txn._ESITransactionRelease,_ESITransactionTargetLink,wt.option._ExpressionMemberLink,wt.vc.baseline._FloatingBaselineMember,wt.folder._FolderMemberLink,wt.fc._ForeignKeyLink,com.ptc.windchill.mpml.formula._FormulaSetSelectorLink,_FormulaValuatedLink,wt.fv._FvMount,_ImpactLink,_Impacts,_IteratedDescribeLink,_IteratedReferenceLink,_IteratedUsageLink,_MergeInfoLink,_MfgHistoryLink,_MissingRepObjectLinkTarget,wt.epm.modelitems._ModelItemLink,_MPMConfigContextLink,wt.mpm.configuration._MPMGenericRecipeLink,com.ptc.windchill.mpml.processplan.operation._MPMPartPathOccurrenceLink,_MPMPartToProcessPlanLink,_MPMPlantLocalizationLink,com.ptc.windchill.mpml.pmi._MPMQualityLink,_MPMStandardCCUsageToDDLink,_MPMStandardCCUsageToDRLink,_MPMStandardCCUsageToEPMDDLink,_MPMStdCCUsageToProcessPlanLink,_MPMStdCCUsageToResourceLink,wt.mpm.configuration._MPMVariantRecipeLink,_MPMWTPartToEPMDocumentLink,wt.filter._NavFilterDesignationLink,_ObjectToObjectTraceLink,_OptionSetAssignmentHistory,_OptionSetChoiceRuleLink,_OptionSetIgnoreChoiceRuleLink,_OptionSetMemberLink,_PartListItemSubstituteLink,_PartListMasterToPartListMasterLink,com.ptc.windchill.enterprise.data._PlantDataLink,com.ptc.projectmanagement.plannable._PrecedenceConstraint,wt.maturity._PromotionSeed,wt.maturity._PromotionTarget,_ReleaseActivity,wt.query.template._ReportTemplateViewLink,com.ptc.projectmanagement.assignment._ResourceAssignment,wt.folder._ShortcutLink,_SubjectLink,_SupplementaryReplacementLink,_UDISubjectLink,wt.workflow.engine._WfLink,_WTPartAlternateLink,_WTPartSubstituteLink,ESITransactionActivity
@GenAsBinaryLink(superClass=WTObject.class,extendable=true,versions=9126817289074372689L,properties={@GeneratedProperty(name="roleAObjectRef",type=ObjectReference.class,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="roleBObjectRef",type=ObjectReference.class,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true))},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.id",compositeIndex2="roleBObjectRef.key.id"))
public abstract class ObjectToObjectLink
extends wt.fc._ObjectToObjectLink
Abstract class that represents an association between two
Supported API: true
Extendable: true
Persistable
objects. Each Persistable is referenced by an ObjectReference.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.fc._ObjectToObjectLink
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 TypeMethodDescriptionappendJoinCriteria(Persistable obj, String otherSideRole, QuerySpec qs, int targetPos, int linkPos) Appends applicable search condition(s) onto the end of the given query spec based on the role to be navigate to and the attributes of the given object.Create a deep copy of this Link.Object[]Gets all the role objects of this link.Object[]getJoinValues(Persistable obj, String otherSideRole) Gets an array of values in the same order as the query was appended with search conditions.getRoleObject(String rolename) Gets the role object of this link for the given role name.voidsetRoleObject(Object roleObject, String rolename) Sets the role object of this link for the given role name.Methods inherited from class wt.fc._ObjectToObjectLink
getClassInfo, getConceptualClassname, getRoleAObjectRef, getRoleBObjectRef, getType, readExternal, readExternal, readVersion, super_readExternal_ObjectToObjectLink, super_readVersion_ObjectToObjectLink, super_writeExternal_ObjectToObjectLink, 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
-
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 A object for this Link.rolename-- Throws:
WTException
-
appendJoinCriteria
public QuerySpec appendJoinCriteria(Persistable obj, String otherSideRole, QuerySpec qs, int targetPos, int linkPos) throws WTException Appends applicable search condition(s) onto the end of the given query spec based on the role to be navigate to and the attributes of the given object. This method is static to allow for use where there is only a class of the link available.
Supported API: true- Parameters:
obj-otherSideRole-qs-targetPos-linkPos-- Returns:
- QuerySpec
- Throws:
WTException
-
getJoinValues
Gets an array of values in the same order as the query was appended with search conditions.
Supported API: true- Parameters:
obj-otherSideRole-- Returns:
- Object[]
- 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
-