Module org.eclipse.persistence.core
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
INTERNAL
Purpose: Represent an IN in EJBQL
Responsibilities:
- Generate the correct expression for an IN
- Since:
- TopLink 4.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNodeToTheObjects
(Node theNode) INTERNAL Add the passed node value to the collection of object for this nodegenerateExpression
(GenerationContext context) INTERNAL Return the EclipseLink expression for this nodeINTERNAL Return the collection of the objects used as parameters for this nodevoid
INTERNAL Indicate if a NOT was found in the WHERE clause.boolean
void
setIsListParameterOrSubquery
(boolean isListParameterOrSubquery) INTERNAL: This method is called to indicate that the inNode has a single argument.void
setTheObjects
(List<Node> 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
-
Constructor Details
-
InNode
public InNode()InNode constructor comment.
-
-
Method Details
-
addNodeToTheObjects
INTERNAL Add the passed node value to the collection of object for this node -
validate
INTERNAL Validate the current node and calculates its type. -
generateExpression
INTERNAL Return the EclipseLink expression for this node- Overrides:
generateExpression
in classNode
-
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 -
setTheObjects
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()
-