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

OracleResultSet Class Reference

#include <OracleResultSet.h>

Inheritance diagram for OracleResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 OracleResultSet (oracle::occi::ResultSet *pResultSet, bool bManageStatement=false)
virtual ~OracleResultSet ()
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 nrField, 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

OracleResultSet::OracleResultSet oracle::occi::ResultSet *  pResultSet,
bool  bManageStatement = false
 

Definition at line 8 of file OracleResultSet.cpp.

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

OracleResultSet::~OracleResultSet  )  [virtual]
 

Definition at line 36 of file OracleResultSet.cpp.

References Close().


Member Function Documentation

void OracleResultSet::Close  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 56 of file OracleResultSet.cpp.

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

Referenced by ~OracleResultSet().

ResultSetMetaData * OracleResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 242 of file OracleResultSet.cpp.

void * OracleResultSet::GetResultBlob int  nrField,
wxMemoryBuffer &  Buffer
[virtual]
 

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

Implements DatabaseResultSet.

Definition at line 172 of file OracleResultSet.cpp.

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

bool OracleResultSet::GetResultBool int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 131 of file OracleResultSet.cpp.

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

wxDateTime OracleResultSet::GetResultDate int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 147 of file OracleResultSet.cpp.

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

double OracleResultSet::GetResultDouble int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 191 of file OracleResultSet.cpp.

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

int OracleResultSet::GetResultInt int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 83 of file OracleResultSet.cpp.

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

long OracleResultSet::GetResultLong int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 115 of file OracleResultSet.cpp.

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

wxString OracleResultSet::GetResultString int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 99 of file OracleResultSet.cpp.

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

bool OracleResultSet::IsFieldNull int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 207 of file OracleResultSet.cpp.

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

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

Implements DatabaseResultSet.

Definition at line 222 of file OracleResultSet.cpp.

References DATABASE_LAYER_FIELD_NOT_IN_RESULTSET.

bool OracleResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 41 of file OracleResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), 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