Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public final Class OrExpression

extends LogicalExpression
Class Inheritance

The OR logical operator chains multiple criteria together. A valid operand of an OR operator must be one of: TRUE, FALSE, and NULL. The OR operator has a lower precedence than the AND operator.
NULL represents unknown. Therefore, if one operand is NULL and the other operand is TRUE the result is TRUE, because one TRUE operand is sufficient for a TRUE result. If one operand is NULL and the other operand is either FALSE or NULL, the result is NULL (unknown).
The following table shows how the OR operator is evaluated based on its two operands:
TRUEFALSENULL
TRUETRUETRUETRUE
FALSETRUEFALSENULL
NULLTRUENULLNULL
BNF: conditional_expression ::= conditional_expression OR conditional_term
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
public
OrExpression(AbstractExpression
The parent of this expression
parent
)

Creates a new OrExpression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
public String
getLeftExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getLeftExpressionQueryBNFId.

Returns the unique identifier of the JPQLQueryBNF for the left expression.
public String
getRightExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getRightExpressionQueryBNFId.

Returns the unique identifier of the JPQLQueryBNF for the right expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.LogicalExpression:
getQueryBNFisParsingCompleteparseIdentifier

Constructor Detail

OrExpressionback to summary
public OrExpression(AbstractExpression parent)

Creates a new OrExpression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
getLeftExpressionQueryBNFIdback to summary
public String getLeftExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getLeftExpressionQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getLeftExpressionQueryBNFId.

Returns the unique identifier of the JPQLQueryBNF for the left expression.

Returns:String

The ID of the BNF used when parsing the expression before the identifier

Annotations
@Override
getRightExpressionQueryBNFIdback to summary
public String getRightExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getRightExpressionQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.CompoundExpression.getRightExpressionQueryBNFId.

Returns the unique identifier of the JPQLQueryBNF for the right expression.

Returns:String

The ID of the BNF used when parsing the expression after the identifier

Annotations
@Override