Class CreateDomain


public class CreateDomain extends SchemaOwnerCommand
This class represents the statement CREATE DOMAIN
  • Field Details

  • Constructor Details

  • Method Details

    • setTypeName

      public void setTypeName(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(String comment)
    • update

      long update(Schema schema)
      Specified by:
      update in class SchemaOwnerCommand
    • 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