com.akiban.sql.parser
Class TablePrivilegesNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.TablePrivilegesNode
All Implemented Interfaces:
Visitable

public class TablePrivilegesNode
extends QueryTreeNode

This class represents a set of privileges on one table.


Field Summary
static int ACTION_COUNT
           
static int DELETE_ACTION
           
static int INSERT_ACTION
           
static int REFERENCES_ACTION
           
static int SELECT_ACTION
           
static int TRIGGER_ACTION
           
static int UPDATE_ACTION
           
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
TablePrivilegesNode()
           
 
Method Summary
 void addAction(int action, ResultColumnList privilegeColumnList)
          Add one action to the privileges for this table
 void addAll()
          Add all actions
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, copyFrom, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, toString, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SELECT_ACTION

public static final int SELECT_ACTION
See Also:
Constant Field Values

DELETE_ACTION

public static final int DELETE_ACTION
See Also:
Constant Field Values

INSERT_ACTION

public static final int INSERT_ACTION
See Also:
Constant Field Values

UPDATE_ACTION

public static final int UPDATE_ACTION
See Also:
Constant Field Values

REFERENCES_ACTION

public static final int REFERENCES_ACTION
See Also:
Constant Field Values

TRIGGER_ACTION

public static final int TRIGGER_ACTION
See Also:
Constant Field Values

ACTION_COUNT

public static final int ACTION_COUNT
See Also:
Constant Field Values
Constructor Detail

TablePrivilegesNode

public TablePrivilegesNode()
Method Detail

addAll

public void addAll()
Add all actions


addAction

public void addAction(int action,
                      ResultColumnList privilegeColumnList)
Add one action to the privileges for this table

Parameters:
action - The action type
privilegeColumnList - The set of privilege columns. Null for all columns
Throws:
StandardException - standard error policy.


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.