|
||||||||||
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.SetSchemaNode
A SetSchemaNode is the root of a QueryTree that represents a SET SCHEMA statement. It isn't replicated, but it generates a ConstantAction because it is basically easier than generating the code from scratch.
Field Summary | |
private java.lang.String |
name
|
private int |
type
|
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
SetSchemaNode()
|
Method Summary | |
(package private) int |
activationKind()
Returns the type of activation this class generates. |
void |
generate(ActivationClassBuilder acb,
MethodBuilder mb)
Generate code, need to push parameters |
(package private) void |
generateParameterHolders(ActivationClassBuilder acb)
|
(package private) void |
generateParameterValueSet(ActivationClassBuilder acb)
Generate the code to create the ParameterValueSet, if necessary, when constructing the activation. |
void |
init(java.lang.Object schemaName,
java.lang.Object type)
Initializer for a SetSchemaNode |
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 |
generate, isAtomic, lockTableForCompilation |
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 SetSchemaNode()
Method Detail |
public void init(java.lang.Object schemaName, java.lang.Object type)
init
in class QueryTreeNode
schemaName
- The name of the new schematype
- Type of schema name could be USER or dynamic parameterpublic java.lang.String toString()
toString
in class StatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
public ConstantAction makeConstantAction() throws StandardException
makeConstantAction
in class QueryTreeNode
StandardException
- Thrown on failurepublic void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException
generate
in class MiscellaneousStatementNode
acb
- The ActivationClassBuilder for the class being builtmb
- the method for the execute() method to be built
StandardException
- Thrown on errorvoid generateParameterValueSet(ActivationClassBuilder acb) throws StandardException
acb
- The ActivationClassBuilder for the class we're building
StandardException
void generateParameterHolders(ActivationClassBuilder acb) throws StandardException
StandardException
int activationKind()
activationKind
in class MiscellaneousStatementNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |