use of org.openforis.collect.relational.model.RelationalSchemaGenerator in project collect by openforis.
the class RDBReportingRepositories method initializeRelationalSchemaDefinition.
private void initializeRelationalSchemaDefinition(CollectSurvey survey) {
try {
RelationalSchemaGenerator schemaGenerator = new RelationalSchemaGenerator(rdbConfig);
RelationalSchema relationalSchema = schemaGenerator.generateSchema(survey, survey.getName());
relationalSchemaDefinitionBySurvey.put(survey.getName(), relationalSchema);
} catch (CollectRdbException e) {
LOG.error("Error generating relational schema for survey " + survey.getName(), e);
}
}
use of org.openforis.collect.relational.model.RelationalSchemaGenerator in project collect by openforis.
the class MondrianCubeGenerator method generateSchema.
public Schema generateSchema() {
this.rdbSchema = new RelationalSchemaGenerator(rdbConfig).generateSchema(survey, survey.getName());
Cube cube = generateCube();
Schema schema = new Schema(survey.getName());
schema.cube = cube;
return schema;
}
Aggregations