OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlShowRoles.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
4 
5 import org.apache.calcite.sql.SqlKind;
6 import org.apache.calcite.sql.SqlOperator;
7 import org.apache.calcite.sql.SqlSpecialOperator;
8 import org.apache.calcite.sql.parser.SqlParserPos;
9 
10 import java.util.List;
11 
15 public class SqlShowRoles extends SqlCustomDdl {
16  private static final SqlOperator OPERATOR =
17  new SqlSpecialOperator("SHOW_ROLES", SqlKind.OTHER_DDL);
18 
19  @Expose
20  private String userName;
21 
22  @Expose
23  private boolean effective;
24 
25  public SqlShowRoles(
26  final SqlParserPos pos, final String userName, final boolean effective) {
27  super(OPERATOR, pos);
28  this.userName = userName;
29  this.effective = effective;
30  }
31 }
SqlShowRoles(final SqlParserPos pos, final String userName, final boolean effective)