Class TableDefinition

java.lang.Object
org.opengis.cite.gpkg10.TableDefinition

public class TableDefinition extends Object

TableDefinition class.

Author:
Luke Lambert
  • Constructor Details

    • TableDefinition

      public TableDefinition(String name, Map<String,ColumnDefinition> columns)
      Constructor
      Parameters:
      name - the name of the table
      columns - 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 table
      columns - the names of the columns that pertain to the table name along with the Column Definition for each column
      foreignKeys - 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 table
      columns - the names of the columns that pertain to the table name along with the Column Definition for each column
      foreignKeys - the set of Foreign Key Constraints to the table
      groupUniques - the set of columns that must be unique (not necessarily unique individually, but unique as a set)
  • Method Details

    • getName

      public String getName()

      Getter for the field name.

      Returns:
      the table name
    • getColumns

      public Map<String,ColumnDefinition> getColumns()

      Getter for the field columns.

      Returns:
      the column definitions
    • getForeignKeys

      public Set<ForeignKeyDefinition> getForeignKeys()

      Getter for the field foreignKeys.

      Returns:
      the foreign key definitions
    • getGroupUniques

      protected Set<UniqueDefinition> getGroupUniques()

      Getter for the field groupUniques.

      Returns:
      the groupUniques