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

  1. /******************************************************************************/
  2. /* File:   sdsstat.inl                                                        */
  3. /* Class:                                                                     */
  4. /*         IDSStatement                                                       */
  5. /*                                                                            */
  6. /******************************************************************************/
  7.  
  8. /***********************************************
  9.  
  10.     Licensed Materials - Property of IBM
  11.  
  12.     5622-880   5801-AAR
  13.  
  14.     (c) Copyright IBM Corp 1991, 1996.
  15.  
  16. ************************************************/
  17.  
  18. //#include "sdsstat.hpp"
  19.  
  20. /*-----------------------------------------------------------------+
  21. |  Constructor                                                     |
  22. +-----------------------------------------------------------------*/
  23. inline IDSStatement::IDSStatement(const char* aStatement,
  24.                            DatastoreDB2* aDatastore )
  25.           :iStatement(aStatement),
  26.            iSQLStatement( new ISQLStatement( aDatastore ) )
  27. {
  28.  
  29. }
  30.  
  31. inline IDSStatement::IDSStatement(const char* aStatement,
  32.                            DatastoreODBC* aDatastore )
  33.           :iStatement(aStatement),
  34.            iSQLStatement( new ISQLStatement( aDatastore ) )
  35. {
  36.  
  37. }
  38.  
  39. /*-----------------------------------------------------------------+
  40. |  Destructor                                                      |
  41. +-----------------------------------------------------------------*/
  42. inline IDSStatement::~IDSStatement()
  43. {
  44.   if (iSQLStatement != 0)
  45.   {
  46.    delete iSQLStatement;
  47.   }
  48. }
  49.