Class SqlAlterConnectionRename

  • All Implemented Interfaces:
    Cloneable

    public class SqlAlterConnectionRename
    extends SqlAlterConnection
    ALTER CONNECTION [IF EXISTS] [[catalogName.] dataBasesName.]connectionName RENAME TO newConnectionName.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.sql.SqlIdentifier getNewConnectionName()  
      List<org.apache.calcite.sql.SqlNode> getOperandList()  
      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, 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
    • Constructor Detail

      • SqlAlterConnectionRename

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

      • getNewConnectionName

        public org.apache.calcite.sql.SqlIdentifier getNewConnectionName()
      • getOperandList

        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • unparseAlterOperation

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