public class PrivilegeNode extends QueryTreeNode
Modifier and Type | Class and Description |
---|---|
static class |
PrivilegeNode.ObjectType |
Modifier and Type | Field and Description |
---|---|
static java.lang.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(java.lang.Object objectType,
java.lang.Object objectOfPrivilege,
java.lang.Object specificPrivileges)
Initialize a PrivilegeNode for use against SYS.SYSTABLEPERMS and SYS.SYSROUTINEPERMS.
|
void |
init(java.lang.Object objectType,
java.lang.Object objectName,
java.lang.Object privilege,
java.lang.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, treePrint
public static final java.lang.String USAGE_PRIV
public void init(java.lang.Object objectType, java.lang.Object objectOfPrivilege, java.lang.Object specificPrivileges) throws StandardException
init
in class QueryTreeNode
objectType
- (an Integer)objectOfPrivilege
- (a TableName or RoutineDesignator)specificPrivileges
- null for routines and usageStandardException
- Thrown on errorpublic void init(java.lang.Object objectType, java.lang.Object objectName, java.lang.Object privilege, java.lang.Object restrict)
init
in class QueryTreeNode
objectType
- 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 QueryTreeNode
StandardException
Copyright © 2013. All Rights Reserved.