Package org.opengis.cite.gpkg10
Class TableDefinition
java.lang.Object
org.opengis.cite.gpkg10.TableDefinition
TableDefinition class.
- Author:
- Luke Lambert
-
Constructor Summary
ConstructorsConstructorDescriptionTableDefinition(String name, Map<String, ColumnDefinition> columns) ConstructorTableDefinition(String name, Map<String, ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys) ConstructorTableDefinition(String name, Map<String, ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys, Set<UniqueDefinition> groupUniques) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcolumns.Getter for the fieldforeignKeys.protected Set<UniqueDefinition>Getter for the fieldgroupUniques.getName()Getter for the fieldname.
-
Constructor Details
-
TableDefinition
Constructor- Parameters:
name- the name of the tablecolumns- the names of the columns that pertain to the table name along with the Column Definition for each column
-
TableDefinition
public TableDefinition(String name, Map<String, ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys) Constructor- Parameters:
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 table
-
TableDefinition
public TableDefinition(String name, Map<String, ColumnDefinition> columns, Set<ForeignKeyDefinition> foreignKeys, Set<UniqueDefinition> groupUniques) Constructor- Parameters:
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)
-
-
Method Details
-
getName
Getter for the field
name.- Returns:
- the table name
-
getColumns
Getter for the field
columns.- Returns:
- the column definitions
-
getForeignKeys
Getter for the field
foreignKeys.- Returns:
- the foreign key definitions
-
getGroupUniques
Getter for the field
groupUniques.- Returns:
- the groupUniques
-