Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class dkDataObject

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.dkAbstractDataObjectBase
        |
        +--com.ibm.mm.sdk.common.dkDataObject
All Implemented Interfaces:
DKConstant, dkDataObjectBase, DKMessageId, java.io.Serializable
Direct Known Subclasses:
DKDDOBase, dkPersistentObject

public abstract class dkDataObject
extends dkAbstractDataObjectBase
implements DKMessageId, java.io.Serializable

dkDataObject is an interface, which extends dkDataObjectBase, to represents objects that can have persistent data. It needs a concrete implementation to support a real object. An example of real implementation of data-object is DDO -- Dynamic Data Object.

dkDataObject has a Pid -- persistent object identifier, which identifies the location of the persistent data of this data-object in the datastore. If the Pid is not set, it will be created automatically after the first data manipulation operation. dkDataObject inherits protocol method from its parent dkDataObjectBase; it supports the following protocols:

See Also:
Serialized Form

Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant
    For details, see the class or interface
 
Constructor Summary
dkDataObject()
          Constructs a data object.
dkDataObject(DKPid fromPid)
          Constructs a data object with given Pid.
 
Method Summary
 DKPid getPid()
          Deprecated. Replace by getPidObject
 DKPid getPidObject()
          Gets the pid of this data object.
 void setPid(DKPid fromPid)
          Deprecated. Replace by setPidObject
 void setPidObject(DKPid fromPid)
          Sets the pid of this data object
 
Methods inherited from class com.ibm.mm.sdk.common.dkAbstractDataObjectBase
getObjectType, getParent, getRootObject, protocol, setParent, setRootObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

dkDataObject

public dkDataObject()
Constructs a data object.

dkDataObject

public dkDataObject(DKPid fromPid)
Constructs a data object with given Pid.
Parameters:
fromPid - pid.
Method Detail

getPid

public DKPid getPid()
Deprecated. Replace by getPidObject

Gets the pid of this data object.
Returns:
the pid.
See Also:
getPidObject()

setPid

public void setPid(DKPid fromPid)
Deprecated. Replace by setPidObject

Sets the pid of this data object
Parameters:
fromPid - pid
See Also:
setPidObject(com.ibm.mm.sdk.common.DKPid)

getPidObject

public DKPid getPidObject()
Gets the pid of this data object.
Returns:
the pid.

setPidObject

public void setPidObject(DKPid fromPid)
                  throws DKException
Sets the pid of this data object
Parameters:
fromPid - pid
Throws:
DKException - If provided pid is null

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.