The
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).
The following table shows how the AND operator is evaluated based on its two operands:
| | TRUE | FALSE | NULL |
| TRUE | TRUE | FALSE | NULL |
| FALSE | FALSE | FALSE | FALSE |
| NULL | NULL | FALSE | NULL |
BNF: conditional_term ::= conditional_term AND conditional_factor
@see AndExpression
@version 2.4
@since 2.4
@author Pascal Filion
| StateObject leftStateObject = stateObject;
expression.getRightExpression().accept(this);
StateObject rightStateObject = stateObject;
AndExpressionStateObject stateObject = new AndExpressionStateObject(
parent,
leftStateObject,
rightStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| checkBuilder(builder);
StateObject rightStateObject = pop();
StateObject leftStateObject = pop();
StateObject stateObject = new AndExpressionStateObject(
getParent(),
leftStateObject,
rightStateObject
);
|
| StateObject leftStateObject = stateObject;
expression.getRightExpression().accept(this);
StateObject rightStateObject = stateObject;
AndExpressionStateObject stateObject = new AndExpressionStateObject(
parent,
leftStateObject,
rightStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| checkBuilder(builder);
StateObject rightStateObject = pop();
StateObject leftStateObject = pop();
StateObject stateObject = new AndExpressionStateObject(
getParent(),
leftStateObject,
rightStateObject
);
|
| StateObject leftStateObject = stateObject;
expression.getRightExpression().accept(this);
StateObject rightStateObject = stateObject;
AndExpressionStateObject stateObject = new AndExpressionStateObject(
parent,
leftStateObject,
rightStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
Related Classes of org.eclipse.persistence.jpa.jpql.model.query.AndExpressionStateObject
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.