Row represents a row, which is fetched from the database. More...

#include <tntdb/bits/row.h>

Classes

class  const_iterator

Public Types

typedef unsigned size_type
typedef Value value_type

Public Member Functions

 Row ()
 Row (IRow *row_)
unsigned size () const
 Returns the number of columns of this row.
bool empty () const
 Returns true, if this row-object has no columns.
Value getValue (size_type field_num) const
 Returns the field_num's value-object.
Value getValue (const std::string &field_name) const
 Returns the value-object by name.
Value operator[] (size_type field_num) const
 Returns the field_num's value-object.
Value operator[] (const std::string &field_name) const
 Returns the value-object by name.
std::string getName (size_type field_num) const
 Returns the name of the field_num's column.
bool isNull (size_type field_num) const
 Return true, if the specified value is null.
bool isNull (const std::string &field_name) const
 Return true, if the specified value is null.
template<typename T >
bool getValue (size_type field_num, T &ret) const
const_iterator begin () const
 Returns a iterator to the first column.
const_iterator end () const
 Returns a iterator past the last column.
bool operator! () const
 Returns true, if this class is not connected to a actual databaserow.
const IRowgetImpl () const
 Returns the actual implementation-class.
RowReader reader (size_type n=0) const
 Instantiates a tntdb::RowReader with the passed initial column counter.
template<typename T >
RowReader get (T &ret) const
 Instantiates a tntdb::RowReader and fetches the value of the first column.
template<typename T >
RowReader get (T &ret, bool &nullInd) const
 Instantiates a tntdb::RowReader and fetches the value of the first column and sets the null indicator.
bool getBool (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
short getShort (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int getInt (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
long getLong (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
unsigned short getUnsignedShort (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
unsigned getUnsigned (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
unsigned long getUnsignedLong (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int32_t getInt32 (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
uint32_t getUnsigned32 (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int64_t getInt64 (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
uint64_t getUnsigned64 (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Decimal getDecimal (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
float getFloat (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
double getDouble (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
char getChar (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
std::string getString (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
void getString (size_type field_num, std::string &ret) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Blob getBlob (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
void getBlob (size_type field_num, Blob &ret) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Date getDate (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Time getTime (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Datetime getDatetime (size_type field_num) const
 The get-methods try to convert the value of the speicfied column to the requested type.
bool getBool (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
short getShort (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int getInt (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
long getLong (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
unsigned getUnsigned (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
unsigned long getUnsignedLong (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int32_t getInt32 (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
uint32_t getUnsigned32 (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
int64_t getInt64 (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
uint64_t getUnsigned64 (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Decimal getDecimal (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
float getFloat (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
double getDouble (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
char getChar (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
std::string getString (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
void getString (const std::string &field_name, std::string &ret) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Blob getBlob (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
void getBlob (const std::string &field_name, Blob &ret) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Date getDate (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Time getTime (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.
Datetime getDatetime (const std::string &field_name) const
 The get-methods try to convert the value of the speicfied column to the requested type.

Detailed Description

Row represents a row, which is fetched from the database.

Member Typedef Documentation

typedef unsigned tntdb::Row::size_type

Constructor & Destructor Documentation

tntdb::Row::Row ( )
inline
tntdb::Row::Row ( IRow row_)
inline

Member Function Documentation

const_iterator tntdb::Row::begin ( ) const

Returns a iterator to the first column.

bool tntdb::Row::empty ( ) const
inline

Returns true, if this row-object has no columns.

const_iterator tntdb::Row::end ( ) const

Returns a iterator past the last column.

template<typename T >
RowReader tntdb::Row::get ( T &  ret) const

Instantiates a tntdb::RowReader and fetches the value of the first column.

template<typename T >
RowReader tntdb::Row::get ( T &  ret,
bool &  nullInd 
) const

Instantiates a tntdb::RowReader and fetches the value of the first column and sets the null indicator.

Blob tntdb::Row::getBlob ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

void tntdb::Row::getBlob ( size_type  field_num,
Blob ret 
) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Blob tntdb::Row::getBlob ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

void tntdb::Row::getBlob ( const std::string &  field_name,
Blob ret 
) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

bool tntdb::Row::getBool ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

bool tntdb::Row::getBool ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

char tntdb::Row::getChar ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

char tntdb::Row::getChar ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Date tntdb::Row::getDate ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Date tntdb::Row::getDate ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Datetime tntdb::Row::getDatetime ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Datetime tntdb::Row::getDatetime ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Decimal tntdb::Row::getDecimal ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Decimal tntdb::Row::getDecimal ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

double tntdb::Row::getDouble ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

double tntdb::Row::getDouble ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

float tntdb::Row::getFloat ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

float tntdb::Row::getFloat ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

const IRow* tntdb::Row::getImpl ( ) const
inline

Returns the actual implementation-class.

int tntdb::Row::getInt ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

int tntdb::Row::getInt ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

int32_t tntdb::Row::getInt32 ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

int32_t tntdb::Row::getInt32 ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

int64_t tntdb::Row::getInt64 ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

int64_t tntdb::Row::getInt64 ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

long tntdb::Row::getLong ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

long tntdb::Row::getLong ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

std::string tntdb::Row::getName ( size_type  field_num) const
inline

Returns the name of the field_num's column.

short tntdb::Row::getShort ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

short tntdb::Row::getShort ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

std::string tntdb::Row::getString ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

void tntdb::Row::getString ( size_type  field_num,
std::string &  ret 
) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

std::string tntdb::Row::getString ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

void tntdb::Row::getString ( const std::string &  field_name,
std::string &  ret 
) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Time tntdb::Row::getTime ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Time tntdb::Row::getTime ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

unsigned tntdb::Row::getUnsigned ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

unsigned tntdb::Row::getUnsigned ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

uint32_t tntdb::Row::getUnsigned32 ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

uint32_t tntdb::Row::getUnsigned32 ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

uint64_t tntdb::Row::getUnsigned64 ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

uint64_t tntdb::Row::getUnsigned64 ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

unsigned long tntdb::Row::getUnsignedLong ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

unsigned long tntdb::Row::getUnsignedLong ( const std::string &  field_name) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

unsigned short tntdb::Row::getUnsignedShort ( size_type  field_num) const
inline

The get-methods try to convert the value of the speicfied column to the requested type.

Value tntdb::Row::getValue ( size_type  field_num) const
inline

Returns the field_num's value-object.

Value tntdb::Row::getValue ( const std::string &  field_name) const
inline

Returns the value-object by name.

template<typename T >
bool tntdb::Row::getValue ( size_type  field_num,
T &  ret 
) const
inline
bool tntdb::Row::isNull ( size_type  field_num) const
inline

Return true, if the specified value is null.

bool tntdb::Row::isNull ( const std::string &  field_name) const
inline

Return true, if the specified value is null.

bool tntdb::Row::operator! ( ) const
inline

Returns true, if this class is not connected to a actual databaserow.

Value tntdb::Row::operator[] ( size_type  field_num) const
inline

Returns the field_num's value-object.

Value tntdb::Row::operator[] ( const std::string &  field_name) const
inline

Returns the value-object by name.

RowReader tntdb::Row::reader ( Row::size_type  n = 0) const
inline

Instantiates a tntdb::RowReader with the passed initial column counter.

unsigned tntdb::Row::size ( ) const
inline

Returns the number of columns of this row.


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