com.akiban.sql.parser
Class PrivilegeNode

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

public class PrivilegeNode
extends QueryTreeNode

This node represents a set of privileges that are granted or revoked on one object.


Nested Class Summary
static class PrivilegeNode.ObjectType
           
 
Field Summary
static String USAGE_PRIV
           
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
PrivilegeNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 void init(Object objectType, Object objectOfPrivilege, Object specificPrivileges)
          Initialize a PrivilegeNode for use against SYS.SYSTABLEPERMS and SYS.SYSROUTINEPERMS.
 void init(Object objectType, Object objectName, Object privilege, Object restrict)
          Initialize a PrivilegeNode for use against SYS.SYSPERMS.
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, 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

USAGE_PRIV

public static final String USAGE_PRIV
See Also:
Constant Field Values
Constructor Detail

PrivilegeNode

public PrivilegeNode()
Method Detail

init

public void init(Object objectType,
                 Object objectOfPrivilege,
                 Object specificPrivileges)
          throws StandardException
Initialize a PrivilegeNode for use against SYS.SYSTABLEPERMS and SYS.SYSROUTINEPERMS.

Overrides:
init in class QueryTreeNode
Parameters:
objectType - (an Integer)
objectOfPrivilege - (a TableName or RoutineDesignator)
specificPrivileges - null for routines and usage
Throws:
StandardException - Thrown on error

init

public void init(Object objectType,
                 Object objectName,
                 Object privilege,
                 Object restrict)
Initialize a PrivilegeNode for use against SYS.SYSPERMS.

Overrides:
init in class QueryTreeNode
Parameters:
objectType - E.g., SEQUENCE
objectName - A possibles schema-qualified name
privilege - A privilege, e.g. USAGE_PRIV
restrict - True if this is a REVOKE...RESTRICT action

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class QueryTreeNode
Throws:
StandardException


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