home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sdsmcbs.idl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.7 KB  |  125 lines

  1. #ifndef DatastoreBase_idl
  2. #define DatastoreBase_idl
  3.  
  4. #include <somobj.idl>
  5. #include <sdsexc.idl>
  6.  
  7. /***********************************************
  8.  
  9.     Licensed Materials - Property of IBM
  10.  
  11.     5622-880   5801-AAR
  12.  
  13.     (c) Copyright IBM Corp 1991, 1996.
  14.  
  15. ************************************************/
  16.  
  17. interface DatastoreBase;
  18. #ifndef UserEnvironment_idl
  19.  interface UserEnvironment;
  20. #endif
  21. #ifndef DatastoreConnection_idl
  22.  interface DatastoreConnection;
  23. #endif
  24. #ifndef _SDSMPRCL_IDL_
  25.  interface DatastoreMgrPrivateClient;
  26. #endif
  27.  
  28.  
  29. interface DatastoreBase : SOMObject {
  30.  
  31.  
  32.   void
  33.       connect   ( in string datastore_name,
  34.                   in string user_name,
  35.                   in string authentication);
  36.  
  37.   void
  38.       connect_datastorename ( in string datastore_name);
  39.  
  40.   void
  41.       connect_user ( in string user_name,
  42.                      in string authentication);
  43.  
  44.   void
  45.       connect_defaults ();
  46.  
  47.   void
  48.       disconnect ();
  49.  
  50.   void
  51.       commit ();
  52.  
  53.   void
  54.       rollback ();
  55.  
  56.   boolean
  57.       is_connected ();
  58.  
  59.   void
  60.      executeSQL (in string command);
  61.  
  62.   attribute string datastore_name;
  63.   attribute string user_name;
  64.   attribute string authentication;
  65.  
  66.   #ifdef __PRIVATE__
  67.    attribute string datastore_type;
  68.    attribute UserEnvironment pUe;
  69.    attribute DatastoreConnection pDsc;
  70.    attribute DatastoreMgrPrivateClient pDsm;
  71.   #endif
  72.  
  73.    #ifdef __SOMIDL__
  74.    implementation
  75.    {
  76.       abstract;
  77.       releaseorder: connect,
  78.                     connect_user,
  79.                     connect_defaults,
  80.                     connect_datastorename,
  81.                     disconnect,
  82.                     commit,
  83.                     rollback,
  84.                     is_connected,
  85.                     executeSQL,
  86.                     set_connect_string,
  87.                     _get_datastore_name,
  88.                     _set_datastore_name,
  89.                     _get_user_name,
  90.                     _set_user_name,
  91.                     _get_datastore_type,
  92.                     _set_datastore_type,
  93.                     _get_pUe,
  94.                     _set_pUe,
  95.                     _get_pDsc,
  96.                     _set_pDsc,
  97.                     _get_pDsm,
  98.                     _set_pDsm,
  99.                     _get_authentication,
  100.                     _set_authentication;
  101.  
  102.       datastore_name: noset, noget;
  103.       user_name: noset, noget;
  104.       authentication: noset, noget;
  105.     #ifdef __PRIVATE__
  106.       datastore_type: noset, noget;
  107.     #endif
  108.  
  109.       passthru C_xih = "#include \"sdsmcbs.xh\"";
  110.    #ifndef WIN_NT_BUILD
  111.       dllname = "cppoai3i.dll";
  112.    #else
  113.       dllname = "cppwai3i.dll";
  114.     #endif
  115.  
  116.       somInit: override;
  117.       somUninit: override;
  118.    };
  119.    #endif
  120.  
  121.  
  122. };
  123. #endif
  124.  
  125.