public class RelationalSchemaGenerator extends Object
| Constructor and Description |
|---|
RelationalSchemaGenerator() |
RelationalSchemaGenerator(RelationalSchemaConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAncestorKeyColumns(DataTable table) |
protected void |
addPKColumn(DataTable table) |
protected void |
addPKConstraint(org.openforis.collect.relational.model.AbstractTable<?> table,
Column<?> pkColumn) |
protected Path |
createAncestorKeyRelativePath(int depth,
FieldDefinition<?> field) |
protected CodeTable |
createCodeListTable(RelationalSchema rs,
CodeList codeList,
CodeTable parent,
Integer hierarchyIdx) |
RelationalSchema |
generateSchema(Survey survey,
String schemaName) |
protected String |
getAncestorKeyColumnName(AttributeDefinition keyDefn) |
protected FieldDefinition<?> |
getKeyAttributeValueFieldDefinition(AttributeDefinition defn) |
protected boolean |
isQualifiable(CodeList list) |
void |
setConfig(RelationalSchemaConfig config) |
public RelationalSchemaGenerator()
public RelationalSchemaGenerator(RelationalSchemaConfig config)
public RelationalSchema generateSchema(Survey survey, String schemaName) throws CollectRdbException
CollectRdbExceptionprotected CodeTable createCodeListTable(RelationalSchema rs, CodeList codeList, CodeTable parent, Integer hierarchyIdx) throws CollectRdbException
CollectRdbExceptionprotected void addPKColumn(DataTable table)
protected void addAncestorKeyColumns(DataTable table) throws CollectRdbException
CollectRdbExceptionprotected FieldDefinition<?> getKeyAttributeValueFieldDefinition(AttributeDefinition defn)
protected String getAncestorKeyColumnName(AttributeDefinition keyDefn)
protected Path createAncestorKeyRelativePath(int depth, FieldDefinition<?> field)
protected void addPKConstraint(org.openforis.collect.relational.model.AbstractTable<?> table,
Column<?> pkColumn)
protected boolean isQualifiable(CodeList list)
public void setConfig(RelationalSchemaConfig config)
Copyright © 2022 Open Foris. All rights reserved.