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, _ERPMaterialDocumentReferenceLink, _ERPMaterialLink, _ERPPartSpecificPlantDataLink, 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, 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

Abstract class that represents an association between two Persistable objects. Each Persistable is referenced by an ObjectReference.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • getAllObjects

      public Object[] getAllObjects()
      Gets all the role objects of this link.

      Supported API: true
      Returns:
      Object[]
    • getRoleObject

      public Object getRoleObject(String rolename) throws WTException
      Gets the role object of this link for the given role name.

      Supported API: true
      Parameters:
      rolename -
      Returns:
      Object
      Throws:
      WTException
    • setRoleObject

      public void setRoleObject(Object roleObject, String rolename) throws WTException
      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

      public Object[] getJoinValues(Persistable obj, String otherSideRole) throws WTException
      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

      public WTObject duplicate() throws WTException
      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:
      duplicate in class WTObject
      Returns:
      WTObject
      Throws:
      WTException