public class TableDefinition extends Object
Constructor and Description |
---|
TableDefinition(String name,
Map<String,ColumnDefinition> columns)
Constructor
|
TableDefinition(String name,
Map<String,ColumnDefinition> columns,
Set<ForeignKeyDefinition> foreignKeys)
Constructor
|
TableDefinition(String name,
Map<String,ColumnDefinition> columns,
Set<ForeignKeyDefinition> foreignKeys,
Set<UniqueDefinition> groupUniques)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,ColumnDefinition> |
getColumns() |
Set<ForeignKeyDefinition> |
getForeignKeys() |
protected Set<UniqueDefinition> |
getGroupUniques() |
String |
getName() |
public TableDefinition(String name, Map<String,ColumnDefinition> columns)
name
- the name of the tablecolumns
- the names of the columns that pertain to the table name along
with the Column Definition for each columnpublic TableDefinition(String name, Map<String,ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys)
name
- the name of the tablecolumns
- the names of the columns that pertain to the table name along
with the Column Definition for each columnforeignKeys
- the set of Foreign Key Constraints to the tablepublic TableDefinition(String name, Map<String,ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys, Set<UniqueDefinition> groupUniques)
name
- the name of the tablecolumns
- the names of the columns that pertain to the table name along
with the Column Definition for each columnforeignKeys
- the set of Foreign Key Constraints to the tablegroupUniques
- the set of columns that must be unique (not necessarily unique
individually, but unique as a set)public String getName()
public Map<String,ColumnDefinition> getColumns()
public Set<ForeignKeyDefinition> getForeignKeys()
protected Set<UniqueDefinition> getGroupUniques()
Copyright © 2022 Open Geospatial Consortium. All rights reserved.