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

PostgresResultSet Class Reference

#include <PostgresResultSet.h>

Inheritance diagram for PostgresResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 PostgresResultSet ()
 PostgresResultSet (PGresult *pResult)
virtual ~PostgresResultSet ()
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

PostgresResultSet::PostgresResultSet  ) 
 

Definition at line 8 of file PostgresResultSet.cpp.

PostgresResultSet::PostgresResultSet PGresult *  pResult  ) 
 

Definition at line 18 of file PostgresResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

PostgresResultSet::~PostgresResultSet  )  [virtual]
 

Definition at line 35 of file PostgresResultSet.cpp.

References Close().


Member Function Documentation

void PostgresResultSet::Close  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 50 of file PostgresResultSet.cpp.

References DatabaseResultSet::CloseMetaData().

Referenced by ~PostgresResultSet().

ResultSetMetaData * PostgresResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 228 of file PostgresResultSet.cpp.

References DatabaseResultSet::LogMetaDataForCleanup().

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

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

Implements DatabaseResultSet.

Definition at line 163 of file PostgresResultSet.cpp.

bool PostgresResultSet::GetResultBool int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 113 of file PostgresResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

wxDateTime PostgresResultSet::GetResultDate int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 135 of file PostgresResultSet.cpp.

double PostgresResultSet::GetResultDouble int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 182 of file PostgresResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

int PostgresResultSet::GetResultInt int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 64 of file PostgresResultSet.cpp.

References GetResultLong().

long PostgresResultSet::GetResultLong int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 91 of file PostgresResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

Referenced by GetResultInt().

wxString PostgresResultSet::GetResultString int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 70 of file PostgresResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream().

bool PostgresResultSet::IsFieldNull int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 201 of file PostgresResultSet.cpp.

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

Implements DatabaseResultSet.

Definition at line 206 of file PostgresResultSet.cpp.

References DATABASE_LAYER_FIELD_NOT_IN_RESULTSET.

bool PostgresResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 40 of file PostgresResultSet.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