|
||||||||||
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
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
|
private ResultSetNode |
usingClause
|
private java.lang.String |
usingText
|
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 | |
ExecSPSNode()
|
Method Summary | |
(package private) int |
activationKind()
|
QueryTreeNode |
bind()
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 ? |
(package private) SPSDescriptor |
getSPSDescriptor()
|
java.lang.String |
getSPSName()
Get the name of the SPS that is used to execute this statement. |
(package private) java.lang.String |
getUsingText()
|
void |
init(java.lang.Object newObjectName,
java.lang.Object usingClause,
java.lang.Object usingText)
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. |
private void |
setupParams()
|
java.lang.String |
statementToString()
|
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
lockTableForCompilation, 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
private ResultSetNode usingClause
private java.lang.String usingText
Constructor Detail |
public ExecSPSNode()
Method Detail |
public void init(java.lang.Object newObjectName, java.lang.Object usingClause, java.lang.Object usingText) throws StandardException
init
in class QueryTreeNode
newObjectName
- The name of the table to be createdusingClause
- The using clauseusingText
- The text of the using clause
StandardException
- Thrown on errorpublic QueryTreeNode bind() throws StandardException
bind
in class QueryTreeNode
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 QueryTreeNode
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 QueryTreeNode
public java.lang.String executeStatementName()
QueryTreeNode
executeStatementName
in class QueryTreeNode
QueryTreeNode.executeStatementName()
public java.lang.String executeSchemaName()
QueryTreeNode
executeSchemaName
in class QueryTreeNode
QueryTreeNode.executeSchemaName()
public java.lang.String getSPSName()
getSPSName
in class QueryTreeNode
int activationKind()
activationKind
in class StatementNode
private void setupParams() throws StandardException
StandardException
public java.lang.String statementToString()
statementToString
in class StatementNode
SPSDescriptor getSPSDescriptor()
java.lang.String getUsingText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |