home *** CD-ROM | disk | FTP | other *** search
- #ifndef DatastoreBase_idl
- #define DatastoreBase_idl
-
- #include <somobj.idl>
- #include <sdsexc.idl>
-
- /***********************************************
-
- Licensed Materials - Property of IBM
-
- 5622-880 5801-AAR
-
- (c) Copyright IBM Corp 1991, 1996.
-
- ************************************************/
-
- interface DatastoreBase;
- #ifndef UserEnvironment_idl
- interface UserEnvironment;
- #endif
- #ifndef DatastoreConnection_idl
- interface DatastoreConnection;
- #endif
- #ifndef _SDSMPRCL_IDL_
- interface DatastoreMgrPrivateClient;
- #endif
-
-
- interface DatastoreBase : SOMObject {
-
-
- void
- connect ( in string datastore_name,
- in string user_name,
- in string authentication);
-
- void
- connect_datastorename ( in string datastore_name);
-
- void
- connect_user ( in string user_name,
- in string authentication);
-
- void
- connect_defaults ();
-
- void
- disconnect ();
-
- void
- commit ();
-
- void
- rollback ();
-
- boolean
- is_connected ();
-
- void
- executeSQL (in string command);
-
- attribute string datastore_name;
- attribute string user_name;
- attribute string authentication;
-
- #ifdef __PRIVATE__
- attribute string datastore_type;
- attribute UserEnvironment pUe;
- attribute DatastoreConnection pDsc;
- attribute DatastoreMgrPrivateClient pDsm;
- #endif
-
- #ifdef __SOMIDL__
- implementation
- {
- abstract;
- releaseorder: connect,
- connect_user,
- connect_defaults,
- connect_datastorename,
- disconnect,
- commit,
- rollback,
- is_connected,
- executeSQL,
- set_connect_string,
- _get_datastore_name,
- _set_datastore_name,
- _get_user_name,
- _set_user_name,
- _get_datastore_type,
- _set_datastore_type,
- _get_pUe,
- _set_pUe,
- _get_pDsc,
- _set_pDsc,
- _get_pDsm,
- _set_pDsm,
- _get_authentication,
- _set_authentication;
-
- datastore_name: noset, noget;
- user_name: noset, noget;
- authentication: noset, noget;
- #ifdef __PRIVATE__
- datastore_type: noset, noget;
- #endif
-
- passthru C_xih = "#include \"sdsmcbs.xh\"";
- #ifndef WIN_NT_BUILD
- dllname = "cppoai3i.dll";
- #else
- dllname = "cppwai3i.dll";
- #endif
-
- somInit: override;
- somUninit: override;
- };
- #endif
-
-
- };
- #endif
-