Class InNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.SimpleConditionalExpressionNode
-
- org.eclipse.persistence.internal.jpa.parsing.InNode
-
public class InNode extends SimpleConditionalExpressionNode
INTERNALPurpose: Represent an IN in EJBQL
Responsibilities:
- Generate the correct expression for an IN
- Since:
- TopLink 4.0
- Author:
- Jon Driscoll and Joel Lucuik
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description InNode()
InNode constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNodeToTheObjects(Node theNode)
INTERNAL Add the passed node value to the collection of object for this nodeExpression
generateExpression(GenerationContext context)
INTERNAL Return the EclipseLink expression for this nodeList
getTheObjects()
INTERNAL Return the collection of the objects used as parameters for this nodevoid
indicateNot()
INTERNAL Indicate if a NOT was found in the WHERE clause.boolean
notIndicated()
void
setIsListParameterOrSubquery(boolean isListParameterOrSubquery)
INTERNAL: This method is called to indicate that the inNode has a single argument.void
setTheObjects(List newTheObjects)
INTERNAL Set this node's object collection to the passed valuevoid
validate(ParseTreeContext context)
INTERNAL Validate the current node and calculates its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, 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
-
-
-
-
Method Detail
-
addNodeToTheObjects
public void addNodeToTheObjects(Node theNode)
INTERNAL Add the passed node value to the collection of object for this node
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate the current node and calculates its type.
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Return the EclipseLink expression for this node- Overrides:
generateExpression
in classNode
-
getTheObjects
public List getTheObjects()
INTERNAL Return the collection of the objects used as parameters for this node
-
setIsListParameterOrSubquery
public void setIsListParameterOrSubquery(boolean isListParameterOrSubquery)
INTERNAL: This method is called to indicate that the inNode has a single argument. This will be either a subquery or a single parameter that contains the list of items to test- Parameters:
isListParameterOrSubquery
-
-
setTheObjects
public void setTheObjects(List newTheObjects)
INTERNAL Set this node's object collection to the passed value
-
indicateNot
public void indicateNot()
INTERNAL Indicate if a NOT was found in the WHERE clause. Examples: ...WHERE ... NOT IN(...)
-
notIndicated
public boolean notIndicated()
-
-