home *** CD-ROM | disk | FTP | other *** search
- #ifndef DatastoreODBC_idl
- #define DatastoreODBC_idl
-
- #include <somcls.idl>
- #include <sdsmcbs.idl>
- #include <sdsexc.idl>
-
- /***********************************************
-
- Licensed Materials - Property of IBM
-
- 5622-880 5801-AAR
-
- (c) Copyright IBM Corp 1991, 1996.
-
- ************************************************/
-
- interface DatastoreODBC;
-
- interface DatastoreODBCFactory : SOMClass {
-
- DatastoreODBC create_object();
- DatastoreODBC create_object_defaults(in string datastore_name,
- in string connect_string);
-
- #ifdef __SOMIDL__
- implementation {
-
- releaseorder : create_object,
- create_object_defaults;
- passthru C_xh = "#ifndef __TOS_WIN__ "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPOAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPOAI3.LIB\") "
- " #endif "
- " #endif "
- "#else "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPWAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPWAI3.LIB\") "
- " #endif "
- " #endif "
- "#endif "
- "#include <idaxbs.h> ";
- passthru C_h = "#ifndef __TOS_WIN__ "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPOAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPOAI3.LIB\") "
- " #endif "
- " #endif "
- "#else "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPWAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPWAI3.LIB\") "
- " #endif "
- " #endif "
- "#endif "
- "#include <idaxbs.h> ";
-
- #ifndef WIN_NT_BUILD
- dllname = "cppoai3i.dll";
- #else
- dllname = "cppwai3i.dll";
- #endif
-
- };
- #endif
-
- };
-
- interface DatastoreODBC : DatastoreBase {
-
- attribute long access_mode;
- attribute long auto_commit;
- attribute long isolation_level;
-
- long get_driver_prompt();
- void set_driver_prompt(in long option, in void* hwnd);
- string get_connect_string();
- void set_connect_string(in string connect_string);
-
- void
- connect_string ( in string datastore_name,
- in string connect_stringi,
- in string user_name,
- in string authentication);
-
- #ifdef __PRIVATE__
- void* get_environment_handle();
- void* get_connection_handle();
- #endif
-
- #ifdef __SOMIDL__
- implementation
- {
-
- #ifdef __PRIVATE__
- void* environment_handle;
- void* connection_handle;
- #endif
-
- releaseorder:
- get_connect_string,
- set_connect_string,
- connect_string,
- _get_access_mode,
- _set_access_mode,
- _get_auto_commit,
- _set_auto_commit,
- get_driver_prompt,
- set_driver_prompt,
- get_environment_handle,
- get_connection_handle,
- _get_isolation_level,
- _set_isolation_level;
-
- access_mode: noset, noget, nodata;
- auto_commit: noset, noget, nodata;
- isolation_level: noset, noget, nodata;
-
- metaclass = DatastoreODBCFactory;
-
- passthru C_xih = "#include \"sdsmcod.xh\"";
- #ifndef WIN_NT_BUILD
- dllname = "cppoai3i.dll";
- #else
- dllname = "cppwai3i.dll";
- #endif
-
- somInit: override;
- somUninit: override;
- };
- #endif
-
-
- };
- #endif
-