Class MetadataTablePrimaryKeyFinder

Object
PrimaryKeyFinder
MetadataTablePrimaryKeyFinder

public class MetadataTablePrimaryKeyFinder extends PrimaryKeyFinder
Looks up primary key information in a metadata table provided by the user.

The table schema will contain:

  • table_schema (varchar): schema name
  • table_name (varchar): table name
  • pk_column (varchar): column name
  • pk_column_idx (integer): column index if pk is multicolumn (nullable)
  • pk_policy (varchar): pk assignment policy: "assigned", "sequence", "autogenerated"
  • pk_sequence (varchar): full name of the sequence to be used to generate the next value, if any
By default the table is named 'GT_PK_METADATA'.
Author:
Andrea Aime - OpenGeo
See Also:
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
    • DEFAULT_TABLE

      public static final String DEFAULT_TABLE
      The default metadata table name: "GT_PK_METADATA".
      See Also:
  • Constructor Details

    • MetadataTablePrimaryKeyFinder

      public MetadataTablePrimaryKeyFinder()
  • Method Details