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

SqliteResultSet Class Reference

#include <SqliteResultSet.h>

Inheritance diagram for SqliteResultSet:

DatabaseResultSet DatabaseErrorReporter DatabaseStringConverter List of all members.

Public Member Functions

 SqliteResultSet ()
 SqliteResultSet (SqlitePreparedStatement *pStatement, bool bManageStatement=false)
virtual ~SqliteResultSet ()
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

SqliteResultSet::SqliteResultSet  ) 
 

Definition at line 9 of file SqliteResultSet.cpp.

SqliteResultSet::SqliteResultSet SqlitePreparedStatement pStatement,
bool  bManageStatement = false
 

Definition at line 17 of file SqliteResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), and SqlitePreparedStatement::GetLastStatement().

SqliteResultSet::~SqliteResultSet  )  [virtual]
 

Definition at line 34 of file SqliteResultSet.cpp.

References Close().


Member Function Documentation

void SqliteResultSet::Close  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 40 of file SqliteResultSet.cpp.

References SqlitePreparedStatement::Close(), and DatabaseResultSet::CloseMetaData().

Referenced by ~SqliteResultSet().

ResultSetMetaData * SqliteResultSet::GetMetaData  )  [virtual]
 

Retrieve the MetaData associated with this result set.

Implements DatabaseResultSet.

Definition at line 195 of file SqliteResultSet.cpp.

References DatabaseResultSet::LogMetaDataForCleanup().

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

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

Implements DatabaseResultSet.

Definition at line 153 of file SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

bool SqliteResultSet::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 SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

wxDateTime SqliteResultSet::GetResultDate int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 123 of file SqliteResultSet.cpp.

References GetResultString().

double SqliteResultSet::GetResultDouble int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 143 of file SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

int SqliteResultSet::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 SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

long SqliteResultSet::GetResultLong int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 103 of file SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

wxString SqliteResultSet::GetResultString int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 93 of file SqliteResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), and SqlitePreparedStatement::GetLastStatement().

Referenced by GetResultDate().

bool SqliteResultSet::IsFieldNull int  nField  )  [virtual]
 

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

Implements DatabaseResultSet.

Definition at line 168 of file SqliteResultSet.cpp.

References SqlitePreparedStatement::GetLastStatement().

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

Implements DatabaseResultSet.

Definition at line 175 of file SqliteResultSet.cpp.

References DATABASE_LAYER_FIELD_NOT_IN_RESULTSET.

bool SqliteResultSet::Next  )  [virtual]
 

Move to the next record in the result set.

Implements DatabaseResultSet.

Definition at line 55 of file SqliteResultSet.cpp.

References DatabaseStringConverter::ConvertFromUnicodeStream(), SqlitePreparedStatement::GetLastStatement(), 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:36 2006 for databaselayer by  doxygen 1.4.1