Class SchemaExtractor


  • public class SchemaExtractor
    extends Object
    • Constructor Detail

      • SchemaExtractor

        public SchemaExtractor()
    • Method Detail

      • addUniqueConstraintToColumn

        public static void addUniqueConstraintToColumn​(TableDto tableDto,
                                                       String columnName)
        Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair. Requires the ColumnDTO to be contained in the TableDTO. If the column DTO is not contained, a IllegalArgumentException is thrown.
        Parameters:
        tableDto - the DTO of the table
        columnName - the name of the column to add the unique constraint on