Class CreateConstant


public class CreateConstant extends SchemaOwnerCommand
This class represents the statement CREATE CONSTANT
  • Field Details

    • constantName

      private String constantName
    • expression

      private Expression expression
    • ifNotExists

      private boolean ifNotExists
  • Constructor Details

  • Method Details

    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • update

      long update(Schema schema)
      Specified by:
      update in class SchemaOwnerCommand
    • setConstantName

      public void setConstantName(String constantName)
    • setExpression

      public void setExpression(Expression expr)
    • 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