| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef MYSQL_MYSQLRESULTSETIMPL_H
- #define MYSQL_MYSQLRESULTSETIMPL_H
- #include "MySQLResultSetMetaDataImpl.h"
- #include <cppconn/resultset.h>
- #include <stdint.h>
- #include <memory>
- #include <string>
- namespace MySQL {
- class MySQLResultSetImpl
- {
- public:
- MySQLResultSetImpl();
- explicit MySQLResultSetImpl(const std::shared_ptr<sql::ResultSet>& pResultSet);
- ~MySQLResultSetImpl();
- public:
- bool Absolute(int row);
- void AfterLast();
- void BeforeFirst();
- void CancelRowUpdates();
- void ClearWarnings();
- void Close();
- uint32_t FindColumn(const std::string& columnLabel) const;
- bool First();
- std::istream* Blob(uint32_t columnIndex) const;
- std::istream* Blob(const std::string& columnLabel) const;
- bool Boolean(uint32_t columnIndex) const;
- bool Boolean(const std::string& columnLabel) const;
- int Concurrency();
- std::string CursorName();
- long double Double(uint32_t columnIndex) const;
- long double Double(const std::string& columnLabel) const;
- int FetchDirection();
- size_t FetchSize();
- int Holdability();
- int32_t Int(uint32_t columnIndex) const;
- int32_t Int(const std::string& columnLabel) const;
- uint32_t UInt(uint32_t columnIndex) const;
- uint32_t UInt(const std::string& columnLabel) const;
- int64_t Int64(uint32_t columnIndex) const;
- int64_t Int64(const std::string& columnLabel) const;
- uint64_t UInt64(uint32_t columnIndex) const;
- uint64_t UInt64(const std::string& columnLabel) const;
- std::shared_ptr<MySQLResultSetMetaDataImpl> MetaData() const;
- size_t Row() const;
- //RowID* RowId(uint32_t columnIndex);
- //RowID* RowId(const std::string & columnLabel);
- //const Statement* Statement() const;
- std::string String(uint32_t columnIndex) const;
- std::string String(const std::string& columnLabel) const;
- //enum_type Type() const;
- void Warnings();
- void InsertRow();
- bool IsAfterLast() const;
- bool IsBeforeFirst() const;
- bool IsClosed() const;
- bool IsFirst() const;
- bool IsLast() const;
- bool IsNull(uint32_t columnIndex) const;
- bool IsNull(const std::string& columnLabel) const;
- bool Last();
- bool Next();
- void MoveToCurrentRow();
- void MoveToInsertRow();
- bool Previous();
- void RefreshRow();
- bool Relative(int rows);
- bool RowDeleted();
- bool RowInserted();
- bool RowUpdated();
- void FetchSize(size_t rows);
- size_t RowsCount() const;
- bool WasNull() const;
- private:
- std::shared_ptr<sql::ResultSet> m_pResultSet;
- };
- } // namespace MySQL
- #endif // MYSQL_MYSQLRESULTSETIMPL_H
|