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

DatabaseResultSet Class Reference

#include <DatabaseResultSet.h>

Inheritance diagram for DatabaseResultSet:

DatabaseErrorReporter DatabaseStringConverter FirebirdResultSet MysqlPreparedStatementResultSet OdbcResultSet OracleResultSet PostgresResultSet SqliteResultSet List of all members.

Public Member Functions

 DatabaseResultSet ()
 Constructor.
virtual ~DatabaseResultSet ()
 Destructor.
virtual bool Next ()=0
 Move to the next record in the result set.
virtual void Close ()=0
 Close the result set (call DatabaseLayer::CloseResultSet() instead on the result set).
virtual int LookupField (const wxString &strField)=0
virtual int GetResultInt (int nField)=0
 Retrieve an integer from the result set by the 1-based field index.
virtual wxString GetResultString (int nField)=0
 Retrieve a wxString from the result set by the 1-based field index.
virtual long GetResultLong (int nField)=0
 Retrieve a long from the result set by the 1-based field index.
virtual bool GetResultBool (int nField)=0
 Retrieve a boolean from the result set by the 1-based field index.
virtual wxDateTime GetResultDate (int nField)=0
 Retrieve a wxDateTime from the result set by the 1-based field index.
virtual void * GetResultBlob (int nField, wxMemoryBuffer &Buffer)=0
 Retrieve a BLOB from the result set by the 1-based field index.
virtual double GetResultDouble (int nField)=0
 Retrieve a double from the result set by the 1-based field index.
virtual bool IsFieldNull (int nField)=0
 Check if a field in the current result set record is NULL.
virtual int GetResultInt (const wxString &strField)
 Retrieve an integer from the result set by the result set column name.
virtual wxString GetResultString (const wxString &strField)
 Retrieve a wxString from the result set by the result set column name.
virtual long GetResultLong (const wxString &strField)
 Retrieve a long from the result set by the result set column name.
virtual bool GetResultBool (const wxString &strField)
 Retrieve a boolean from the result set by the result set column name.
virtual wxDateTime GetResultDate (const wxString &strField)
 Retrieve a wxDateTime from the result set by the result set column name.
virtual void * GetResultBlob (const wxString &strField, wxMemoryBuffer &Buffer)
 Retrieve a BLOB from the result set by the result set column name.
virtual double GetResultDouble (const wxString &strField)
 Retrieve a double from the result set by the result set column name.
virtual bool IsFieldNull (const wxString &strField)
 Check if a field in the current result set record is NULL.
virtual ResultSetMetaDataGetMetaData ()=0
 Retrieve the MetaData associated with this result set.
virtual bool CloseMetaData (ResultSetMetaData *pMetaData)
 Close MetaData previously returned by the result set.

Protected Member Functions

void CloseMetaData ()
 Close all meta data objects that have been generated but not yet closed.
void LogMetaDataForCleanup (ResultSetMetaData *pMetaData)
 Add meta data object pointer to the list for "garbage collection".

Constructor & Destructor Documentation

DatabaseResultSet::DatabaseResultSet  ) 
 

Constructor.

Definition at line 5 of file DatabaseResultSet.cpp.

DatabaseResultSet::~DatabaseResultSet  )  [virtual]
 

Destructor.

Definition at line 11 of file DatabaseResultSet.cpp.

References CloseMetaData().


Member Function Documentation

virtual void DatabaseResultSet::Close  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

void DatabaseResultSet::CloseMetaData  )  [protected]
 

Close all meta data objects that have been generated but not yet closed.

Definition at line 97 of file DatabaseResultSet.cpp.

Referenced by SqliteResultSet::Close(), PostgresResultSet::Close(), OdbcResultSet::Close(), MysqlPreparedStatementResultSet::Close(), FirebirdResultSet::Close(), and ~DatabaseResultSet().

bool DatabaseResultSet::CloseMetaData ResultSetMetaData pMetaData  )  [virtual]
 

