OpenM++ runtime library (libopenm)
openm::IRowAdapter Class Referenceabstract

row factory and setter interface to select row from database More...

#include <dbCommon.h>

Inheritance diagram for openm::IRowAdapter:

Public Member Functions

virtual IRowBasecreateRow (void) const =0
 create new row (tuple, struct or array) initialized with default field values More...
virtual int size (void) const =0
 return row size: number of columns More...
virtual const type_info *const * columnTypes (void) const =0
 array[rowSize] of type_info for each column, used to convert from db-type to target type More...
virtual void set (IRowBase *i_row, int i_column, const void *i_value) const =0
 field value setter: i_row[i_column] = *i_value More...

Detailed Description

row factory and setter interface to select row from database

Member Function Documentation

◆ columnTypes()

◆ createRow()

◆ set()

virtual void openm::IRowAdapter::set ( IRowBase i_row,
int  i_column,
const void *  i_value 
) const
pure virtual

field value setter: i_row[i_column] = *i_value

[in]i_rownew row created by createRow()
[in]i_columnzero-based column index
[in]i_valuedb-field value, casted to the target column type

this method called for each row by data library select() methods to set field values.
this method called only if db-field value NOT IS NULL.

Implemented in openm::EntityAttrRowAdapter, openm::EntityAttrTxtRowAdapter, openm::EntityDicRowAdapter, openm::EntityDicTxtRowAdapter, openm::GroupLstRowAdapter, openm::GroupPcRowAdapter, openm::GroupTxtRowAdapter, openm::LangLstRowAdapter, openm::LangWordRowAdapter, openm::ModelDicRowAdapter, openm::ModelDicTxtRowAdapter, openm::ModelWordRowAdapter, openm::ParamDicRowAdapter, openm::ParamDicTxtRowAdapter, openm::ParamDimsRowAdapter, openm::ParamDimsTxtRowAdapter, openm::ParamImportRowAdapter, openm::ProfileLstRowAdapter, openm::ProfileOptionRowAdapter, openm::RunLstRowAdapter, openm::RunOptionRowAdapter, openm::TableAccRowAdapter, openm::TableAccTxtRowAdapter, openm::TableDicRowAdapter, openm::TableDicTxtRowAdapter, openm::TableDimsRowAdapter, openm::TableDimsTxtRowAdapter, openm::TableExprRowAdapter, openm::TableExprTxtRowAdapter, openm::TaskLstRowAdapter, openm::TaskRunLstRowAdapter, openm::TaskRunSetRowAdapter, openm::TaskSetRowAdapter, openm::TaskTxtRowAdapter, openm::TypeDicRowAdapter, openm::TypeDicTxtRowAdapter, openm::TypeEnumLstRowAdapter, openm::TypeEnumTxtRowAdapter, openm::WorksetLstRowAdapter, openm::WorksetParamRowAdapter, openm::WorksetParamTxtRowAdapter, openm::WorksetTxtRowAdapter, and openm::ValueRowAdapter.

◆ size()

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