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

pack-priv Class TimestampOperatorNode

extends BinaryOperatorNode
Class Inheritance
Imports
java.sql.Types, java.util.List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.ClassName, .SQLState, org.apache.derby.iapi.services.classfile.VMOpcode, org.apache.derby.iapi.services.compiler.MethodBuilder, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.types.DataTypeDescriptor, .TypeId

The TimestampOperatorNode class implements the timestamp( date, time) function.

Field Summary

Inherited from org.apache.derby.impl.sql.compile.BinaryOperatorNode:
ANDBinaryArgTypesBinaryMethodNamesBinaryOperatorsBinaryResultTypesCONCATENATEDIVIDEEQGEGTK_BASEK_XMLEXISTSK_XMLQUERYkindLEleftInterfaceTypeleftOperandLIKELTmethodNameMINUSNEoperatorORPLUSreceiverresultInterfaceTyperightInterfaceTyperightOperandTIMES

Constructor Summary

AccessConstructor and Description
pack-priv
TimestampOperatorNode(ValueNode
The date
date
,
ValueNode
The time
time
,
ContextManager
The context manager
cm
)

Constructor for a TimestampOperatorNode.

Method Summary

Modifier and TypeMethod and Description
pack-priv ValueNode

Returns:

The new top of the expression tree.
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.BinaryOperatorNode.bindExpression.

Bind this expression.

pack-priv void
generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class we're generating
acb
,
MethodBuilder
The method the code to place the code
mb
)

Overrides org.apache.derby.impl.sql.compile.BinaryOperatorNode.generateExpression.

Do code generation for this binary operator.

Inherited from org.apache.derby.impl.sql.compile.BinaryOperatorNode:
acceptChildrenbindXMLQuerycategorizeconstantExpressiongenSQLJavaSQLTreegetLeftOperandgetOrderableVariantTypegetReceiverInterfaceNamegetRightOperandisConstantExpressionisEquivalentisSameNodeKindpreprocessprintSubNodesremapColumnReferencesToExpressionssetLeftOperandsetLeftRightInterfaceTypesetMethodNamesetOperatorsetRightOperandtoString

Constructor Detail

TimestampOperatorNodeback to summary
pack-priv TimestampOperatorNode(ValueNode date, ValueNode time, ContextManager cm)

Constructor for a TimestampOperatorNode.

Parameters
date:ValueNode

The date

time:ValueNode

The time

cm:ContextManager

The context manager

Method Detail

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

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

Bind this expression. This means binding the sub-expressions, as well as figuring out what the return type is for this expression.

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
Exceptions
StandardException:
Thrown on error
generateExpressionback to summary
pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException

Overrides org.apache.derby.impl.sql.compile.BinaryOperatorNode.generateExpression.

Do code generation for this binary operator.

Parameters
acb:ExpressionClassBuilder

The ExpressionClassBuilder for the class we're generating

mb:MethodBuilder

The method the code to place the code

Annotations
@Override
Exceptions
StandardException:
Thrown on error