|
|||||||||
| 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.ExecSPSNode
public class ExecSPSNode
A ExecSPSNode is the root of a QueryTree that represents an EXECUTE STATEMENT statement. It is a tad abnormal. Duringa bind, it locates and retrieves the SPSDescriptor for the particular statement. At generate time, it generates the prepared statement for the stored prepared statement and returns it (i.e. it effectively replaces itself with the appropriate prepared statement).
| Field Summary | |
|---|---|
private TableName |
name
|
private ExecPreparedStatement |
ps
|
private SPSDescriptor |
spsd
|
| 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 | |
|---|---|
ExecSPSNode()
|
|
| Method Summary | |
|---|---|
(package private) int |
activationKind()
|
void |
bindStatement()
Bind this ExecSPSNode. |
java.lang.String |
executeSchemaName()
Returns name of schema in EXECUTE STATEMENT command. |
java.lang.String |
executeStatementName()
Returns the name of statement in EXECUTE STATEMENT command. |
GeneratedClass |
generate(ByteArray ignored)
Do code generation for this statement. |
java.lang.Object |
getCursorInfo()
Get information about this cursor. |
DataTypeDescriptor[] |
getParameterTypes()
Return a description of the ? |
java.lang.String |
getSPSName()
Get the name of the SPS that is used to execute this statement. |
void |
init(java.lang.Object newObjectName)
Initializer for a ExecSPSNode |
boolean |
isAtomic()
SPSes are atomic if its underlying statement is atomic. |
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution. |
ResultDescription |
makeResultDescription()
Make the result description. |
boolean |
needsSavepoint()
We need a savepoint if we will do transactional work. |
java.lang.String |
statementToString()
|
| Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
|---|
lockTableForCompilation, optimizeStatement, toString, updateIndexStatisticsFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private TableName name
private SPSDescriptor spsd
private ExecPreparedStatement ps
| Constructor Detail |
|---|
public ExecSPSNode()
| Method Detail |
|---|
public void init(java.lang.Object newObjectName)
init in interface Nodeinit in class QueryTreeNodenewObjectName - The name of the table to be created
StandardException - Thrown on error
public void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on errorpublic boolean isAtomic()
isAtomic in class StatementNode
public GeneratedClass generate(ByteArray ignored)
throws StandardException
generate in class StatementNodeignored - - ignored (he he)
StandardException - Thrown on errorpublic ResultDescription makeResultDescription()
makeResultDescription in class StatementNodepublic java.lang.Object getCursorInfo()
getCursorInfo in class QueryTreeNode
public DataTypeDescriptor[] getParameterTypes()
throws StandardException
getParameterTypes in class QueryTreeNodeStandardException - on errorpublic ConstantAction makeConstantAction()
makeConstantAction in class QueryTreeNodepublic boolean needsSavepoint()
needsSavepoint in class StatementNodepublic java.lang.String executeStatementName()
StatementNode
executeStatementName in class StatementNodeStatementNode.executeStatementName()public java.lang.String executeSchemaName()
StatementNode
executeSchemaName in class StatementNodeStatementNode.executeSchemaName()public java.lang.String getSPSName()
getSPSName in class StatementNodeint activationKind()
activationKind in class StatementNodepublic java.lang.String statementToString()
statementToString 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 | ||||||||