Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SQLBIGSERIAL.hpp
1 
5 //
6 // (C) Copyright 2001-2016 Douglas Mark Royer, All Rights Reserved.
7 //
8 // NOTICE:
9 //
10 // THIS SOURCE CODE BELONGS TO DOUGLAS MARK ROYER. THIS CODE IS CONSIDERED A
11 // TRADE SECRET AND IS NOT TO BE DIVULGED OR USED BY PARTIES WHO HAVE
12 // NOT RECEIVED WRITTEN AUTHORIZATION FROM THE OWNER.
13 //
14 // THIS SOURCE CODE IS UNPUBLISHED WORK FULLY PROTECTED BY THE UNITED
15 // STATES COPYRIGHT LAWS AND IS CONSIDERED A TRADE SECRET BELONGING
16 // TO THE COPYRIGHT HOLDER.
17 //
18 // THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
19 // COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
20 // AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
21 // OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
22 // BE SUBJECT TO CIVIL LIABILITY.
23 //
24 // ALL OF THIS CODE IS ORIGINAL WORK BY THE COPYRIGHT HOLDER.
25 //
26 
27 #ifndef _DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLBIGSERIAL_HPP
28 #define _DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLBIGSERIAL_HPP
29 
30 #ifdef BUILDING_LIBRARY_SQL
31 #include "Types.hpp"
32 #else
33 #include <SaS/Sql/Types.hpp>
34 #endif
35 
36 #include <bsd/bitstring.h>
37 
38 namespace SoftwareAndServices
39 {
40  namespace Library
41  {
42  namespace Database
43  {
49  : public SqlColumn
50  {
51 
52  public:
53 
57  SQLBIGSERIAL();
58 
64  SQLBIGSERIAL(const SQLBIGSERIAL & CopyFrom);
65 
72  SQLBIGSERIAL(const char * InitFrom);
73 
80  SQLBIGSERIAL(int64_t InitFrom);
81 
85  virtual ~SQLBIGSERIAL();
86 
92  void Set(int64_t Val);
93 
97  int64_t Get() const;
98 
103  virtual const char * BaseType() const;
104 
112  SQLBIGSERIAL & operator=(const SQLBIGSERIAL & CopyFrom);
113 
121  bool operator==(const SQLBIGSERIAL & CompareTo) const;
122 
130  bool operator!=(const SQLBIGSERIAL & CompareTo) const;
131 
137  operator int64_t() const;
138 
142  virtual const char * toString() const;
143 
149  virtual bool fromString(const char * TheValue);
150 
156  virtual DataTypeBase * Copy() const;
157 
176  static void ToVector(const char * OneString,
177  std::vector<SQLBIGSERIAL*> & Results);
178 
188  static void FromVector(std::vector<SQLBIGSERIAL*> & Vector,
189  String & Results);
190 
191  private:
192 
196  int64_t _Value;
197 
198  };
199  }
200  }
201 }
202 #endif //_DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLBIGSERIAL_HPP
virtual ~SQLBIGSERIAL()
SQLBIGSERIAL - Destructor.
static void FromVector(std::vector< SQLBIGSERIAL *> &Vector, String &Results)
Convert an array of values, into a form suitable for an insert.
bool operator==(const SQLBIGSERIAL &CompareTo) const
Compare this object to CompareTo.
static void ToVector(const char *OneString, std::vector< SQLBIGSERIAL *> &Results)
Convert an SQL array result to an array of SqlColumn values.
SQLBIGSERIAL()
SQLBIGSERIAL - Default Constructor.
virtual bool fromString(const char *TheValue)
Convert the object value from a string.
SQLBIGSERIAL & operator=(const SQLBIGSERIAL &CopyFrom)
Copy the bits, return (*this) updated.
virtual const char * toString() const
Convert the object value to a string.
bool operator!=(const SQLBIGSERIAL &CompareTo) const
Compare this object to CompareTo.
A base object for DataType objects.
Definition: SQL.hpp:1800
virtual DataTypeBase * Copy() const
Copy this object.
void Set(int64_t Val)
Set the value to Val.
Copyright Douglas Mark Royer DouglasRoyer@gmail.com.
Definition: Base.hpp:98
virtual const char * BaseType() const
Get the C++ base type name.
An object that represents a bit or bits.