#include <column.h>
Public Methods | |
bool | is_null (void) const |
Returns whether column is having null value. | |
DataTypesEnum | type (void) const |
Returns column data type. | |
const std::string & | name (void) const |
Returns exact column name. | |
operator Pstr (void) const | |
Returns column value as text. | |
Pstr | as_string (void) const |
Returns column value as text. | |
operator double (void) const | |
Returns column value as double. | |
double | as_double (void) const |
Returns column value as double. | |
operator long (void) const | |
Returns column value as long. | |
long | as_long (void) const |
Returns column value as long. | |
operator datetime (void) const | |
Returns column value as date/time. | |
datetime | as_datetime (void) const |
Returns column value as date/time. | |
Friends | |
class | resultset |
As with parameter each column is having a data type. An attempt to read column value in a different data type will cause an exception. Exception will cause an attempt to read NULL-value column, too, so a test with is_null() should be made for each column that could possibly have NULL value.
In contrast with OO4O (Oracle Objects for OLE) and MS ADO (Microsoft ActiveX Data Objects) OraLib's columns are read-only. SQL select statement results cannot be modified and updated later. OraLib supports data changes via SQL insert, update and delete statements - that is a low-level approach.