- Type Parameters:
T- entity type.
- All Superinterfaces:
ComparableExpression<T,,Boolean> Expression<T,Boolean>
- All Known Subinterfaces:
BooleanAttribute<T>,BooleanLiteral,BooleanPath<T,U>
An expression that evaluates to a true or false value.
The entity and static metamodel for the code
examples within this class are shown in the Attribute Javadoc.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault Restriction<T> isFalse()Obtains aRestrictionthat requires that this expression evaluate to afalsevalue.default Restriction<T> isTrue()Obtains aRestrictionthat requires that this expression evaluate to atruevalue.type()ReturnsBoolean.classas the type of the boolean expression.Methods inherited from interface jakarta.data.expression.ComparableExpression
between, between, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, lessThan, lessThan, lessThanEqual, lessThanEqual, notBetween, notBetweenMethods inherited from interface jakarta.data.expression.Expression
equalTo, equalTo, in, in, in, isNull, notEqualTo, notEqualTo, notIn, notIn, notIn, notNull, satisfies
-
Method Details
-
isFalse
Obtains a
Restrictionthat requires that this expression evaluate to afalsevalue.Example:
newVehicles = cars.search(make, model, _Car.previouslyOwned.isFalse());- Returns:
- the restriction.
-
isTrue
Obtains a
Restrictionthat requires that this expression evaluate to atruevalue.Example:
usedVehicles = cars.search(make, model, _Car.previouslyOwned.isTrue());- Returns:
- the restriction.
-
type
ReturnsBoolean.classas the type of the boolean expression.- Specified by:
typein interfaceExpression<T,Boolean> - Returns:
Boolean.class.
-