Module org.eclipse.persistence.core
Class PlusNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode
org.eclipse.persistence.internal.jpa.parsing.PlusNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Represent a '+' in EJBQL
Responsibilities:
- Generate the correct expression for a '+'
- Since:
- July 2003
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Apply this node to the passed querygenerateExpression(GenerationContext context) INTERNAL Generate the expression.booleanbooleanINTERNAL Is this node a Plus nodevoidvalidate(ParseTreeContext context) INTERNAL Validate node and calculates its type.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, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
Constructor Details
-
PlusNode
public PlusNode()
-
-
Method Details
-
applyToQuery
INTERNAL Apply this node to the passed query- Overrides:
applyToQueryin classNode
-
validate
INTERNAL Validate node and calculates its type.- Overrides:
validatein classBinaryOperatorNode
-
generateExpression
INTERNAL Generate the expression. The steps are: 1. Generate the expression for the left node 2. Add the .plus to the where clause returned from step 1 3. Generate the expression for the right side and use it as the parameter for the .plus() 4. Return the completed where clause to the caller- Overrides:
generateExpressionin classNode
-
isPlusNode
public boolean isPlusNode()Description copied from class:NodeINTERNAL Is this node a Plus node- Overrides:
isPlusNodein classNode
-
isAliasableNode
public boolean isAliasableNode()- Overrides:
isAliasableNodein classNode
-