Class SqlAlterConnection

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean ifConnectionExists  
      • Fields inherited from class org.apache.calcite.sql.SqlNode

        EMPTY_ARRAY, pos
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlAlterConnection​(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier connectionName, boolean ifConnectionExists)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean ifConnectionExists()
      Whether to ignore the error if the connection doesn't exist.
      void unparseAlterOperation​(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)  
      • Methods inherited from class org.apache.calcite.sql.SqlAlter

        getScope, setScope, unparse
      • Methods inherited from class org.apache.calcite.sql.SqlCall

        accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, isCountStar, isExpanded, operand, operandCount, setOperand, validate
      • Methods inherited from class org.apache.calcite.sql.SqlNode

        clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
    • Field Detail

      • ifConnectionExists

        protected final boolean ifConnectionExists
    • Constructor Detail

      • SqlAlterConnection

        public SqlAlterConnection​(org.apache.calcite.sql.parser.SqlParserPos pos,
                                  org.apache.calcite.sql.SqlIdentifier connectionName,
                                  boolean ifConnectionExists)
    • Method Detail

      • ifConnectionExists

        public boolean ifConnectionExists()
        Whether to ignore the error if the connection doesn't exist.
        Returns:
        true when IF EXISTS is specified.
      • unparseAlterOperation

        public void unparseAlterOperation​(org.apache.calcite.sql.SqlWriter writer,
                                          int leftPrec,
                                          int rightPrec)
        Specified by:
        unparseAlterOperation in class org.apache.calcite.sql.SqlAlter