use of org.openforis.collect.relational.model.RelationalSchema in project collect by openforis.
the class NewMondrianSchemaGenerator method generateRdbSchema.
private RelationalSchema generateRdbSchema() {
RelationalSchemaGenerator generator = new RelationalSchemaGenerator(rdbConfig);
RelationalSchema rdbSchema = generator.generateSchema(survey, dbSchemaName);
return rdbSchema;
}
use of org.openforis.collect.relational.model.RelationalSchema 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);
}
}
Aggregations