|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.MiscellaneousStatementNode
org.apache.derby.impl.sql.compile.SetRoleNode
public class SetRoleNode
A SetRoleNode is the root of a QueryTree that represents a SET ROLE statement.
| Field Summary | |
|---|---|
private java.lang.String |
name
|
private int |
type
|
| Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
|---|
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION |
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
SetRoleNode()
|
|
| Method Summary | |
|---|---|
(package private) int |
activationKind()
Override: Returns the type of activation this class generates. |
void |
generate(ActivationClassBuilder acb,
MethodBuilder mb)
Override: Generate code, need to push parameters |
private void |
generateParameterValueSet(ActivationClassBuilder acb)
Generate the code to create the ParameterValueSet, if necessary, when constructing the activation. |
void |
init(java.lang.Object roleName,
java.lang.Object type)
Initializer for a SetRoleNode |
boolean |
isAtomic()
Override to allow committing of reading SYSROLES, cf. |
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution. |
java.lang.String |
statementToString()
|
java.lang.String |
toString()
Convert this object to a String. |
| Methods inherited from class org.apache.derby.impl.sql.compile.MiscellaneousStatementNode |
|---|
needsSavepoint |
| Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
|---|
bindStatement, executeSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, optimizeStatement, updateIndexStatisticsFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String name
private int type
| Constructor Detail |
|---|
public SetRoleNode()
| Method Detail |
|---|
public void init(java.lang.Object roleName,
java.lang.Object type)
init in interface Nodeinit in class QueryTreeNoderoleName - The name of the new role, null if NONE specifiedtype - Type of role name could be USER or dynamic parameterpublic java.lang.String toString()
toString in class StatementNodepublic java.lang.String statementToString()
statementToString in class StatementNode
public ConstantAction makeConstantAction()
throws StandardException
makeConstantAction in class QueryTreeNodeStandardException - Thrown on failure
public void generate(ActivationClassBuilder acb,
MethodBuilder mb)
throws StandardException
generate in class MiscellaneousStatementNodeacb - The ActivationClassBuilder for the class being builtmb - the method for the execute() method to be built
StandardException - Thrown on error
private void generateParameterValueSet(ActivationClassBuilder acb)
throws StandardException
acb - The ActivationClassBuilder for the class we're building
StandardException - Thrown on errorint activationKind()
activationKind in class MiscellaneousStatementNodepublic boolean isAtomic()
isAtomic in class StatementNode
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||