Class RelationalSchemaGenerator
java.lang.Object
org.openforis.collect.relational.model.RelationalSchemaGenerator
- Author:
- G. Miceli, S. Ricci
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAncestorKeyColumns(DataTable table) protected voidaddPKColumn(DataTable table) protected voidaddPKConstraint(org.openforis.collect.relational.model.AbstractTable<?> table, Column<?> pkColumn) protected PathcreateAncestorKeyRelativePath(int depth, FieldDefinition<?> field) protected CodeTablecreateCodeListTable(RelationalSchema rs, CodeList codeList, CodeTable parent, Integer hierarchyIdx) generateSchema(Survey survey, String schemaName) protected Stringprotected FieldDefinition<?> protected booleanisQualifiable(CodeList list) voidsetConfig(RelationalSchemaConfig config)
-
Constructor Details
-
RelationalSchemaGenerator
public RelationalSchemaGenerator() -
RelationalSchemaGenerator
-
-
Method Details
-
generateSchema
- Throws:
CollectRdbException
-
createCodeListTable
protected CodeTable createCodeListTable(RelationalSchema rs, CodeList codeList, CodeTable parent, Integer hierarchyIdx) throws CollectRdbException - Throws:
CollectRdbException
-
addPKColumn
-
addAncestorKeyColumns
- Throws:
CollectRdbException
-
getKeyAttributeValueFieldDefinition
-
getAncestorKeyColumnName
-
createAncestorKeyRelativePath
-
addPKConstraint
protected void addPKConstraint(org.openforis.collect.relational.model.AbstractTable<?> table, Column<?> pkColumn) -
isQualifiable
-
setConfig
-