Class AlterDomainAddConstraint


public class AlterDomainAddConstraint extends AlterDomain
This class represents the statement ALTER DOMAIN ADD CONSTRAINT
  • Field Details

    • constraintName

      private String constraintName
    • checkExpression

      private Expression checkExpression
    • comment

      private String comment
    • checkExisting

      private boolean checkExisting
    • ifNotExists

      private final boolean ifNotExists
  • Constructor Details

    • AlterDomainAddConstraint

      public AlterDomainAddConstraint(SessionLocal session, Schema schema, boolean ifNotExists)
  • Method Details

    • generateConstraintName

      private String generateConstraintName(Domain domain)
    • update

      long update(Schema schema, Domain domain)
      Specified by:
      update in class AlterDomain
    • tryUpdate

      private int tryUpdate(Schema schema, Domain domain)
      Try to execute the statement.
      Parameters:
      schema - the schema
      domain - the domain
      Returns:
      the update count
    • 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
    • setCheckExpression

      public void setCheckExpression(Expression expression)
    • setComment

      public void setComment(String comment)
    • setCheckExisting

      public void setCheckExisting(boolean b)