Class DropConstraintBuilder

All Implemented Interfaces:
ISqlBuilder, ISqlKeywords

public class DropConstraintBuilder extends AbstractDropSqlBuilder
The Drop Constraint Builder.
  • Constructor Details

    • DropConstraintBuilder

      public DropConstraintBuilder(ISqlDialect dialect, String constraint)
      Instantiates a new drop constraint builder.
      Parameters:
      dialect - the dialect
      constraint - the constraint
  • Method Details

    • fromTable

      public DropConstraintBuilder fromTable(String table)
      Specify the table.
      Parameters:
      table - the table name
      Returns:
      the builder itself
    • getTable

      public String getTable()
      Getter for the table field.
      Returns:
      the table
    • generate

      public String generate()
      Generate.
      Returns:
      the string
    • generateAlter

      protected void generateAlter(StringBuilder sql)
      Generate alter table.
      Parameters:
      sql - the sql
    • generateConstraint

      protected void generateConstraint(StringBuilder sql)
      Generate constraint.
      Parameters:
      sql - the sql
    • getConstraint

      public String getConstraint()
      Getter for constraint.
      Returns:
      the constraint