com.akiban.sql.parser
Class PrivilegeNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
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.
|
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 |
USAGE_PRIV
public static final String USAGE_PRIV
- See Also:
- Constant Field Values
PrivilegeNode
public PrivilegeNode()
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., SEQUENCEobjectName - A possibles schema-qualified nameprivilege - A privilege, e.g. USAGE_PRIVrestrict - 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.