OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.SqlDropRole Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.SqlDropRole:
+ Collaboration diagram for com.mapd.parser.extension.ddl.SqlDropRole:

Public Member Functions

 SqlDropRole (SqlParserPos pos, String role)
 
List< SqlNode > getOperandList ()
 
String toString ()
 
- Public Member Functions inherited from com.mapd.parser.extension.ddl.JsonSerializableDdl
default String toJsonString ()
 

Private Attributes

String role
 
String command
 

Static Private Attributes

static final SqlOperator OPERATOR
 

Detailed Description

Class that encapsulates all information associated with a DROP ROLE DDL command.

Definition at line 26 of file SqlDropRole.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.SqlDropRole.SqlDropRole ( SqlParserPos  pos,
String  role 
)
inline

Definition at line 35 of file SqlDropRole.java.

References com.mapd.parser.extension.ddl.SqlDropRole.OPERATOR, and com.mapd.parser.extension.ddl.SqlDropRole.role.

35  {
36  super(OPERATOR, pos, false);
37  this.role = role;
38  this.command = OPERATOR.getName();
39  }

Member Function Documentation

List<SqlNode> com.mapd.parser.extension.ddl.SqlDropRole.getOperandList ( )
inline

Definition at line 42 of file SqlDropRole.java.

42  {
43  return null;
44  }
String com.mapd.parser.extension.ddl.SqlDropRole.toString ( )
inline

Definition at line 47 of file SqlDropRole.java.

47  {
48  EscapedStringJsonBuilder jsonBuilder = new EscapedStringJsonBuilder();
49  Map<String, Object> map = jsonBuilder.map();
50  jsonBuilder.put(map, "role", this.role.toString());
51  map.put("command", "DROP_ROLE");
52  Map<String, Object> payload = jsonBuilder.map();
53  payload.put("payload", map);
54  return jsonBuilder.toJsonString(payload);
55  }

Member Data Documentation

String com.mapd.parser.extension.ddl.SqlDropRole.command
private

Definition at line 33 of file SqlDropRole.java.

final SqlOperator com.mapd.parser.extension.ddl.SqlDropRole.OPERATOR
staticprivate
Initial value:
=
new SqlSpecialOperator("DROP_ROLE", SqlKind.OTHER_DDL)

Definition at line 27 of file SqlDropRole.java.

Referenced by com.mapd.parser.extension.ddl.SqlDropRole.SqlDropRole().

String com.mapd.parser.extension.ddl.SqlDropRole.role
private

The documentation for this class was generated from the following file: