OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlAlterUser.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
5 
6 import org.apache.calcite.sql.SqlDdl;
7 import org.apache.calcite.sql.SqlKind;
8 import org.apache.calcite.sql.SqlNode;
9 import org.apache.calcite.sql.SqlOperator;
10 import org.apache.calcite.sql.SqlSpecialOperator;
11 import org.apache.calcite.sql.parser.SqlParserPos;
12 
13 import java.util.List;
14 import java.util.Map;
15 
19 public class SqlAlterUser extends SqlDdl implements JsonSerializableDdl {
20  private static final SqlOperator OPERATOR =
21  new SqlSpecialOperator("ALTER_USER", SqlKind.OTHER_DDL);
22 
23  @Expose
24  private String command;
25  @Expose
26  private String name;
27  @Expose
29 
30  public SqlAlterUser(
31  final SqlParserPos pos, final String name, OmniSciOptionsMap optionsMap) {
32  super(OPERATOR, pos);
33  this.command = OPERATOR.getName();
34  this.name = name;
35  this.options = optionsMap;
36  }
37 
38  @Override
39  public List<SqlNode> getOperandList() {
40  return null;
41  }
42 
43  @Override
44  public String toString() {
45  return toJsonString();
46  }
47 }
SqlAlterUser(final SqlParserPos pos, final String name, OmniSciOptionsMap optionsMap)