Class TemporalLiteralNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.LiteralNode
-
- org.eclipse.persistence.internal.jpa.parsing.TemporalLiteralNode
-
- All Implemented Interfaces:
AliasableNode
public class TemporalLiteralNode extends LiteralNode
INTERNALPurpose: Represent a Date, Time or TimeStamp literal
Responsibilities:
- Generate the correct expression for the temporal expression
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemporalLiteralNode.TemporalType
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.LiteralNode
literal
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description TemporalLiteralNode(String theString, TemporalLiteralNode.TemporalType type)
Return a new StringLiteralNode with the internal string set to the passed valueTemporalLiteralNode(TemporalLiteralNode.TemporalType type)
Return a new StringLiteralNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
generateExpression(GenerationContext context)
INTERNAL Generate the a new EclipseLink ConstantExpression for this node.void
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.LiteralNode
applyToQuery, getAsString, getLiteral, isAliasableNode, isLiteralNode, setLiteral, toString
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, 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
-
-
-
-
Constructor Detail
-
TemporalLiteralNode
public TemporalLiteralNode(TemporalLiteralNode.TemporalType type)
Return a new StringLiteralNode
-
TemporalLiteralNode
public TemporalLiteralNode(String theString, TemporalLiteralNode.TemporalType type)
Return a new StringLiteralNode with the internal string set to the passed value
-
-
Method Detail
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Generate the a new EclipseLink ConstantExpression for this node.- Overrides:
generateExpression
in classLiteralNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
-