Close MetaData previously returned by the result set.

Definition at line 110 of file DatabaseResultSet.cpp.

virtual ResultSetMetaData* DatabaseResultSet::GetMetaData  )  [pure virtual]
 

Retrieve the MetaData associated with this result set.

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

void * DatabaseResultSet::GetResultBlob const wxString &  strField,
wxMemoryBuffer &  Buffer
[virtual]
 

Retrieve a BLOB from the result set by the result set column name.

Definition at line 67 of file DatabaseResultSet.cpp.

References GetResultBlob(), and LookupField().

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

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultBlob().

bool DatabaseResultSet::GetResultBool const wxString &  strField  )  [virtual]
 

Retrieve a boolean from the result set by the result set column name.

Definition at line 47 of file DatabaseResultSet.cpp.

References GetResultBool(), and LookupField().

virtual bool DatabaseResultSet::GetResultBool int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultBool().

wxDateTime DatabaseResultSet::GetResultDate const wxString &  strField  )  [virtual]
 

Retrieve a wxDateTime from the result set by the result set column name.

Definition at line 57 of file DatabaseResultSet.cpp.

References GetResultDate(), and LookupField().

virtual wxDateTime DatabaseResultSet::GetResultDate int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultDate().

double DatabaseResultSet::GetResultDouble const wxString &  strField  )  [virtual]
 

Retrieve a double from the result set by the result set column name.

Definition at line 77 of file DatabaseResultSet.cpp.

References GetResultDouble(), and LookupField().

virtual double DatabaseResultSet::GetResultDouble int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultDouble().

int DatabaseResultSet::GetResultInt const wxString &  strField  )  [virtual]
 

Retrieve an integer from the result set by the result set column name.

Definition at line 17 of file DatabaseResultSet.cpp.

References GetResultInt(), and LookupField().

virtual int DatabaseResultSet::GetResultInt int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultInt().

long DatabaseResultSet::GetResultLong const wxString &  strField  )  [virtual]
 

Retrieve a long from the result set by the result set column name.

Definition at line 37 of file DatabaseResultSet.cpp.

References GetResultLong(), and LookupField().

virtual long DatabaseResultSet::GetResultLong int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultLong().

wxString DatabaseResultSet::GetResultString const wxString &  strField  )  [virtual]
 

Retrieve a wxString from the result set by the result set column name.

Definition at line 27 of file DatabaseResultSet.cpp.

References GetResultString(), and LookupField().

virtual wxString DatabaseResultSet::GetResultString int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by GetResultString().

bool DatabaseResultSet::IsFieldNull const wxString &  strField  )  [virtual]
 

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

Definition at line 87 of file DatabaseResultSet.cpp.

References IsFieldNull(), and LookupField().

virtual bool DatabaseResultSet::IsFieldNull int  nField  )  [pure virtual]
 

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

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by IsFieldNull().

void DatabaseResultSet::LogMetaDataForCleanup ResultSetMetaData pMetaData  )  [inline, protected]
 

Add meta data object pointer to the list for "garbage collection".

Definition at line 87 of file DatabaseResultSet.h.

Referenced by SqliteResultSet::GetMetaData(), PostgresResultSet::GetMetaData(), OdbcResultSet::GetMetaData(), MysqlPreparedStatementResultSet::GetMetaData(), and FirebirdResultSet::GetMetaData().

virtual int DatabaseResultSet::LookupField const wxString &  strField  )  [pure virtual]
 

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.

Referenced by OdbcResultSet::GetFieldLength(), GetResultBlob(), GetResultBool(), GetResultDate(), GetResultDouble(), GetResultInt(), GetResultLong(), GetResultString(), and IsFieldNull().

virtual bool DatabaseResultSet::Next  )  [pure virtual]
 

Move to the next record in the result set.

Implemented in FirebirdResultSet, MysqlPreparedStatementResultSet, OdbcResultSet, OracleResultSet, PostgresResultSet, and SqliteResultSet.


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