Purpose:
This is the class that is used to represent a ddo base object.
Methods:
setDatastore(LPDISPATCH ds);
The method initializes the DDO object with the datastore. The input parameter LPDISPATCH pointer contains a DXDatastoreDD object.
add();
short addData(LPCTSTR dataName);
Adds a new data-item to a DDO and returns the new data-item number (data-id).
short addDataProperty(short dataId, LPCTSTR propertyName);
Adds a new data-item property to a DDO and returns the new property-item number (property-id).
short addDataPropertyAndValue(short dataId, LPCTSTR propertyName, VARIANT propertyValue);
Adds a new data-item property to a DDO and returns the new property-item number (property-id).
short addProperty(LPCTSTR propertyName);
Adds a new property to this DDO and returns the property-id.
short addPropertyAndValue(LPCTSTR propertyName, VARIANT propertyValue);
Adds a new property and its value to this DDO and returns the property-id.
short dataCount();
short dataId(LPCTSTR dataName);
short dataPropertyCount(short dataId);
short dataPropertyId(short dataId, LPCTSTR propertyName);
del();
VARIANT getData(short dataId);
VARIANT getDataByName(LPCTSTR dataName);
BSTR getDataName(short dataId);
VARIANT getDataProperty(short dataId, short propertyId);
VARIANT getDataPropertyById(short dataId, LPCTSTR propertyName);
VARIANT getDataPropertyByName(LPCTSTR dataName, LPCTSTR propertyName);
BSTR getObjectType();
LPDISPATCH getPidObject();
Returns the PID of this DDO. The returned LPDISPATCH pointer contains a DXPidDD object.
BSTR getDataPropertyName(short dataId, short propertyId);
LPDISPATCH getDatastore();
Gets the datastore. The returned LPDISPATCH pointer contains either a DXDatastoreDD object.
VARIANT getProperty(short propertyId);
VARIANT getPropertyByName(LPCTSTR propertyName);
BSTR getPropertyName(short propertyId);
BOOL isDataPropertySet(short dataId, short propertyId);
Returns true if this data-item property value is set already.
BOOL isDataSet(short dataId);
BOOL isNull(short dataId);
BOOL isPropertySet(short propertyId);
short propertyCount();
short propertyId(LPCTSTR propertyName);
retrieve();
Retrieve this object from the persistent datastore. The setDatastoremethod must be called prior to this call in order to associate the object to a datastore, unless this DXDDODD was returned from a method.
setData(short dataId, VARIANT propertyValue);
setDataName(short dataId, LPCTSTR dataName);
setDataProperty(short dataId, short propertyId, VARIANT propertyValue);
setDataPropertyName(short dataId, short propertyId, LPCTSTR propertyName);
setNull(short dataId);
setObjectType(LPCTSTR objectType);
setPidObject(LPDISPATCH pid);
Sets the PID of this DDO. The input parameter LPDISPATCH pointer contains a DXPidDD object.
setProperty(short propertyId, VARIANT propertyValue);
setPropertyName(short propertyId, LPCTSTR propertyName);
BOOL updatable();
update();
Not supported in this release.
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.