AND logical operator chains multiple criteria together. A valid operand
of an AND operator must be one of: TRUE,
FALSE, and NULL. The AND operator has
a higher precedence than the OR operator.
NULL represents unknown. Therefore, if one operand is NULL
and the other operand is FALSE the result is FALSE,
because one FALSE operand is sufficient for a FALSE
result. If one operand is NULL and the other operand is either
TRUE or NULL, the result is NULL
(unknown).
| TRUE | FALSE | NULL | |
| TRUE | TRUE | FALSE | NULL |
| FALSE | FALSE | FALSE | FALSE |
| NULL | NULL | FALSE | NULL |
BNF: conditional_term ::= conditional_term AND conditional_factor
AndExpression
| Access | Constructor and Description |
|---|---|
| public | AndExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | AndExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe leftStateObject, StateObject StateObject representing the left expressionThe rightStateObject)StateObject representing the right expressionCreates a new |
| public | AndExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe string representation of the left expression to parse and to
convert into a leftJpqlFragment, String StateObjectThe string representation of the right expression to parse and to
convert into a rightJpqlFragment)StateObjectCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public AndExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | getIdentifier()
Implements abstract org. StateObjects.
|
| protected String | getLeftQueryBNFId()
Implements abstract org. |
| protected String | getRightQueryBNFId()
Implements abstract org. |
| public void | setExpression(AndExpression
The expression)parsed object representing a logical
AND expressionKeeps a reference of the |
| AndExpressionStateObject | back to summary |
|---|---|
| public AndExpressionStateObject(StateObject parent) Creates a new
| |
| AndExpressionStateObject | back to summary |
|---|---|
| public AndExpressionStateObject(StateObject parent, StateObject leftStateObject, StateObject rightStateObject) Creates a new
| |
| AndExpressionStateObject | back to summary |
|---|---|
| public AndExpressionStateObject(StateObject parent, String leftJpqlFragment, String rightJpqlFragment) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| getExpression | back to summary |
|---|---|
| public AndExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements abstract org. Doc from org. Returns the identifier joining the two | |
| getLeftQueryBNFId | back to summary |
|---|---|
| protected String getLeftQueryBNFId() Implements abstract org. Doc from org. Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the left side of the expression. | |
| getRightQueryBNFId | back to summary |
|---|---|
| protected String getRightQueryBNFId() Implements abstract org. Doc from org. Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the right side of the expression. | |
| setExpression | back to summary |
|---|---|
| public void setExpression(AndExpression expression) Keeps a reference of the
| |