SourceForge.net Logo

dbfacade::ResultRow Class Reference

#include <dbfacade.h>

Inheritance diagram for dbfacade::ResultRow:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ResultRow ()
virtual bool hasValueAt (const int index) const =0 throw ()
virtual bool getBooleanAt (const int index) const =0
virtual double getDoubleAt (const int index) const =0
virtual int getIntAt (const int index) const =0
virtual std::string getStringAt (const int index) const =0


Detailed Description

Represents one row of a query result.

Constructor & Destructor Documentation

ResultRow::~ResultRow (  )  [virtual]


Member Function Documentation

virtual bool dbfacade::ResultRow::hasValueAt ( const int  index  )  const throw () [pure virtual]

Determines if it's safe to call any of the get methods. It does not throw.

Returns:
true if the cell contains a value.

Implemented in ResultRowMySQL, ResultRowPostgreSQL, and ResultRowSQLite.

virtual bool dbfacade::ResultRow::getBooleanAt ( const int  index  )  const [pure virtual]

Returns:
The cell's content, converted to bool.
Exceptions:
EmptyResultSetException if hasValueAt() would have returned false for the index.

Implemented in ResultRowMySQL, ResultRowPostgreSQL, and ResultRowSQLite.

virtual double dbfacade::ResultRow::getDoubleAt ( const int  index  )  const [pure virtual]

Returns:
The cell's content, converted to double.
Exceptions:
EmptyResultSetException if hasValueAt() would have returned false for the index.

Implemented in ResultRowMySQL, ResultRowPostgreSQL, and ResultRowSQLite.

virtual int dbfacade::ResultRow::getIntAt ( const int  index  )  const [pure virtual]

Returns:
The cell's content, converted to int.
Exceptions:
EmptyResultSetException if hasValueAt() would have returned false for the index.

Implemented in ResultRowMySQL, ResultRowPostgreSQL, and ResultRowSQLite.

virtual std::string dbfacade::ResultRow::getStringAt ( const int  index  )  const [pure virtual]

Returns:
The cell's content, converted to std::string.
Exceptions:
EmptyResultSetException if hasValueAt() would have returned false for the index.

Implemented in ResultRowMySQL, ResultRowPostgreSQL, and ResultRowSQLite.


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 20:04:35 2009 for libdbfacade.so by  doxygen 1.5.5