Class CreateDomain


  • public class CreateDomain
    extends SchemaCommand
    This class represents the statement CREATE DOMAIN
    • Method Detail

      • setTypeName

        public void setTypeName​(java.lang.String name)
      • setIfNotExists

        public void setIfNotExists​(boolean ifNotExists)
      • setDataType

        public void setDataType​(TypeInfo dataType)
      • setParentDomain

        public void setParentDomain​(Domain parentDomain)
      • setDefaultExpression

        public void setDefaultExpression​(Expression defaultExpression)
      • setOnUpdateExpression

        public void setOnUpdateExpression​(Expression onUpdateExpression)
      • setComment

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

        public void addConstraintCommand​(AlterDomainAddConstraint command)
        Add a constraint command.
        Parameters:
        command - the command to add
      • update

        public final long update()
        Description copied from class: Prepared
        Execute the statement.
        Overrides:
        update in class Prepared
        Returns:
        the update count