Class AlterDomainAddConstraint


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

      • constraintName

        private java.lang.String constraintName
      • checkExpression

        private Expression checkExpression
      • comment

        private java.lang.String comment
      • checkExisting

        private boolean checkExisting
      • ifNotExists

        private final boolean ifNotExists
    • Constructor Detail

      • AlterDomainAddConstraint

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

      • generateConstraintName

        private java.lang.String generateConstraintName​(Domain domain)
      • 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​(java.lang.String constraintName)
      • getConstraintName

        public java.lang.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​(java.lang.String comment)
      • setCheckExisting

        public void setCheckExisting​(boolean b)