Class TableInfo.ForeignKeyInfo

  • Enclosing class:
    TableInfo

    public static class TableInfo.ForeignKeyInfo
    extends Object
    Holds information about a foreign key of a table.
    • Field Detail

      • name

        private final String name
      • refName

        private final String refName
      • fkColumns

        private final Set<String> fkColumns
      • refColumns

        private final Set<String> refColumns
    • Constructor Detail

      • ForeignKeyInfo

        public ForeignKeyInfo​(String name,
                              String refName)
        Create a new ForeignKeyInfo object. You should also add column names to the getFkColumns() and getRefColumns() sets.
        Parameters:
        name - The name of the foreign key
        refName - The referenced table