Interface IDfRelation

All Superinterfaces:
IDfPersistentObject, IDfTypedObject
All Known Subinterfaces:
IDfStateExtension

public interface IDfRelation extends IDfPersistentObject
Interface definition for the type dm_relation Description:
  • Method Details

    • getRelationName

      String getRelationName() throws DfException
      Returns the attribute value of relation_name. The relation name identifies a valid relation type object, which defines the type of relationship existing between the two objects.
      Returns:
      the name of the relation.
      Throws:
      DfException - if a server error occurs.
    • getParentId

      IDfId getParentId() throws DfException
      Returns the object ID of the parent object. in the relationship.
      Returns:
      the object ID of the parent object.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getChildId

      IDfId getChildId() throws DfException
      Returns the object ID of the child object in the relationship.
      Returns:
      the ID of the child object.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getChildLabel

      String getChildLabel() throws DfException
      Returns the version label of the child object in the relationship.

      The version is not required to be the same version as that specified in child_id. If the object specified in child_id does not carry the correct version label, the server searches the version tree containing the child_id for the version specified in child_label and uses that version in the relationship.

      Returns:
      the version label for the specified child ID.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • getPermanentLink

      boolean getPermanentLink() throws DfException
      Deprecated.
      As of DFC 5.3, replaced by IDfRelationType.getPermanentLink()
      Indicates whether you want to maintain the relationship across versions of the parent object.

      By default, relationships are not maintained across versions. However, if you want the relationship to be maintained across versions when the parent object is versioned, set permanent_link via setPermanentLink to true.

      Returns:
      true if a relationship across versions exists, or false if a relationship does not exist.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • getOrderNumber

      int getOrderNumber() throws DfException
      Not system defined. This is provided for user convenience. This could be used to order a set of relationships. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Returns:
      the value of the order_no attribute.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • getEffectiveDate

      IDfTime getEffectiveDate() throws DfException
      Not system defined. Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Returns:
      the value of the effective_date attribute.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • getExpirationDate

      IDfTime getExpirationDate() throws DfException
      Not system defined. Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Returns:
      the value of the expiration_date attribute.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • getDescription

      String getDescription() throws DfException
      Not system defined.Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Returns:
      the value of the description attribute.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setRelationName

      void setRelationName(String rName) throws DfException
      Sets the relation_name attribute. The relation name identifies a valid relation type object that defines the type of relationship that exists between the two objects.
      Parameters:
      rName - name of the relation.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setParentId

      void setParentId(IDfId parent) throws DfException
      Sets the ID of the object that is the "parent" in the relationship.
      Parameters:
      parent - ID of the parent.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setChildId

      void setChildId(IDfId child) throws DfException
      Sets the ID of the object that is the "child" in the relationship.
      Parameters:
      child - ID of the child.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setChildLabel

      void setChildLabel(String label) throws DfException
      Sets the version label of the child in the relationship.

      The version is not required to be the same version as that specified in child_id. If the object specified in child_id does not carry the correct version label, the server searches the version tree containing the child_id for the version specified in child_label and uses that version in the relationship.

      Parameters:
      label - label of the child.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setPermanentLink

      void setPermanentLink(boolean val) throws DfException
      Deprecated.
      As of DFC 5.3, replaced by IDfRelationType.setPermanentLink()
      Indicate whether you want to maintain the relationship across versions of the parent object. By default, relationships are not maintained across versions. However, if you want the relationship to be maintained across versions when the parent object is versioned, set permanent_link via setPermanentLink to true.
      Parameters:
      val - value of the permanent_link flag.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setOrderNumber

      void setOrderNumber(int no) throws DfException
      Not system defined. This is provided for user convenience. This could be used to order a set of relationship. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Parameters:
      no - order number.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setEffectiveDate

      void setEffectiveDate(IDfTime date) throws DfException
      Not system defined. Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Parameters:
      date - effective date.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setExpirationDate

      void setExpirationDate(IDfTime date) throws DfException
      Not system defined. Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Parameters:
      date - expiration date.
      Throws:
      DfException - if a server error occurs.
      See Also:
    • setDescription

      void setDescription(String desc) throws DfException
      Not system defined. Provided for user convenience. Note: Documentum implements and manages system-defined relationships. For user-defined relationships, you must provide the procedures that manage and manipulate the objects in the relationship. Please refer to Server Fundamentals.
      Parameters:
      desc - description.
      Throws:
      DfException - if a server error occurs.
      See Also: