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