home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vgserv45.zip / BASE / HPTWGS2 / include / fcwmsqi.h < prev    next >
Text File  |  2001-03-21  |  5KB  |  198 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*                           OCO SOURCE MATERIALS                            */
  4. /*                             IBM CONFIDENTIAL                              */
  5. /*                                    OR                                     */
  6. /*                        IBM CONFIDENTIAL RESTRICTED                        */
  7. /*            WHEN COMBINED WITH THE AGGREGATED OCO SOURCE MODULES           */
  8. /*                           FOR THIS PROGRAM PRODUCT                        */
  9. /*                                                                           */
  10. /*      VisualAge Generator Server for OS/2, AIX, HP-UX, and Windows NT      */
  11. /*                          Version 3.0  5697-C28                            */
  12. /*                    (C) COPYRIGHT IBM CORP. 1994,1997                      */
  13. /*                                                                           */
  14. /*****************************************************************************/
  15. #ifndef  FCWMSQI_H
  16. #define  FCWMSQI_H
  17.  
  18. // --------------------------------------------------------------------
  19. //  Declare forword reference
  20. // --------------------------------------------------------------------
  21.  
  22. class MAPDBCS;
  23. class TBLDBCS;
  24.  
  25. // ---------------------------------------------------------------------
  26. // SQLBIN2
  27. // ---------------------------------------------------------------------
  28.  
  29. class SQLBIN2 : public BIN2
  30. {
  31.     enum { SQL_NULL_DATA = -1 };
  32.  
  33.   public:
  34.  
  35.     SQLBIN2 (Parent&, Level, int, int, int, int, int=0);
  36.  
  37.     void SetNull( short ) const;
  38.     void SetNull() const;
  39.     short GetNull() const;
  40.     Bool IsNull() const;
  41.     Bool IsTrunc() const;
  42.     void SetEmpty() const;
  43.  
  44.     void operator = (const SQLBIN2&);
  45.     void operator = (const quadnum& v);
  46.  
  47. };
  48.  
  49. // --------------------------------------------------------------------
  50. // SQLBIN4
  51. // --------------------------------------------------------------------
  52.  
  53. class SQLBIN4 : public BIN4
  54. {
  55.     enum { SQL_NULL_DATA = -1 };
  56.  
  57.   public:
  58.  
  59.     SQLBIN4 (Parent&, Level, int, int, int, int, int=0);
  60.  
  61.     void SetNull( short ) const;
  62.     void SetNull() const;
  63.     short GetNull() const;
  64.     Bool IsNull() const;
  65.     Bool IsTrunc() const;
  66.     void SetEmpty () const;
  67.  
  68.     void operator = (const SQLBIN4&);
  69.     void operator = (const quadnum& v);
  70.  
  71. };
  72.  
  73. // --------------------------------------------------------------------
  74. // SQLPACK
  75. // --------------------------------------------------------------------
  76.  
  77. class SQLPACK : public PACK
  78. {
  79.     enum { SQL_NULL_DATA = -1 };
  80.  
  81.   public:
  82.  
  83.     SQLPACK (Parent&, Level, int, int, int, int, int=0);
  84.  
  85.     void SetNull( short ) const;
  86.     void SetNull() const;
  87.     short GetNull() const;
  88.     Bool IsNull() const;
  89.     Bool IsTrunc() const;
  90.     void SetEmpty () const;
  91.  
  92.     void operator = (const SQLPACK&);
  93.     void operator = (const quadnum& v);
  94.  
  95. };
  96.  
  97.  
  98. // --------------------------------------------------------------------
  99. // SQLCHA
  100. // --------------------------------------------------------------------
  101.  
  102. class SQLCHA : public CHA
  103. {
  104.     enum { SQL_NULL_DATA = -1 };
  105.  
  106.   public:
  107.  
  108.     SQLCHA (Parent&, Level, int, int, int, int);
  109.  
  110.     void SetNull( short ) const;
  111.     void SetNull() const;
  112.     short GetNull() const;
  113.     Bool IsNull() const ;
  114.     Bool IsTrunc() const;
  115.     void SetEmpty () const;
  116.  
  117.     void operator = (const SQLCHA& v);
  118.     void operator = (const CHA& v);
  119.  
  120.     friend class HEX;
  121.     void operator = (const HEX& v);
  122.  
  123.     friend class MIX;
  124.     void operator = (const MIX& v);
  125.  
  126.     friend class NUM;
  127.     void operator = (const NUM& v);
  128.  
  129.     void operator = (const char *v);
  130.  
  131.     void operator = (const int v);
  132.  
  133.     void operator =  (const quadnum& v );
  134.  
  135. };
  136.  
  137. // -----------------------------------------------------------------
  138. // SQLDBCS
  139. // -----------------------------------------------------------------
  140.  
  141. class SQLDBCS : public DBCS
  142. {
  143.     enum { SQL_NULL_DATA = -1 };
  144.  
  145.   public:
  146.  
  147.     SQLDBCS (Parent&, Level, int, int, int, int);
  148.  
  149.     void SetNull( short ) const;
  150.     void SetNull() const;
  151.     short GetNull() const;
  152.     Bool IsNull() const;
  153.     Bool IsTrunc() const;
  154.     void SetEmpty () const;
  155.  
  156.     // Interactions with other DBCS objects
  157.     void operator =  (const DBCS& v);
  158.     void operator =  (const SQLDBCS& v);
  159.     void operator =  (const MAPDBCS& v);
  160.     void operator =  (const TBLDBCS& v);
  161.  
  162.     // Interactions with character literals
  163.     void operator =  (const char *v);
  164.  
  165. };
  166.  
  167. // --------------------------------------------------------------------
  168. // SQLHEX
  169. // --------------------------------------------------------------------
  170.  
  171. class SQLHEX : public HEX
  172. {
  173.     enum { SQL_NULL_DATA = -1 };
  174.  
  175.   public:
  176.  
  177.     SQLHEX (Parent&, Level, int, int, int, int);
  178.  
  179.  
  180.     void SetNull( short ) const;
  181.     void SetNull() const;
  182.     short GetNull() const;
  183.     Bool IsNull() const;
  184.     Bool IsTrunc() const;
  185.     void SetEmpty () const;
  186.  
  187.     // Interactions with other HEX objects
  188.     void operator =  (const SQLHEX& v);
  189.     void operator =  (const HEX& v);
  190.  
  191.     // Interactions with character literals
  192.     void operator =  (const char *v);
  193.  
  194. };
  195.  
  196.  
  197. #endif
  198.