public class PrivilegeNode extends QueryTreeNode
| Modifier and Type | Class and Description |
|---|---|
static class |
PrivilegeNode.ObjectType |
| Modifier and Type | Field and Description |
|---|---|
static String |
USAGE_PRIV |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
PrivilegeNode() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, treePrintpublic static final String USAGE_PRIV
public void init(Object objectType, Object objectOfPrivilege, Object specificPrivileges) throws StandardException
init in class QueryTreeNodeobjectType - (an Integer)objectOfPrivilege - (a TableName or RoutineDesignator)specificPrivileges - null for routines and usageStandardException - Thrown on errorpublic void init(Object objectType, Object objectName, Object privilege, Object restrict)
init in class QueryTreeNodeobjectType - E.g., SEQUENCEobjectName - A possibles schema-qualified nameprivilege - A privilege, e.g. USAGE_PRIVrestrict - True if this is a REVOKE...RESTRICT actionpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class QueryTreeNodeStandardExceptionCopyright © 2015 FoundationDB, LLC. All rights reserved.