Package com.documentum.fc.common
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DfId
A null ID.static final String
The string representation of a null ID.Fields inherited from interface com.documentum.fc.common.IDfId
DM_ACL, DM_ACTIVITY, DM_AGGR_DOMAIN, DM_ALIAS_SET, DM_API, DM_ASSEMBLY, DM_AUDIT_TRAIL, DM_BLOB_TICKET, DM_BLOBSTORE, DM_BUILTIN_EXPR, DM_CA_STORE_TAG, DM_CABINET, DM_CHANGE_RECORD, DM_CLIENTRIGHTSDOMAIN_TAG, DM_COLLECTION, DM_COND_EXPR, DM_COND_ID_EXPR, DM_CONTAINMENT, DM_CONTENT, DM_DD_ATTR_INFO, DM_DD_COMMON_INFO, DM_DD_INFO, DM_DD_TYPE_INFO, DM_DISPLAY_CONFIG, DM_DIST_COMP_RECORD, DM_DISTRIBUTEDSTORE, DM_DOCBASE_CONFIG, DM_DOCBASEID_MAP, DM_DOCBROKER, DM_DOCUMENT, DM_DOMAIN, DM_DUMP_OBJECT_RECORD, DM_DUMP_RECORD, DM_EVENT, DM_EXPR_CODE, DM_EXPRESSION, DM_EXTERNALSTORE_FILE_TAG, DM_EXTERNALSTORE_FREE_TAG, DM_EXTERNALSTORE_TAG, DM_EXTERNALSTORE_URL_TAG, DM_FEDERATION, DM_FILE, DM_FILESTORE, DM_FOLDER, DM_FOREIGN_KEY, DM_FORMAT, DM_FULLTEXT, DM_FULLTEXT_INDEX, DM_FUNC_EXPR, DM_GROUP, DM_INBOX, DM_INDEX, DM_KEY, DM_LIGHTWEIGHT_TAG, DM_LINKEDSTORE, DM_LINKRECORD, DM_LITERAL_EXPR, DM_LOAD_OBJECT_RECORD, DM_LOAD_RECORD, DM_LOCATION, DM_METHOD, DM_MOUNT_POINT, DM_NETSTORE, DM_NLS_DD_INFO, DM_NOTE, DM_OBJECT, DM_OTHERFILE, DM_OUTPUTDEVICE, DM_PACKAGE, DM_PARTITION_SCHEME, DM_PLUGIN, DM_POLICY, DM_PROCESS, DM_QUERY, DM_QUEUE_ITEM, DM_RECOVERY, DM_REFERENCE, DM_REGISTERED, DM_REGISTRY, DM_RELATION, DM_RELATIONTYPE, DM_REMOTESTORE, DM_REMOTETICKET, DM_REPLICA_RECORD, DM_ROUTER, DM_SCOPE_CONFIG, DM_SEQUENCE, DM_SERVER_CONFIG, DM_SESSION, DM_STAGED_DOCUMENT, DM_STORE, DM_SUBCONTENT, DM_SYSOBJECT, DM_TRANSACTION_LOG, DM_TYPE, DM_TYPE_INFO, DM_TYPE_MANAGER, DM_UNUSED1, DM_UNUSED2, DM_UNUSED3, DM_UNUSED4, DM_UNUSED5, DM_USER, DM_VALUE_ASSIST, DM_VALUE_FUNC, DM_VALUE_LIST, DM_VALUE_QUERY, DM_VERITY_COLL, DM_VERITY_INDEX, DM_VSTAMP, DM_WORKFLOW, DM_WORKITEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns -1, 0 or 1 if this IDfId is less than, equal to, or greater than the IDfId passed as an argument.boolean
Indicates whether some other object is "equal to" this one.Returns the portion of the ID that identifies the repository.getId()
Returns a string representation of the ID.long
Returns the portion of the ID that represents the docbase ID in integer form.int
Returns the portion of the ID that represents the object type.final int
hashCode()
boolean
isNull()
Indicates whether this IDfId object represents a null ID.boolean
Indicates whether this ID is a valid object ID.static boolean
isObjectId
(String string) Indicates whether the given string is a properly formed object id.Generates an object Id for the next sequential object Id.final String
toString()
Returns a string representation of this ID.toTraceString
(boolean verbose) static DfId
Returns an instance with a value represented by the specified String.
-
Field Details
-
DF_NULLID_STR
The string representation of a null ID.- See Also:
-
DF_NULLID
A null ID.
-
-
Constructor Details
-
DfId
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
Generates an object Id for the next sequential object Id. This method is intended for internal use only. -
getId
Description copied from interface:IDfId
Returns a string representation of the ID. -
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 interfaceIDfId
- Returns:
- an integer expressing the object type
-
getDocbaseId
Description copied from interface:IDfId
Returns the portion of the ID that identifies the repository.- Specified by:
getDocbaseId
in interfaceIDfId
- 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 interfaceIDfId
- 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 interfaceIDfId
-
isNull
public boolean isNull()Description copied from interface:IDfId
Indicates whether this IDfId object represents a null ID. ("0000000000000000"). -
compareTo
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. -
toString
Description copied from interface:IDfId
Returns a string representation of this ID. -
toTraceString
- Specified by:
toTraceString
in interfacecom.documentum.fc.tracing.ITraceString
-
equals
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 argumentid
equalsnull
(or if it is a NULLID itself), this method will returntrue
. -
hashCode
public final int hashCode() -
valueOf
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
Indicates whether the given string is a properly formed object id.- Parameters:
string
- a string
-