8#ifndef OM_MODEL_BUILDER_H
9#define OM_MODEL_BUILDER_H
27 static IModelBuilder *
create(
const string & i_providerNames,
const string & i_sqlDir,
const string & i_outputDir,
const string & i_sqliteDir);
openM++ namespace
Definition: log.h:32
public interface to build model creation script from metadata rows.
Definition: modelBuilder.h:22
virtual void setModelMetaRows(MetaModelHolder &io_metaRows) const =0
set meta rows values and calculate digests for types, parameters, tables and model
virtual bool isSqliteDb(void) const =0
if true then create SQLite database
virtual void endWorkset(const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet)=0
finish sql script to create new working set
virtual void beginWorkset(const MetaModelHolder &i_metaRows, MetaSetLangHolder &io_metaSet)=0
start sql script to create new working set
virtual void addWorksetParameter(const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const string &i_value)=0
append scalar parameter value to sql script for new working set creation
virtual void build(MetaModelHolder &io_metaRows)=0
update metadata and write sql script to create new model from supplied metadata rows
virtual void addWorksetParameter(const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const list< string > &i_valueLst)=0
append parameter values to sql script for new working set creation
virtual void buildCompatibilityViews(const MetaModelHolder &i_metaRows) const =0
write sql script to create backward compatibility views
static IModelBuilder * create(const string &i_providerNames, const string &i_sqlDir, const string &i_outputDir, const string &i_sqliteDir)
new model builder to create sql script specific to each db-provider.
Definition: modelSqlBuilder.cpp:10