com.ibm.mm.sdk.common
Class DKPid
- java.lang.Object
com.ibm.mm.sdk.common.DKPid
All implemented interfaces:
java.io.Serializable
Direct known subclasses:
- public class DKPid
- extends java.lang.Object
- implements java.io.Serializable
See Also:
Constructor Summary
Constructor and Description |
---|
DKPid()
Constructs a PID object
|
DKPid(DKPid pid)
Constructs a PID from another PID
|
DKPid(int idStringCount)
Constructs a PID object
|
DKPid(java.lang.String sourcePidString)
Constructs a PID object from a PID string representation.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
clone()
Clone
|
|
equals(java.lang.Object otherObject)
Compares this PID if it is equal to another PID.
|
|
getDatastoreName()
Gets the datastore name from this PID
|
|
getDatastoreType()
Gets the datastore type from this PID
|
|
getId()
Deprecated. Replace by getPrimaryId
|
|
getIdString()
Gets the datastore specific persistent-id of the owner data-object.
|
|
getIdString(int index)
Gets id string by index (0 to n-1)
|
|
getIdStringCount()
Gets id string count
|
|
getObjectType()
Gets the type of the data-object owning this PID
|
|
getPrimaryId()
Gets the datastore specific primary persistent-id
|
|
isSet()
Returns true if all components of this Pid are set to their intended values.
|
|
pidString()
Gets the string representation of the PID.
|
|
pidType()
Gets the PID type
|
|
setDatastoreName(java.lang.String sourceDatastoreName)
Sets the datastore name of this PID
|
|
setDatastoreType(java.lang.String sourceDatastoreType)
Sets the datastore type of this PID
|
|
setId(java.lang.String sourceId)
Deprecated. Replace by setPrimaryId
|
|
setIdString(int index,java.lang.String idStringItem)
Sets id string by index (0 to n-1)
|
|
setIdString(java.lang.String sourceId)
Sets the datastore specific persistent-id for the owner data-object.
|
|
setIdStringCount(int idStringCount)
Sets id string count
|
|
setObjectType(java.lang.String sourceObjectType)
Sets the type of the data-object owning this Pid.
|
|
setPrimaryId(java.lang.String primaryId)
Sets the datastore specific primary persistent-id
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
DKPid
- public DKPid()
Constructs a PID object
DKPid
- public DKPid(int idStringCount)
Constructs a PID object
Parameters:
idStringCount
- string id count DKPid
- public DKPid(java.lang.String sourcePidString)
- throws DKException
Constructs a PID object from a PID string representation.
Parameters:
sourcePidString
- the PID string, a string obtained by calling the
pidString()
method in the PID Throws:
DKPid
- public DKPid(DKPid pid)
Constructs a PID from another PID
Parameters:
pid
- the other PID Method Detail
getDatastoreType
- public java.lang.String getDatastoreType( )
Gets the datastore type from this PID
Returns:
the datastore type
setDatastoreType
- public void setDatastoreType(java.lang.String sourceDatastoreType)
Sets the datastore type of this PID
Parameters:
sourceDatastoreType
- datastore type. getDatastoreName
- public java.lang.String getDatastoreName( )
Gets the datastore name from this PID
Returns:
the datastore name
setDatastoreName
- public void setDatastoreName(java.lang.String sourceDatastoreName)
Sets the datastore name of this PID
Parameters:
sourceDatastoreName
- datastore name getId
- public java.lang.String getId()
Deprecated. Replace by getPrimaryId
Gets the datastore specific persistent-id of the owner data-object.
This id contains information to locate the persistent data, of the
owner data-object, in the datastore.
setId
- public void setId(java.lang.String sourceId)
Deprecated. Replace by setPrimaryId
Sets the datastore specific persistent-id for the owner data-object.
getIdString
- public java.lang.String getIdString( )
Gets the datastore specific persistent-id of the owner data-object.
This id contains information to locate the persistent data, of the
owner data-object, in the datastore.
Returns:
the datastore persistent-id .
setIdString
- public void setIdString(java.lang.String sourceId)
Sets the datastore specific persistent-id for the owner data-object.
The user should also set the item id whenever the id string is set.
Parameters:
sourceId
- datastore persistent-id getPrimaryId
- public java.lang.String getPrimaryId( )
Gets the datastore specific primary persistent-id
Returns:
the datastore primary persistent-id
setPrimaryId
- public void setPrimaryId(java.lang.String primaryId)
Sets the datastore specific primary persistent-id
Parameters:
primaryId
- datastore primary persistent-id pidString
- public java.lang.String pidString( )
Gets the string representation of the PID. This string
is of internal format and not to be parsed by users.
This string can be used as an input parameter to re-construct
the PID using the proper constructor.
getObjectType
- public java.lang.String getObjectType( )
Gets the type of the data-object owning this PID
Returns:
the object type
setObjectType
- public void setObjectType(java.lang.String sourceObjectType)
Sets the type of the data-object owning this Pid.
isSet
- public boolean isSet()
Returns true if all components of this Pid are set to their intended values.
Returns:
true or false.
getIdStringCount
- public int getIdStringCount()
Gets id string count
Returns:
the id string count
setIdStringCount
- public void setIdStringCount(int idStringCount)
Sets id string count
Parameters:
idStringCount
- the id string count getIdString
- public java.lang.String getIdString( int index)
- throws DKException
Gets id string by index (0 to n-1)
Parameters:
index
- the index of a part of the id string Returns:
a part of the id string by index
Throws:
setIdString
- public void setIdString(int index,
- java.lang.String idStringItem)
- throws DKException
Sets id string by index (0 to n-1)
Parameters:
index
- the index of a part of the id string idStringItem
- a part of the id string Throws:
equals
- public boolean equals(java.lang.Object otherObject)
Compares this PID if it is equal to another PID.
All data-members are compared for equality.
Overrides:
equals
in class java.lang.Object
Parameters:
otherObject
- the other PID clone
- public java.lang.Object clone()
Clone
Overrides:
clone
in class java.lang.Object
Returns:
the a copy of PID
pidType
- public java.lang.String pidType( )
Gets the PID type
Returns:
the PID type