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

MysqlPreparedStatementResultSet Class Reference

#include <MysqlPreparedStatementResultSet.h>

Inheritance diagram for MysqlPreparedStatementResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 MysqlPreparedStatementResultSet ()
 MysqlPreparedStatementResultSet (MYSQL_STMT *pStatement)
virtual ~MysqlPreparedStatementResultSet ()
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 LookupField (const wxString &strField)
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 ResultSetMetaDataGetMetaData ()
 Retrieve the MetaData associated with this result set.

Constructor & Destructor Documentation

MysqlPreparedStatementResultSet::MysqlPreparedStatementResultSet  ) 
 

Definition at line 7 of file MysqlPreparedStatementResultSet.cpp.

MysqlPreparedStatementResultSet::MysqlPreparedStatementResultSet MYSQL_STMT *  pStatement  ) 
 

Definition at line 14 of file MysqlPreparedStatementResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseStringConverter::GetEncoding(), DatabaseStringConverter::SetEncoding(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

MysqlPreparedStatementResultSet::~MysqlPreparedStatementResultSet  )  [virtual]
 

Definition at line 55 of file MysqlPreparedStatementResultSet.cpp.

References Close().


Member Function Documentation

void MysqlPreparedStatementResultSet::Close  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 66 of file MysqlPreparedStatementResultSet.cpp.

References DatabaseResultSet::CloseMetaData(), DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::ResetErrorCodes(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by ~MysqlPreparedStatementResultSet().

ResultSetMetaData * MysqlPreparedStatementResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 292 of file MysqlPreparedStatementResultSet.cpp.

References DatabaseResultSet::LogMetaDataForCleanup().

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

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

Implements DatabaseResultSet.

Definition at line 203 of file MysqlPreparedStatementResultSet.cpp.

bool MysqlPreparedStatementResultSet::GetResultBool int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 176 of file MysqlPreparedStatementResultSet.cpp.

wxDateTime MysqlPreparedStatementResultSet::GetResultDate int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 188 of file MysqlPreparedStatementResultSet.cpp.

double MysqlPreparedStatementResultSet::GetResultDouble int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 220 of file MysqlPreparedStatementResultSet.cpp.

int MysqlPreparedStatementResultSet::GetResultInt int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 115 of file MysqlPreparedStatementResultSet.cpp.

References GetResultLong().

long MysqlPreparedStatementResultSet::GetResultLong int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 134 of file MysqlPreparedStatementResultSet.cpp.

Referenced by GetResultInt().

wxString MysqlPreparedStatementResultSet::GetResultString int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 120 of file MysqlPreparedStatementResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

bool MysqlPreparedStatementResultSet::IsFieldNull int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 245 of file MysqlPreparedStatementResultSet.cpp.

int MysqlPreparedStatementResultSet::LookupField const wxString &  strField  )  [virtual]
 

Implements DatabaseResultSet.

Definition at line 251 of file MysqlPreparedStatementResultSet.cpp.

References DATABASE_LAYER_FIELD_NOT_IN_RESULTSET.

bool MysqlPreparedStatementResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 60 of file MysqlPreparedStatementResultSet.cpp.


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