Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.parsing

public Class InNode

extends SimpleConditionalExpressionNode
Class Inheritance
Imports
java.util.*, org.eclipse.persistence.expressions.*, org.eclipse.persistence.queries.ReportQuery, org.eclipse.persistence.exceptions.JPQLException

INTERNAL

Purpose: Represent an IN in EJBQL

Responsibilities:

Author
Jon Driscoll and Joel Lucuik
Since
TopLink 4.0

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private List<Node>

Constructor Summary

AccessConstructor and Description
public
InNode()

InNode constructor comment.

Method Summary

Modifier and TypeMethod and Description
public void
addNodeToTheObjects(Node theNode)

INTERNAL Add the passed node value to the collection of object for this node

public Expression
generateExpression(GenerationContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.generateExpression.

INTERNAL Return the EclipseLink expression for this node
public List<Node>
getTheObjects()

INTERNAL Return the collection of the objects used as parameters for this node

public void
indicateNot()

INTERNAL Indicate if a NOT was found in the WHERE clause.

public boolean
public void
setIsListParameterOrSubquery(boolean isListParameterOrSubquery)

INTERNAL: This method is called to indicate that the inNode has a single argument.

public void
setTheObjects(List<Node> newTheObjects)

INTERNAL Set this node's object collection to the passed value

public void
validate(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.validate.

INTERNAL Validate the current node and calculates its type.

Field Detail

isListParameterOrSubqueryback to summary
private boolean isListParameterOrSubquery
notIndicatedback to summary
private boolean notIndicated
theObjectsback to summary
private List<Node> theObjects

Constructor Detail

InNodeback to summary
public InNode()

InNode constructor comment.

Method Detail

addNodeToTheObjectsback to summary
public void addNodeToTheObjects(Node theNode)

INTERNAL Add the passed node value to the collection of object for this node

generateExpressionback to summary
public Expression generateExpression(GenerationContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.generateExpression.

INTERNAL Return the EclipseLink expression for this node

Annotations
@Override
getTheObjectsback to summary
public List<Node> getTheObjects()

INTERNAL Return the collection of the objects used as parameters for this node

indicateNotback to summary
public void indicateNot()

INTERNAL Indicate if a NOT was found in the WHERE clause. Examples: ...WHERE ... NOT IN(...)

notIndicatedback to summary
public boolean notIndicated()
setIsListParameterOrSubqueryback to summary
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

setTheObjectsback to summary
public void setTheObjects(List<Node> newTheObjects)

INTERNAL Set this node's object collection to the passed value

validateback to summary
public void validate(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.validate.

INTERNAL Validate the current node and calculates its type.

Annotations
@Override