Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

public final Class UntypedNullConstantNode

extends ConstantNode
Class Inheritance
Imports
java.util.List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.compiler.MethodBuilder, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.types.DataTypeDescriptor, .DataValueDescriptor

An UntypedNullConstantNode represents a SQL NULL before it has been bound. The bind() operation will replace the UntypedNullConstantNodes with typed ConstantNodes.

Field Summary

Inherited from org.apache.derby.impl.sql.compile.ConstantNode:
value

Constructor Summary

AccessConstructor and Description
pack-priv
UntypedNullConstantNode(ContextManager cm)

Constructor for an UntypedNullConstantNode.

Method Summary

Modifier and TypeMethod and Description
pack-priv ValueNode
bindExpression(FromList
The FROM list for the query this expression is in, for binding columns.
fromList
,
SubqueryList
The subquery list being built as we find SubqueryNodes
subqueryList
,
List<AggregateNode>
The aggregate list being built as we find AggregateNodes
aggregates
)

Overrides org.apache.derby.impl.sql.compile.ConstantNode.bindExpression.

Bind this expression.

pack-priv DataValueDescriptor
convertDefaultNode(DataTypeDescriptor
A description of the required data type.
typeDescriptor
)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.convertDefaultNode.

Translate a Default node into a default value, given a type descriptor.

pack-priv void
generateConstant(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built
acb
,
MethodBuilder
The method the expression will go into
mb
)

Implements abstract org.apache.derby.impl.sql.compile.ConstantNode.generateConstant.

Should never be called for UntypedNullConstantNode because we shouldn't make it to generate

Inherited from org.apache.derby.impl.sql.compile.ConstantNode:
constantExpressiongenerateExpressiongetClonegetOrderableVariantTypegetValueisCloneableisConstantExpressionisEquivalentisNullsetValuetoString

Constructor Detail

UntypedNullConstantNodeback to summary
pack-priv UntypedNullConstantNode(ContextManager cm)

Constructor for an UntypedNullConstantNode. Untyped constants contain no state (not too surprising).

Method Detail

bindExpressionback to summary
pack-priv ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates)

Overrides org.apache.derby.impl.sql.compile.ConstantNode.bindExpression.

Doc from org.apache.derby.impl.sql.compile.ConstantNode.bindExpression.

Bind this expression. This means binding the sub-expressions, as well as figuring out what the return type is for this expression. In this case, there are no sub-expressions, and the return type is already known, so this is just a stub.

Parameters
fromList:FromList

The FROM list for the query this expression is in, for binding columns.

subqueryList:SubqueryList

The subquery list being built as we find SubqueryNodes

aggregates:List<AggregateNode>

The aggregate list being built as we find AggregateNodes

Returns:ValueNode

The new top of the expression tree.

Annotations
@Override
See Also
ValueNode#bindExpression(FromList, SubqueryList, List), This does nothing-- the node is actually bound when bindUntypedNullsToResultColumns is called.
convertDefaultNodeback to summary
pack-priv DataValueDescriptor convertDefaultNode(DataTypeDescriptor typeDescriptor) throws StandardException

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.convertDefaultNode.

Translate a Default node into a default value, given a type descriptor.

Parameters
typeDescriptor:DataTypeDescriptor

A description of the required data type.

Annotations
@Override
Exceptions
StandardException:

Doc from org.apache.derby.impl.sql.compile.QueryTreeNode.convertDefaultNode.

Thrown on error

generateConstantback to summary
pack-priv void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb)

Implements abstract org.apache.derby.impl.sql.compile.ConstantNode.generateConstant.

Should never be called for UntypedNullConstantNode because we shouldn't make it to generate

Parameters
acb:ExpressionClassBuilder

The ExpressionClassBuilder for the class being built

mb:MethodBuilder

The method the expression will go into