Public Member Functions | Protected Member Functions

SimpleDB::IntColumn Class Reference

Class representing SQL integers. More...

#include <Column.h>

Inheritance diagram for SimpleDB::IntColumn:
Inheritance graph
[legend]
Collaboration diagram for SimpleDB::IntColumn:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IntColumn ()
 Constructor.
std::ostream & oStream (std::ostream &oStream)
 Function called to write a column value to the output stream.
int32_t value () const
 Used to retrieve the value of this column.

Protected Member Functions

virtual void doBind (QueryPimplData &queryPimplData, int columnNumber)
 This abstract function is called by Query when the Query.bind function is invoked.

Detailed Description

Class representing SQL integers.

Examples:

complete.cpp, and simple.cpp.


Member Function Documentation

virtual void SimpleDB::IntColumn::doBind ( QueryPimplData &  queryPimplData,
int  columnNumber 
) [protected, virtual]

This abstract function is called by Query when the Query.bind function is invoked.

This function has an implementation that handles making sure columns are bound. This function should be called by any derived objects.

Parameters:
queryPimplData The implementation data from the query object
columnNumber The column number to bind this column to..

Implements SimpleDB::Column.

std::ostream& SimpleDB::IntColumn::oStream ( std::ostream &  oStream  )  [virtual]

Function called to write a column value to the output stream.

This function is implemented by each column type to write the value in a suitable form to the output stream.

Parameters:
oStream Output stream object.
Returns:
Output stream object to which data was written.

Implements SimpleDB::Column.

int32_t SimpleDB::IntColumn::value (  )  const

Used to retrieve the value of this column.

Returns:
The value of this column.

Reimplemented from SimpleDB::Column.


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

Documentation pages generated by doxygen.
SourceForge.net Logo