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

  1. /******************************************************************************/
  2. /* File:   idsstse.inl                                                        */
  3. /* Class:                                                                     */
  4. /*         IDSStatementSelect                                                 */
  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 "idsstse.hpp"
  19.  
  20. /*-----------------------------------------------------------------+
  21. |  Constructor                                                     |
  22. +-----------------------------------------------------------------*/
  23. inline IDSStatementSelect::IDSStatementSelect(const char* aStatement,
  24.                            IDatastoreDB2* aDatastore )
  25.           :IDSStatement(aStatement,aDatastore)
  26. {
  27.  
  28. }
  29.  
  30. inline IDSStatementSelect::IDSStatementSelect(const char* aStatement,
  31.                            IDatastoreODBC* aDatastore )
  32.           :IDSStatement(aStatement,aDatastore)
  33. {
  34.  
  35. }
  36.  
  37. /*-----------------------------------------------------------------+
  38. |  Destructor                                                      |
  39. +-----------------------------------------------------------------*/
  40. inline IDSStatementSelect::~IDSStatementSelect()
  41. {
  42.  
  43. }
  44.  
  45. inline IDSStatementSelect&
  46. IDSStatementSelect::execute()
  47. {
  48.     parameterBuffers.bindToStatement( iSQLStatement );
  49.     iSQLStatement->executeDirect(iStatement);
  50.     columnBuffers.bindToStatement( iSQLStatement );
  51.     return *this;
  52. }
  53.  
  54. inline Boolean
  55. IDSStatementSelect::executeFetch()
  56. {
  57.     return iSQLStatement->fetch();
  58. }
  59.