Index

DXDatastoreDES

Purpose:

This class represents a datastore for DES.

Methods:

Initialization
void initConfiguration(LPCTSTR configuration);

Initializes configuration.

connect
 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]);

Connects to a datastore.

disconnect
disconnect()

Disconnects from a datastore.

datastoreName
BSTR datastoreName();

Gets the datastore name.

datastoreType
BSTR datastoreType();

Gets the datastore type.

userName
BSTR userName();

Gets the user name.

execute
   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.

executeQuery
   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.

evaluate
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.

evaluateQuery
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.

createQuery
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
addObject(LPDISPATCH ddobase);

Add the data object to the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.

deleteObject
deleteObject(LPDISPATCH ddobase);

Delete the data object from the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.

retrieveObject
retrieveObject(LPDISPATCH ddobase);

Creates a query object.Retrieve the data object from the datastore. The input parameter LPDISPATCH pointer contains a DXDDODES object.

updateObject
updateObject(LPDISPATCH ddobase);

Update the datastore with this data object. The input parameter LPDISPATCH pointer contains a DXDDODES object.

commit
commit();

Commits the current transaction.

rollback
rollback();

Rollback the current transaction.

isConnected
BOOL isConnected();

Returns TRUE if datastore is connected.

listDataSources
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.

listDataSourceNames
VARIANT listDataSourceNames(long* arraySize);

Gets a list of server names. The output parameter arraySize is the size of the array.

listEntities
LPDISPATCH listEntities();

Gets a list of entities. The returned LPDISPATCH pointer contains a DXSequentialCollectionDES object.

listEntityNames
VARIANT listEntityNames(long* arraySize);

Gets a list of entity names. The output parameter arraySize is the size of the array.

listEntityAttrs
LPDISPATCH listEntityAttrs(LPCTSTR entityName);

Gets a list of entity attributes. The returned LPDISPATCH pointer contains a DXSequentialCollectionDES object.

listEntityAttrNames
VARIANT listEntityAttrNames(LPCTSTR entityName, long* arraySize);

Gets a list of entity attribute names. The output parameter arraySize is the size of the array.

datastoreDef
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.