| Modifier and Type | Field and Description |
|---|---|
| private JavaToSQLValueNode | methodCall
The method call for the Java procedure. |
| Access | Constructor and Description |
|---|---|
| pack-priv | CallStatementNode(JavaToSQLValueNode
The expression to "call" methodCall, ContextManager The context manager cm)Constructor for a CallStatementNode. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept the visitor for all visitable children of this node. |
| public void | bindStatement()
Overrides org. Bind this UpdateNode. |
| private void | |
| pack-priv void | generate(ActivationClassBuilder
The ActivationClassBuilder for the class being built acb, MethodBuilder The method for the execute() method to be built mb)Overrides org. Code generation for CallStatementNode. |
| pack-priv int | getPrivType()
Overrides org. Set default privilege of EXECUTE for this node. |
| private short | Returns: SQL allowed by the procedureThis method checks the SQL allowed by the called procedure. |
| public ResultDescription | makeResultDescription()
Overrides org. Make a ResultDescription for use in a PreparedStatement. |
| public void | optimizeStatement()
Overrides org. Optimize a DML statement (which is the only type of statement that should need optimizing, I think). |
| pack-priv void | printSubNodes(int
The depth of this node in the tree depth)Overrides org. Prints the sub-nodes of this object. |
| pack-priv String | statementToString()
Implements abstract org.
|
| methodCall | back to summary |
|---|---|
| private JavaToSQLValueNode methodCall The method call for the Java procedure. Guaranteed to be a JavaToSQLValueNode wrapping a MethodCallNode by checks in the parser. | |
| CallStatementNode | back to summary |
|---|---|
| pack-priv CallStatementNode(JavaToSQLValueNode methodCall, ContextManager cm) Constructor for a CallStatementNode.
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Accept the visitor for all visitable children of this node.
| |
| bindStatement | back to summary |
|---|---|
| public void bindStatement() throws StandardException Overrides org. Bind this UpdateNode. This means looking up tables and columns and getting their types, and figuring out the result types of all expressions, as well as doing view resolution, permissions checking, etc. Binding an update will also massage the tree so that the ResultSetNode has a single column, the RID.
| |
| checkReliability | back to summary |
|---|---|
| private void checkReliability() throws StandardException This method checks if the called procedure allows modification of SQL
data. If yes, it cannot be compiled if the reliability is
| |
| generate | back to summary |
|---|---|
| pack-priv void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException Overrides org. Code generation for CallStatementNode. The generated code will contain: o A generated void method for the user's method call.
| |
| getPrivType | back to summary |
|---|---|
| pack-priv int getPrivType() Overrides org. Set default privilege of EXECUTE for this node.
| |
| getSQLAllowedInProcedure | back to summary |
|---|---|
| private short getSQLAllowedInProcedure() This method checks the SQL allowed by the called procedure. This method should be called only after the procedure has been resolved.
| |
| makeResultDescription | back to summary |
|---|---|
| public ResultDescription makeResultDescription() Overrides org. Doc from org. Make a ResultDescription for use in a PreparedStatement. ResultDescriptions are visible to JDBC only for cursor statements. For other types of statements, they are only used internally to get descriptions of the base tables being affected. For example, for an INSERT statement, the ResultDescription describes the rows in the table being inserted into, which is useful when the values being inserted are of a different type or length than the columns in the base table.
| |
| optimizeStatement | back to summary |
|---|---|
| public void optimizeStatement() throws StandardException Overrides org. Optimize a DML statement (which is the only type of statement that should need optimizing, I think). This method over-rides the one in QueryTreeNode. This method takes a bound tree, and returns an optimized tree. It annotates the bound tree rather than creating an entirely new tree. Throws an exception if the tree is not bound, or if the binding is out of date.
| |
| printSubNodes | back to summary |
|---|---|
| pack-priv void printSubNodes(int depth) Overrides org. Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
| |
| statementToString | back to summary |
|---|---|
| pack-priv String statementToString() Implements abstract org. | |