Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

OdbcResultSet Class Reference

#include <OdbcResultSet.h>

Inheritance diagram for OdbcResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 OdbcResultSet ()
 OdbcResultSet (OdbcPreparedStatement *pStatement, bool bManageStatement=false, int nCol=0)
virtual ~OdbcResultSet ()
virtual bool Next ()
 Move to the next record in the result set.
virtual void Close ()
 Close the result set (call DatabaseLayer::CloseResultSet() instead on the result set).
virtual int GetResultInt (int nField)
 Retrieve an integer from the result set by the 1-based field index.
virtual wxString GetResultString (int nField)
 Retrieve a wxString from the result set by the 1-based field index.
virtual long GetResultLong (int nField)
 Retrieve a long 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 wxDateTime GetResultDate (int nField)
 Retrieve a wxDateTime from the result set by the 1-based field index.
virtual void * GetResultBlob (int nField, wxMemoryBuffer &Buffer)
 Retrieve a BLOB 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.
virtual bool IsFieldNull (int nField)
 Check if a field in the current result set record is NULL.
virtual int GetFieldLength (int nField)
virtual int GetFieldLength (const wxString &strField)
virtual ResultSetMetaDataGetMetaData ()
 Retrieve the MetaData associated with this result set.

Constructor & Destructor Documentation

OdbcResultSet::OdbcResultSet  ) 
 

Definition at line 14 of file OdbcResultSet.cpp.

OdbcResultSet::OdbcResultSet OdbcPreparedStatement pStatement,
bool  bManageStatement = false,
int  nCol = 0
 

Definition at line 22 of file OdbcResultSet.cpp.

References OdbcPreparedStatement::GetLastStatement(), ODBC_FIELD_NAME_LEN, and DatabaseErrorReporter::ThrowDatabaseException().

OdbcResultSet::~OdbcResultSet  )  [virtual]
 

Definition at line 52 of file OdbcResultSet.cpp.

References Close().


Member Function Documentation

void OdbcResultSet::Close  )  [virtual]
 

Close the result set (call DatabaseLayer::CloseResultSet() instead on the result set).

Implements DatabaseResultSet.

Definition at line 66 of file OdbcResultSet.cpp.

References DatabaseResultSet::CloseMetaData().

Referenced by ~OdbcResultSet().

int OdbcResultSet::GetFieldLength const wxString &  strField  )  [virtual]
 

Definition at line 210 of file OdbcResultSet.cpp.

References GetFieldLength(), and DatabaseResultSet::LookupField().

int OdbcResultSet::GetFieldLength int  nField  )  [virtual]
 

Definition at line 146 of file OdbcResultSet.cpp.

Referenced by GetFieldLength(), GetResultBool(), GetResultDate(), GetResultDouble(), GetResultInt(), GetResultLong(), and GetResultString().

ResultSetMetaData * OdbcResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 384 of file OdbcResultSet.cpp.

References DatabaseResultSet::LogMetaDataForCleanup().

void * OdbcResultSet::GetResultBlob int  nField,
wxMemoryBuffer &  Buffer
[virtual]
 

Retrieve a BLOB from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 285 of file OdbcResultSet.cpp.

References OdbcPreparedStatement::GetLastStatement(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by IsFieldNull().

bool OdbcResultSet::GetResultBool int  nField  )  [virtual]
 

Retrieve a boolean from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 252 of file OdbcResultSet.cpp.

References GetFieldLength().

wxDateTime OdbcResultSet::GetResultDate int  nField  )  [virtual]
 

Retrieve a wxDateTime from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 263 of file OdbcResultSet.cpp.

References GetFieldLength().

double OdbcResultSet::GetResultDouble int  nField  )  [virtual]
 

Retrieve a double from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 274 of file OdbcResultSet.cpp.

References GetFieldLength().

int OdbcResultSet::GetResultInt int  nField  )  [virtual]
 

Retrieve an integer from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 219 of file OdbcResultSet.cpp.

References GetFieldLength().

long OdbcResultSet::GetResultLong int  nField  )  [virtual]
 

Retrieve a long from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 241 of file OdbcResultSet.cpp.

References GetFieldLength().

wxString OdbcResultSet::GetResultString int  nField  )  [virtual]
 

Retrieve a wxString from the result set by the 1-based field index.

Implements DatabaseResultSet.

Definition at line 230 of file OdbcResultSet.cpp.

References GetFieldLength().

bool OdbcResultSet::IsFieldNull int  nField  )  [virtual]
 

Check if a field in the current result set record is NULL.

Implements DatabaseResultSet.

Definition at line 113 of file OdbcResultSet.cpp.

References GetResultBlob().

bool OdbcResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 81 of file OdbcResultSet.cpp.

References OdbcPreparedStatement::GetLastStatement(), and DatabaseErrorReporter::ThrowDatabaseException().


The documentation for this class was generated from the following files:
Generated on Sat May 13 17:31:35 2006 for databaselayer by  doxygen 1.4.1