Class 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:
    DEFAULT_TABLE
    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
      • DEFAULT_TABLE

        public static final String DEFAULT_TABLE
        The default metadata table name: "GT_PK_METADATA".
        See Also:
        Constant Field Values
    • Constructor Detail

      • MetadataTablePrimaryKeyFinder

        public MetadataTablePrimaryKeyFinder()
    • Method Detail

      • getTableSchema

        public String getTableSchema()
        The schema containing the table schema
      • setTableSchema

        public void setTableSchema​(String tableSchema)
      • getTableName

        public String getTableName()
        The metadata table name, defaults to GT_PK_METADATA if not specified.
        See Also:
        DEFAULT_TABLE
      • setTableName

        public void setTableName​(String tableName)