| Modifier and Type | Field and Description |
|---|---|
| private TableName | |
| private ExecPreparedStatement | |
| private SPSDescriptor |
| Access | Constructor and Description |
|---|---|
| pack-priv | ExecSPSNode(TableName
The name of the table to be created newObjectName, ContextManager The context manager cm)Constructor for a ExecSPSNode |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept a visitor on all child nodes. |
| pack-priv int | |
| public void | bindStatement()
Overrides org. Bind this ExecSPSNode. |
| public String | executeSchemaName()
Overrides org. Returns name of schema in EXECUTE STATEMENT command. |
| public String | executeStatementName()
Overrides org. Returns the name of statement in EXECUTE STATEMENT command. |
| public GeneratedClass | Returns: A GeneratedClass for this statement- ignored (he he) ignored)Overrides org. Do code generation for this statement. |
| public Object | Returns: the cursor infoOverrides org. Get information about this cursor. |
| public DataTypeDescriptor[] | Returns: An array of DataTypeDescriptors describing the ? parameters for this statement. It returns null if there are no parameters.Overrides org. Return a description of the ? |
| public String | Returns: the name of the underlying spsOverrides org. Get the name of the SPS that is used to execute this statement. |
| public boolean | Returns: true if the statement is atomicOverrides org. SPSes are atomic if its underlying statement is atomic. |
| public ConstantAction | makeConstantAction()
Overrides org. Create the Constant information that will drive the guts of Execution. |
| public ResultDescription | Returns: the descriptionOverrides org. Make the result description. |
| public boolean | Returns: boolean always true.Overrides org. We need a savepoint if we will do transactional work. |
| pack-priv String | statementToString()
Implements abstract org.
|
| name | back to summary |
|---|---|
| private TableName name | |
| ps | back to summary |
|---|---|
| private ExecPreparedStatement ps | |
| spsd | back to summary |
|---|---|
| private SPSDescriptor spsd | |
| ExecSPSNode | back to summary |
|---|---|
| pack-priv ExecSPSNode(TableName newObjectName, ContextManager cm) Constructor for a ExecSPSNode
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Doc from org. Accept a visitor on all child nodes. All sub-classes that add fields
that should be visited, should override this method and call
| |
| activationKind | back to summary |
|---|---|
| pack-priv int activationKind() Implements abstract org. | |
| bindStatement | back to summary |
|---|---|
| public void bindStatement() throws StandardException Overrides org. Bind this ExecSPSNode. This means doing any static error checking that can be done before actually creating the table. For example, verifying that the ResultColumnList does not contain any duplicate column names.
| |
| executeSchemaName | back to summary |
|---|---|
| public String executeSchemaName() Overrides org. Doc from org. Returns name of schema in EXECUTE STATEMENT command. Returns null for all other commands.
| |
| executeStatementName | back to summary |
|---|---|
| public String executeStatementName() Overrides org. Doc from org. Returns the name of statement in EXECUTE STATEMENT command. Returns null for all other commands.
| |
| generate | back to summary |
|---|---|
| public GeneratedClass generate(ByteArray ignored) throws StandardException Overrides org. Do code generation for this statement. Overrides the normal generation path in StatementNode.
| |
| getCursorInfo | back to summary |
|---|---|
| public Object getCursorInfo() Overrides org. Get information about this cursor. For sps, this is info saved off of the original query tree (the one for the underlying query). | |
| getParameterTypes | back to summary |
|---|---|
| public DataTypeDescriptor[] getParameterTypes() throws StandardException Overrides org. Return a description of the ? parameters for the statement represented by this query tree. Just return the params stored with the prepared statement.
| |
| getSPSName | back to summary |
|---|---|
| public String getSPSName() Overrides org. Get the name of the SPS that is used to execute this statement. Only relevant for an ExecSPSNode -- otherwise, returns null. | |
| isAtomic | back to summary |
|---|---|
| public boolean isAtomic() Overrides org. SPSes are atomic if its underlying statement is atomic.
| |
| makeConstantAction | back to summary |
|---|---|
| public ConstantAction makeConstantAction() Overrides org. Create the Constant information that will drive the guts of Execution. This is assumed to be the first action on this node.
| |
| makeResultDescription | back to summary |
|---|---|
| public ResultDescription makeResultDescription() Overrides org. Make the result description. Really, we are just copying it from the stored prepared statement.
| |
| needsSavepoint | back to summary |
|---|---|
| public boolean needsSavepoint() Overrides org. We need a savepoint if we will do transactional work. We'll ask the underlying statement if it needs a savepoint and pass that back. We have to do this after generation because getting the PS now might cause us to basically do DDL (for a stmt recompilation) which is explicitly banned during binding. So the caller can only call this after generate() has retrieved the target PS.
| |
| statementToString | back to summary |
|---|---|
| pack-priv String statementToString() Implements abstract org. | |