Class AlterTableAddConstraint


public class AlterTableAddConstraint extends AlterTable
This class represents the statement ALTER TABLE ADD CONSTRAINT
  • Constructor Details

    • AlterTableAddConstraint

      public AlterTableAddConstraint(SessionLocal session, Schema schema, int type, boolean ifNotExists)
  • Method Details

    • update

      public long update(Table table)
    • setDeleteAction

      public void setDeleteAction(ConstraintActionType action)
    • setUpdateAction

      public void setUpdateAction(ConstraintActionType action)
    • setConstraintName

      public void setConstraintName(String constraintName)
    • getConstraintName

      public String getConstraintName()
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type
    • setNullsDistinct

      public void setNullsDistinct(NullsDistinct nullsDistinct)
    • setCheckExpression

      public void setCheckExpression(Expression expression)
    • setIndexColumns

      public void setIndexColumns(IndexColumn[] indexColumns)
    • getIndexColumns

      public IndexColumn[] getIndexColumns()
    • setRefTableName

      public void setRefTableName(Schema refSchema, String ref)
      Set the referenced table.
      Parameters:
      refSchema - the schema
      ref - the table name
    • setRefIndexColumns

      public void setRefIndexColumns(IndexColumn[] indexColumns)
    • setIndex

      public void setIndex(Index index)
    • setRefIndex

      public void setRefIndex(Index refIndex)
    • setComment

      public void setComment(String comment)
    • setCheckExisting

      public void setCheckExisting(boolean b)
    • setPrimaryKeyHash

      public void setPrimaryKeyHash(boolean b)