|
||||||||||
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.JavaValueNode
org.apache.derby.impl.sql.compile.MethodCallNode
org.apache.derby.impl.sql.compile.NewInvocationNode
A NewInvocationNode represents a new object() invocation.
Field Summary | |
private boolean |
delimitedIdentifier
|
private boolean |
singleInstantiation
|
Fields inherited from class org.apache.derby.impl.sql.compile.MethodCallNode |
actualMethodReturnType, internalCall, javaClassName, method, methodName, methodParameterTypes, methodParms, routineInfo, signature |
Fields inherited from class org.apache.derby.impl.sql.compile.JavaValueNode |
forCallStatement, jsqlType |
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 | |
NewInvocationNode()
|
Method Summary | |
protected boolean |
assignableTo(java.lang.String toClassName)
Is this class assignable to the specified class? |
JavaValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.Vector aggregateVector)
Bind this expression. |
boolean |
categorize(JBitSet referencedTabs,
boolean simplePredsOnly)
Categorize this predicate. |
protected java.lang.reflect.Member |
findPublicMethod(java.lang.String methodName,
boolean staticMethod)
Is this class have a public method with the specified signiture This is useful for the VTI interface where we want to see if the class has the option static method for returning the ResultSetMetaData. |
void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
Do code generation for this method call |
(package private) void |
getCorrelationTables(JBitSet correlationMap)
Build a JBitSet of all of the tables that we are correlated with. |
java.lang.Class[] |
getMethodParameterClasses()
Get the resolved Classes of our parameters |
void |
init(java.lang.Object javaClassName,
java.lang.Object params,
java.lang.Object delimitedIdentifier)
Initializer for a NewInvocationNode |
(package private) void |
setSingleInstantiation()
Mark this node as only needing to to a single instantiation. |
Methods inherited from class org.apache.derby.impl.sql.compile.MethodCallNode |
accept, addParms, addParms, areParametersQueryInvariant, bindParameters, generateOneParameter, generateParameters, getIsParam, getJavaClassName, getMethodName, getMethodParms, getObjectSignature, getOrderableVariantType, getParameterTypeName, getPrimitiveSignature, getSignature, init, preprocess, printSubNodes, remapColumnReferencesToExpressions, resolveMethodCall, setClause, setNullParameterInfo, someParametersAreNull, throwNoMethodFound, toString |
Methods inherited from class org.apache.derby.impl.sql.compile.JavaValueNode |
castToPrimitive, checkReliability, generate, generateReceiver, generateReceiver, getConstantValueAsObject, getJavaTypeName, getJSQLType, getPrimitiveTypeName, getReceiverExpression, isPrimitiveType, mapToTypeID, markForCallStatement, markReturnValueDiscarded, mustCastToPrimitive, returnValueDiscarded, returnValueToSQLDomain, setJavaTypeName, valueReturnedToSQLDomain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean singleInstantiation
private boolean delimitedIdentifier
Constructor Detail |
public NewInvocationNode()
Method Detail |
public void init(java.lang.Object javaClassName, java.lang.Object params, java.lang.Object delimitedIdentifier) throws StandardException
init
in class QueryTreeNode
javaClassName
- The full package.class name of the class
StandardException
- Thrown on errorvoid setSingleInstantiation()
public java.lang.Class[] getMethodParameterClasses()
public JavaValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.Vector aggregateVector) throws StandardException
bindExpression
in class JavaValueNode
fromList
- The FROM list for the query this
expression is in, for binding columns.subqueryList
- The subquery list being built as we find SubqueryNodesaggregateVector
- The aggregate vector being built as we find AggregateNodes
StandardException
- Thrown on errorValueNode.bindExpression(org.apache.derby.impl.sql.compile.FromList, org.apache.derby.impl.sql.compile.SubqueryList, java.util.Vector)
public boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly) throws StandardException
categorize
in class MethodCallNode
referencedTabs
- JBitSet with bit map of referenced FromTablessimplePredsOnly
- Whether or not to consider method
calls, field references and conditional nodes
when building bit map
StandardException
- Thrown on errorvoid getCorrelationTables(JBitSet correlationMap) throws StandardException
correlationMap
- The JBitSet of the tables that we are correlated with.
StandardException
protected boolean assignableTo(java.lang.String toClassName) throws StandardException
toClassName
- The java class name we want to assign to
StandardException
- Thrown on errorprotected java.lang.reflect.Member findPublicMethod(java.lang.String methodName, boolean staticMethod) throws StandardException
methodName
- The method name we are looking forstaticMethod
- Whether or not the method we are looking for is static
StandardException
- Thrown on errorpublic void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
generateExpression
in class JavaValueNode
acb
- The ExpressionClassBuilder for the class we're generatingmb
- The method the expression will go into
StandardException
- Thrown on error
|
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 |