Version: 1.0.0
tds_resultset.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_TDS_RESULT_SET_H_
2 #define _WX_DATABASE_TDS_RESULT_SET_H_
3 
4 #include "wx/database/wxprec.h"
5 
7 
9 {
10 public:
11  // ctor
12  wxTdsResultSet(TDSSOCKET* pDatabase);
13 
14  // dtor
15  virtual ~wxTdsResultSet();
16 
17  virtual bool Next();
18  virtual void Close();
19 
20  virtual int LookupField(const wxString& strField);
21 
22  // get field
23  virtual int GetResultInt(int nField);
24  virtual wxString GetResultString(int nField);
25  virtual long GetResultLong(int nField);
26  virtual bool GetResultBool(int nField);
27  virtual wxDateTime GetResultDate(int nField);
28  virtual void* GetResultBlob(int nField, wxMemoryBuffer& Buffer);
29  virtual double GetResultDouble(int nField);
30  virtual bool IsFieldNull(int nField);
31 
32  // get MetaData
34 
35 private:
36  void FreeResultSets();
37  void PopulateFieldMap();
40 
41  StringToIntMap m_FieldLookupMap;
42 
43  TDSSOCKET* m_pDatabase;
44  TDSRESULTINFO* m_pResultInfo;
46 };
47 
48 #endif//_WX_DATABASE_TDS_RESULT_SET_H_
49 
void FreeResultSets()
virtual wxString GetResultString(int nField)
Retrieve a wxString from the result set by the 1-based field index.
void SetErrorInformationFromDatabaseLayer()
wxResultSetMetaData * m_pResultSetMetaData
Definition: tds_resultset.h:45
virtual bool IsFieldNull(int nField)
Check if a field in the current result set record is NULL.
wxTdsResultSet(TDSSOCKET *pDatabase)
virtual int GetResultInt(int nField)
Retrieve an integer from the result set by the 1-based field index.
virtual bool GetResultBool(int nField)
Retrieve a boolean from the result set by the 1-based field index.
virtual ~wxTdsResultSet()
virtual long GetResultLong(int nField)
Retrieve a long from the result set by the 1-based field index.
virtual bool Next()
Move to the next record in the result set.
virtual wxResultSetMetaData * GetMetaData()
Retrieve the MetaData associated with this result set.
TDSSOCKET * m_pDatabase
Definition: tds_resultset.h:43
virtual void Close()
Close the result set (call wxDatabase::CloseResultSet() instead on the result set)
virtual void * GetResultBlob(int nField, wxMemoryBuffer &Buffer)
Retrieve a BLOB from the result set by the 1-based field index.
StringToIntMap m_FieldLookupMap
Definition: tds_resultset.h:41
void CreateResultSetMetaData()
virtual int LookupField(const wxString &strField)
void PopulateFieldMap()
TDSRESULTINFO * m_pResultInfo
Definition: tds_resultset.h:44
virtual wxDateTime GetResultDate(int nField)
Retrieve a wxDateTime from the result set by the 1-based field index.
virtual double GetResultDouble(int nField)
Retrieve a double from the result set by the 1-based field index.