OpenM++ runtime library (libopenm)
|
row factory and setter interface to select row from database More...
#include <dbCommon.h>
Public Member Functions | |
virtual IRowBase * | createRow (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... | |
row factory and setter interface to select row from database
|
pure virtual |
array[rowSize] of type_info for each column, used to convert from db-type to target type
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.
|
pure virtual |
create new row (tuple, struct or array) initialized with default field values
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.
|
pure virtual |
field value setter: i_row[i_column] = *i_value
[in] | i_row | new row created by createRow() |
[in] | i_column | zero-based column index |
[in] | i_value | db-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.
|
pure virtual |
return row size: number of columns
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.