Class DfId

java.lang.Object
com.documentum.fc.common.DfId
All Implemented Interfaces:
IDfId, com.documentum.fc.tracing.ITraceString, Serializable

public final class DfId extends Object implements IDfId, com.documentum.fc.tracing.ITraceString, Serializable
A Documentum object identifier.
See Also:
  • Field Details

    • DF_NULLID_STR

      public static final String DF_NULLID_STR
      The string representation of a null ID.
      See Also:
    • DF_NULLID

      public static final DfId DF_NULLID
      A null ID.
  • Constructor Details

    • DfId

      public DfId(String string)
      Constructs a new instance from a string repsentation of the object Id.
      Parameters:
      string - a string representation of the object identifier
    • DfId

      public DfId(int typePart, long docbasePart, long objectPart)
      Constructs a new instance from the individual pieces of the object Id.
  • Method Details

    • nextSequentialId

      public DfId nextSequentialId()
      Generates an object Id for the next sequential object Id.

      This method is intended for internal use only.

    • getId

      public String getId()
      Description copied from interface: IDfId
      Returns a string representation of the ID.
      Specified by:
      getId in interface IDfId
      Returns:
      the ID as a string.
    • getTypePart

      public int getTypePart()
      Description copied from interface: IDfId
      Returns the portion of the ID that represents the object type.

      The type part is converted to an integer. For example, if the underlying ID is "099af3ce800001ff", this method returns 9. If the ID is "469af3ce80000200", this method returns 70 decimal (46 hex).

      Specified by:
      getTypePart in interface IDfId
      Returns:
      an integer expressing the object type
    • getDocbaseId

      public String getDocbaseId()
      Description copied from interface: IDfId
      Returns the portion of the ID that identifies the repository.
      Specified by:
      getDocbaseId in interface IDfId
      Returns:
      the portion of the ID that identifies the repository. If this ID was created from a string that does not represent a repository object, the results are undefined.
    • getNumericDocbaseId

      public long getNumericDocbaseId()
      Description copied from interface: IDfId
      Returns the portion of the ID that represents the docbase ID in integer form.
      Specified by:
      getNumericDocbaseId in interface IDfId
      Returns:
      an integer expressing the docbase ID
    • isObjectId

      public boolean isObjectId()
      Description copied from interface: IDfId
      Indicates whether this ID is a valid object ID.
      Specified by:
      isObjectId in interface IDfId
    • isNull

      public boolean isNull()
      Description copied from interface: IDfId
      Indicates whether this IDfId object represents a null ID. ("0000000000000000").
      Specified by:
      isNull in interface IDfId
      Returns:
      true if this object represents the NULLID, or false if it is not.
    • compareTo

      public int compareTo(IDfId id)
      Description copied from interface: IDfId
      Returns -1, 0 or 1 if this IDfId is less than, equal to, or greater than the IDfId passed as an argument. If the ID argument does not represent a Documentum ID, the results of this method are undefined.
      Specified by:
      compareTo in interface IDfId
      Parameters:
      id - another IDfId instance.
      Returns:
      -1 if this ID is less than the argument, 0 if the two IDs are equal, or 1 if this ID is greater than the argument ID.
    • toString

      public final String toString()
      Description copied from interface: IDfId
      Returns a string representation of this ID.
      Specified by:
      toString in interface IDfId
      Overrides:
      toString in class Object
      Returns:
      a string representation of this ID.
    • toTraceString

      public String toTraceString(boolean verbose)
      Specified by:
      toTraceString in interface com.documentum.fc.tracing.ITraceString
    • equals

      public boolean equals(Object that)
      Description copied from interface: IDfId
      Indicates whether some other object is "equal to" this one.

      If the argument is not an instance of IDfId, this method returns false. If this object represents a NULLID ("0000000000000000") and the argument id equals null (or if it is a NULLID itself), this method will return true.

      Specified by:
      equals in interface IDfId
      Overrides:
      equals in class Object
      Parameters:
      that - another object
      Returns:
      true if the argument ID is equal to this one, or false if it is not equal.
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • valueOf

      public static DfId valueOf(String string)
      Returns an instance with a value represented by the specified String.
      Parameters:
      string - a string.
      Returns:
      an instance with a value represented by the specified String
    • isObjectId

      public static boolean isObjectId(String string)
      Indicates whether the given string is a properly formed object id.
      Parameters:
      string - a string