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

public final Class XMLConstantNode

extends ConstantNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.compiler.MethodBuilder, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.types.TypeId

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
generateConstant(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built
acb
,
MethodBuilder
The method the code to place the code
mb
)

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

This generates the proper constant.

pack-priv Object

Returns:

An Object representing the bind time value of this expression tree (null if not a bind time constant).
getConstantValueAsObject
()

Overrides org.apache.derby.impl.sql.compile.ValueNode.getConstantValueAsObject.

Return an Object representing the bind time value of this expression tree.

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

Constructor Detail

XMLConstantNodeback to summary
pack-priv XMLConstantNode(TypeId t, ContextManager cm) throws StandardException

Method Detail

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

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

This generates the proper constant. For an XML value, this constant value is simply the XML string (which is just null because null values are the only types of XML constants we can have).

Parameters
acb:ExpressionClassBuilder

The ExpressionClassBuilder for the class being built

mb:MethodBuilder

The method the code to place the code

Exceptions
StandardException:
Thrown on error
getConstantValueAsObjectback to summary
pack-priv Object getConstantValueAsObject() throws StandardException

Overrides org.apache.derby.impl.sql.compile.ValueNode.getConstantValueAsObject.

Return an Object representing the bind time value of this expression tree. If the expression tree does not evaluate to a constant at bind time then we return null.

Returns:Object

An Object representing the bind time value of this expression tree (null if not a bind time constant).

Annotations
@Override
Exceptions
StandardException:
Thrown on error