|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.parser.AbstractExpression
org.eclipse.persistence.jpa.jpql.parser.CompoundExpression
org.eclipse.persistence.jpa.jpql.parser.LogicalExpression
org.eclipse.persistence.jpa.jpql.parser.OrExpression
public final class OrExpression
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:
TRUE FALSE NULL TRUE TRUE TRUE TRUE FALSE TRUE FALSE NULL NULL TRUE NULL NULL
conditional_expression ::= conditional_expression OR conditional_term
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractExpression |
|---|
COMMA, DOT, DOUBLE_QUOTE, LEFT_CURLY_BRACKET, LEFT_PARENTHESIS, NOT_DEFINED, RIGHT_CURLY_BRACKET, RIGHT_PARENTHESIS, SINGLE_QUOTE, SPACE, UNDERSCORE |
| Constructor Summary | |
|---|---|
OrExpression(AbstractExpression parent)
Creates a new OrExpression. |
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor visitor)
Visits this Expression by the given visitor. |
java.lang.String |
getLeftExpressionQueryBNFId()
Returns the unique identifier of the JPQLQueryBNF for the left expression. |
java.lang.String |
getRightExpressionQueryBNFId()
Returns the unique identifier of the JPQLQueryBNF for the right expression. |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.LogicalExpression |
|---|
getQueryBNF, isParsingComplete, parseIdentifier |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.CompoundExpression |
|---|
acceptChildren, addChildrenTo, addOrderedChildrenTo, findQueryBNF, getActualIdentifier, getIdentifier, getLeftExpression, getRightExpression, hasLeftExpression, hasRightExpression, hasSpaceAfterIdentifier, parse, setLeftExpression, setRightExpression, toParsedText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrExpression(AbstractExpression parent)
OrExpression.
parent - The parent of this expression| Method Detail |
|---|
public void accept(ExpressionVisitor visitor)
Expression by the given visitor.
visitor - The ExpressionVisitor to visit this objectpublic java.lang.String getLeftExpressionQueryBNFId()
JPQLQueryBNF for the left expression.
getLeftExpressionQueryBNFId in class CompoundExpressionpublic java.lang.String getRightExpressionQueryBNFId()
JPQLQueryBNF for the right expression.
getRightExpressionQueryBNFId in class CompoundExpression
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||