home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sdssqlst.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  1.7 KB  |  55 lines

  1. /****************************************************************************/
  2. /* File:   sdssqlst.hpp                                                     */
  3. /* Class:  ISQLStatement                                                    */
  4. /*                                                                          */
  5. /****************************************************************************/
  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. #ifndef _SDSSQLST_HPP_
  18. #define _SDSSQLST_HPP_
  19.  
  20. #include <istring.hpp>
  21.  
  22. class DatastoreDB2;
  23. class DatastoreODBC;
  24. class ISQLStatementProxy;
  25.  
  26. class _Export ISQLStatement
  27. {
  28.   public:
  29.     ISQLStatement(DatastoreDB2* pIDatastore);
  30.     ISQLStatement(DatastoreODBC* pIDatastore);
  31.     ~ISQLStatement();
  32.  
  33.     ISQLStatement& executeDirect(const IString& statement);
  34.     ISQLStatement& prepare(const IString& statement);
  35.     ISQLStatement& execute();
  36.     Boolean fetch();
  37.     long rowCount();
  38.     short numResultCols();
  39.     short numParams();
  40.     Boolean moreResults();
  41.     Boolean bindColumn(short colPos, short fCType, void *pBuf,
  42.                               long cbBufMax, void *pcbBuf);
  43.     ISQLStatement& bindParameter(short parPos, short fParamType,
  44.                                  short fCType, short fSqlType, long cbParDef,
  45.                                  short ibScale, void *pBuf, long cbBufMax,
  46.                                  void *pcbBuf
  47.                                  );
  48.     ISQLStatement& rollback();
  49.  
  50.   private:
  51.     ISQLStatementProxy *pSqlPrx;
  52. };
  53.  
  54. #endif
  55.