ledger-core
DatabaseStatement.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from database.djinni
3 
4 #ifndef DJINNI_GENERATED_DATABASESTATEMENT_HPP
5 #define DJINNI_GENERATED_DATABASESTATEMENT_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #include <string>
10 #ifndef LIBCORE_EXPORT
11  #if defined(_MSC_VER)
12  #include <libcore_export.h>
13  #else
14  #define LIBCORE_EXPORT
15  #endif
16 #endif
17 
18 namespace ledger { namespace core { namespace api {
19 
20 class DatabaseBlob;
21 class DatabaseColumn;
22 class DatabaseResultSet;
23 
29 public:
30  virtual ~DatabaseStatement() {}
31 
37  virtual void bindShort(int32_t pos, int16_t value) = 0;
38 
44  virtual void bindInt(int32_t pos, int32_t value) = 0;
45 
51  virtual void bindLong(int32_t pos, int64_t value) = 0;
52 
58  virtual void bindFloat(int32_t pos, float value) = 0;
59 
65  virtual void bindDouble(int32_t pos, double value) = 0;
66 
72  virtual void bindString(int32_t pos, const std::string & value) = 0;
73 
79  virtual void bindBlob(int32_t pos, const std::shared_ptr<DatabaseBlob> & value) = 0;
80 
86  virtual void bindNull(int32_t pos) = 0;
87 
92  virtual std::shared_ptr<DatabaseColumn> describeColumn(int32_t colNum) = 0;
93 
99  virtual int32_t getColumnCount() = 0;
100 
105  virtual std::shared_ptr<DatabaseResultSet> execute() = 0;
106 
108  virtual void reset() = 0;
109 
111  virtual void close() = 0;
112 };
113 
114 } } } // namespace ledger::core::api
115 #endif //DJINNI_GENERATED_DATABASESTATEMENT_HPP
Definition: DatabaseStatement.hpp:28
virtual void bindInt(int32_t pos, int32_t value)=0
virtual void bindDouble(int32_t pos, double value)=0
virtual void bindLong(int32_t pos, int64_t value)=0
virtual void bindBlob(int32_t pos, const std::shared_ptr< DatabaseBlob > &value)=0
virtual void bindFloat(int32_t pos, float value)=0
virtual void bindString(int32_t pos, const std::string &value)=0
virtual std::shared_ptr< DatabaseColumn > describeColumn(int32_t colNum)=0
virtual std::shared_ptr< DatabaseResultSet > execute()=0
Definition: Account.cpp:8
virtual void bindNull(int32_t pos)=0
virtual void bindShort(int32_t pos, int16_t value)=0