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

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

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
 
virtual int size (void) const =0
 return row size: number of columns
 
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
 
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

◆ 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

Parameters
[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::ValueRowAdapter, openm::WorksetTxtRowAdapter, openm::WorksetParamTxtRowAdapter, openm::WorksetParamRowAdapter, openm::WorksetLstRowAdapter, openm::TypeEnumTxtRowAdapter, openm::TypeEnumLstRowAdapter, openm::TypeDicTxtRowAdapter, openm::TypeDicRowAdapter, openm::TaskTxtRowAdapter, openm::TaskSetRowAdapter, openm::TaskRunSetRowAdapter, openm::TaskRunLstRowAdapter, openm::TaskLstRowAdapter, openm::TableExprTxtRowAdapter, openm::TableExprRowAdapter, openm::TableDimsTxtRowAdapter, openm::TableDimsRowAdapter, openm::TableDicTxtRowAdapter, openm::TableDicRowAdapter, openm::TableAccTxtRowAdapter, openm::TableAccRowAdapter, openm::RunTxtRowAdapter, openm::RunParamTxtRowAdapter, openm::RunOptionRowAdapter, openm::RunLstRowAdapter, openm::ProfileOptionRowAdapter, openm::ProfileLstRowAdapter, openm::ParamImportRowAdapter, openm::ParamDimsTxtRowAdapter, openm::ParamDimsRowAdapter, openm::ParamDicTxtRowAdapter, openm::ParamDicRowAdapter, openm::ModelWordRowAdapter, openm::ModelDicTxtRowAdapter, openm::ModelDicRowAdapter, openm::LangWordRowAdapter, openm::LangLstRowAdapter, openm::GroupTxtRowAdapter, openm::GroupPcRowAdapter, and openm::GroupLstRowAdapter.


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