#include <Column.h>
Inheritance diagram for SimpleDB::Column:
Public Member Functions | |
virtual bool | isNull () |
Tests if the current value is NULL. | |
virtual void | bind (SQLHSTMT statementHandle, int columnNumber)=0 |
This abstract function is called by Query when the Query.bind function is invoked. | |
virtual std::ostream & | oStream (std::ostream &oStream)=0 |
Function called to write a column value to the output stream. | |
virtual | ~Column () |
A virtual destructor that can be overridden if required. | |
Column () | |
Constructor used to set initial value of columnBound variable. | |
void | value () |
This method is to be called by all derived classes to make sure the column was bound. | |
Protected Attributes | |
SQLINTEGER | lengthOrIndex |
The lengthOrIndex variable to be sent to the SQLBindCol function. | |
bool | bound |
Indicates weather this column has been bound to a query. | |
std::string | name |
Name that can be used. | |
Classes | |
class | UnboundException |
Exception class. More... |
This type contains the actual data as well as meta-data.
complete.cpp, factory.cpp, and simple.cpp.
|
A virtual destructor that can be overridden if required. This can be used, for example, to deallocate memory. |
|
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.
Implemented in SimpleDB::StringColumn, SimpleDB::LongColumn, and SimpleDB::BoolColumn. |
|
Tests if the current value is NULL.
|
|
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.
Implemented in SimpleDB::StringColumn, SimpleDB::LongColumn, and SimpleDB::BoolColumn. |
|
This method is to be called by all derived classes to make sure the column was bound. It will cause an exception to be thrown if the column wasn't bound. Reimplemented in SimpleDB::StringColumn, SimpleDB::LongColumn, and SimpleDB::BoolColumn. |