Purpose:
This class represents a datastore for DES.
Methods:
void initConfiguration(LPCTSTR configuration);
public void connect(String datastore_name, String userName, String authentication, String connect_string) throws DKException, Exception connect(LPCTSTR datastoreName, LPCTSTR userName, LPCTSTR authentication [, VARIANT connectString]);
disconnect()
BSTR datastoreName();
BSTR datastoreType();
BSTR userName();
LPDISPATCH execute(LPCTSTR command, short commandLangType [,VARIANT paramList]);
Execute a query using a command. The parameter list is in the form of an array of DXNVPairDES objects. The returned LPDISPATCH pointer contains a DXResultSetCursorDES object.
LPDISPATCH executeQuery(LPDISPATCH query);
Execute a query using a query object. The input parameter LPDISPATCH pointer contains a DXDESQueryDES object. The returned LPDISPATCH pointer contains a DXResultSetCursorDES object.
VARIANT evaluate(LPCTSTR command, short commandLangType [,VARIANT paramList]);
Evaluate a query using a command. The parameter list is in the form of an array of DXNVPairDES objects. The value of the returned VARIANT is a DXResultsDES object.
VARIANT evaluateQuery(LPDISPATCH query);
Evaluate a query using a query object. The value of the returned VARIANT is a DXResultsDES object. The input parameter LPDISPATCH pointer contains a DXDESQueryDES object.
LPDISPATCH createQuery(LPCTSTR command, short commandLangType [,VARIANT paramList]);
Creates a query object using a command. The parameter list is in the form of an array of DXNVPairDES objects. The returned LPDISPATCH pointer contains a DXDESQueryDES object.
addObject(LPDISPATCH ddobase);
Add the data object to the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.
deleteObject(LPDISPATCH ddobase);
Delete the data object from the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.
retrieveObject(LPDISPATCH ddobase);
Creates a query object.Retrieve the data object from the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.
updateObject(LPDISPATCH ddobase);
Update the datastore with this data object. The input parameter LPDISPATCH pointer contains a DXDDODES object.
commit();
rollback();
BOOL isConnected();
LPDISPATCH listDataSources();
Gets the name of this datastore object. It usually represents the server name of a datastore source. Gets a list of servers. The returned LPDISPATCH pointer contains a DXSequentialCollectionDES object.
VARIANT listDataSourceNames(long* arraySize);
Gets a list of server names. The output parameter arraySize is the size of the array.
LPDISPATCH listEntities();
Gets a list of entities. The returned LPDISPATCH pointer contains a DXSequentialCollectionDES object.
VARIANT listEntityNames(long* arraySize);
Gets a list of entity names. The output parameter arraySize is the size of the array.
LPDISPATCH listEntityAttrs(LPCTSTR entityName);
Gets a list of entity attributes. The returned LPDISPATCH pointer contains a DXSequentialCollectionDES object.
VARIANT listEntityAttrNames(LPCTSTR entityName, long* arraySize);
Gets a list of entity attribute names. The output parameter arraySize is the size of the array.
LPDISPATCH datastoreDef();
Gets the datastore definition. The returned LPDISPATCH pointer contains a DXDatastoreDefDES object.
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.