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

  1. /********************************************************************************/
  2. /* File:  sdsclbsq.inl                                                          */
  3. /* Class: IDSColumnBufferSequence                                               */
  4. /*                                                                              */
  5. /* IDSColumnBufferSequence                                                      */
  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 "sdsclbsq.hpp"
  19.  
  20. /*------------------------------------------------------------------------------
  21. |   bindToStatement - bind all columns in seq to statement                     |
  22. ------------------------------------------------------------------------------*/
  23. inline void IDSColumnBufferSequence::bindToStatement(
  24.                                   ISQLStatement* pSqlStatement)
  25. {
  26.   statementInfo info(pSqlStatement);
  27.   allElementsDo (bindColumn, &info);
  28. }
  29.  
  30. /*------------------------------------------------------------------------------
  31. |   bindColumn  - bind a column to a statement                                 |
  32. ------------------------------------------------------------------------------*/
  33. inline Boolean IDSColumnBufferSequence::bindColumn (
  34.                   IPOBufferBase*& pBuffer, void* someInfo)
  35. {
  36.   statementInfo* info = (statementInfo*)someInfo;
  37.   pBuffer->bindToColumn(info->number++, info->sqlStatement);
  38.   return true;
  39. }
  40.