Class DateFunctionNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
-
- org.eclipse.persistence.internal.jpa.parsing.DateFunctionNode
-
- All Implemented Interfaces:
AliasableNode
public class DateFunctionNode extends FunctionalExpressionNode
INTERNALPurpose: Represent a date function: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP.
Responsibilities:
- Generate the correct expression for the date function
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description DateFunctionNode()
DateFunctionNode constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed queryExpression
generateExpression(GenerationContext context)
INTERNAL Generate the EclipseLink expression for this nodevoid
useCurrentDate()
void
useCurrentTime()
void
useCurrentTimestamp()
void
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
isAliasableNode
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
-
-
-
Method Detail
-
applyToQuery
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query- Overrides:
applyToQuery
in classFunctionalExpressionNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Generate the EclipseLink expression for this node- Overrides:
generateExpression
in classNode
-
useCurrentDate
public void useCurrentDate()
-
useCurrentTime
public void useCurrentTime()
-
useCurrentTimestamp
public void useCurrentTimestamp()
-
-