|
|||||||||
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 |
---|
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 ? |
private SPSDescriptor |
getSPSDescriptor()
|
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 |
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 class QueryTreeNode
newObjectName
- The name of the table to be created
StandardException
- Thrown on errorpublic void bindStatement() throws StandardException
bindStatement
in class StatementNode
StandardException
- Thrown on errorpublic boolean isAtomic()
isAtomic
in class StatementNode
public GeneratedClass generate(ByteArray ignored) throws StandardException
generate
in class StatementNode
ignored
- - ignored (he he)
StandardException
- Thrown on errorpublic ResultDescription makeResultDescription()
makeResultDescription
in class StatementNode
public java.lang.Object getCursorInfo()
getCursorInfo
in class QueryTreeNode
public DataTypeDescriptor[] getParameterTypes() throws StandardException
getParameterTypes
in class QueryTreeNode
StandardException
- on errorpublic ConstantAction makeConstantAction()
makeConstantAction
in class QueryTreeNode
public boolean needsSavepoint()
needsSavepoint
in class StatementNode
public java.lang.String executeStatementName()
StatementNode
executeStatementName
in class StatementNode
StatementNode.executeStatementName()
public java.lang.String executeSchemaName()
StatementNode
executeSchemaName
in class StatementNode
StatementNode.executeSchemaName()
public java.lang.String getSPSName()
getSPSName
in class StatementNode
int activationKind()
activationKind
in class StatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
private final SPSDescriptor getSPSDescriptor()
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |