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

FirebirdResultSet Class Reference

#include <FirebirdResultSet.h>

Inheritance diagram for FirebirdResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 FirebirdResultSet ()
 FirebirdResultSet (isc_db_handle pDatabase, isc_tr_handle pTransaction, isc_stmt_handle pStatement, XSQLDA *pFields, bool bManageStmt=false, bool bManageTrans=false)
virtual ~FirebirdResultSet ()
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

FirebirdResultSet::FirebirdResultSet  ) 
 

Definition at line 7 of file FirebirdResultSet.cpp.

FirebirdResultSet::FirebirdResultSet isc_db_handle  pDatabase,
isc_tr_handle  pTransaction,
isc_stmt_handle  pStatement,
XSQLDA *  pFields,
bool  bManageStmt = false,
bool  bManageTrans = false
 

Definition at line 19 of file FirebirdResultSet.cpp.

FirebirdResultSet::~FirebirdResultSet  )  [virtual]
 

Definition at line 33 of file FirebirdResultSet.cpp.

References Close().


Member Function Documentation

void FirebirdResultSet::Close  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 60 of file FirebirdResultSet.cpp.

References DatabaseResultSet::CloseMetaData(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by ~FirebirdResultSet().

ResultSetMetaData * FirebirdResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 533 of file FirebirdResultSet.cpp.

References DatabaseResultSet::LogMetaDataForCleanup().

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

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

Implements DatabaseResultSet.

Definition at line 307 of file FirebirdResultSet.cpp.

References DATABASE_LAYER_INCOMPATIBLE_FIELD_TYPE, DatabaseErrorReporter::ResetErrorCodes(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

bool FirebirdResultSet::GetResultBool int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 205 of file FirebirdResultSet.cpp.

References GetResultLong(), and DatabaseErrorReporter::ResetErrorCodes().

wxDateTime FirebirdResultSet::GetResultDate int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 214 of file FirebirdResultSet.cpp.

References DATABASE_LAYER_INCOMPATIBLE_FIELD_TYPE, DatabaseErrorReporter::ResetErrorCodes(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

double FirebirdResultSet::GetResultDouble int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 271 of file FirebirdResultSet.cpp.

References DATABASE_LAYER_INCOMPATIBLE_FIELD_TYPE, DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

int FirebirdResultSet::GetResultInt int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 99 of file FirebirdResultSet.cpp.

References GetResultLong(), and DatabaseErrorReporter::ResetErrorCodes().

long FirebirdResultSet::GetResultLong int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 147 of file FirebirdResultSet.cpp.

References DATABASE_LAYER_INCOMPATIBLE_FIELD_TYPE, DatabaseErrorReporter::ResetErrorCodes(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), and DatabaseErrorReporter::ThrowDatabaseException().

Referenced by GetResultBool(), and GetResultInt().

wxString FirebirdResultSet::GetResultString int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 107 of file FirebirdResultSet.cpp.

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

bool FirebirdResultSet::IsFieldNull int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 353 of file FirebirdResultSet.cpp.

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

Implements DatabaseResultSet.

Definition at line 502 of file FirebirdResultSet.cpp.

References DATABASE_LAYER_FIELD_NOT_IN_RESULTSET.

bool FirebirdResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 38 of file FirebirdResultSet.cpp.

References DatabaseErrorReporter::ResetErrorCodes(), 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