|
||||||||||
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.ValueNode
org.apache.derby.impl.sql.compile.SpecialFunctionNode
SpecialFunctionNode handles system SQL functions. A function value is either obtained by a method call off the LanguageConnectionContext or Activation. LanguageConnectionContext functions are state related to the connection. Activation functions are those related to the statement execution. Each SQL function takes no arguments and returns a SQLvalue.
Functions supported:
This node is used rather than some use of MethodCallNode for runtime performance. MethodCallNode does not provide a fast access to the current language connection or activatation, since it is geared towards user defined routines.
Field Summary | |
private java.lang.String |
methodName
Java method name |
private java.lang.String |
methodType
Return type of Java method. |
(package private) java.lang.String |
sqlName
Name of SQL function |
Fields inherited from class org.apache.derby.impl.sql.compile.ValueNode |
clause, dataTypeServices, IN_HAVING_CLAUSE, IN_SELECT_LIST, IN_UNKNOWN_CLAUSE, IN_WHERE_CLAUSE, transformed |
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 | |
SpecialFunctionNode()
|
Method Summary | |
ValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.Vector aggregateVector)
Binding this special function means setting the result DataTypeServices. |
void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
Generate an expression that returns a DataValueDescriptor and calls a method off the language connection or the activation. |
protected int |
getOrderableVariantType()
Return the variant type for the underlying expression. |
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.lang.String sqlName
private java.lang.String methodName
private java.lang.String methodType
Constructor Detail |
public SpecialFunctionNode()
Method Detail |
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.Vector aggregateVector) throws StandardException
bindExpression
in class ValueNode
fromList
- The FROM list for the statement. This parameter
is not used in this case.subqueryList
- The subquery list being built as we find
SubqueryNodes. Not used in this case.aggregateVector
- The aggregate vector being built as we find
AggregateNodes. Not used in this case.
StandardException
- Thrown on errorprotected int getOrderableVariantType()
getOrderableVariantType
in class ValueNode
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
generateExpression
in class ValueNode
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the code to place the code
StandardException
- Thrown on errorpublic java.lang.String toString()
ValueNode
toString
in class ValueNode
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |