Package com.querydsl.core.types.dsl
Class BooleanExpression
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.core.types.dsl.ComparableExpressionBase<T>
com.querydsl.core.types.dsl.ComparableExpression<T>
com.querydsl.core.types.dsl.LiteralExpression<Boolean>
com.querydsl.core.types.dsl.BooleanExpression
- All Implemented Interfaces:
Expression<Boolean>,Predicate,Serializable
- Direct Known Subclasses:
BooleanOperation,BooleanPath,BooleanTemplate
BooleanExpression represents Boolean expressions- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate athis && rightexpressionCreate athis && any(predicates)expressionCreate an alias for the expressionCreate an alias for the expressioncoalesce(Expression<?>... exprs) Create acoalesce(this, exprs...)expressioncoalesce(Expression<Boolean> expr) Create acoalesce(this, expr)expressionCreate acoalesce(this, arg)expressionCreate acoalesce(this, args...)expressionCreate athis == rightexpressionisFalse()Create athis == falseexpressionisTrue()Create athis == trueexpressionnot()Create a!thisexpressionnullif(Expression<Boolean> other) Create anullif(this, other)expressionCreate anullif(this, other)expressionCreate athis || rightexpressionCreate athis or all(predicates)expressionMethods inherited from class com.querydsl.core.types.dsl.LiteralExpression
castToNum, stringValueMethods inherited from class com.querydsl.core.types.dsl.ComparableExpression
between, between, goe, goe, goeAll, goeAll, goeAny, goeAny, gt, gt, gtAll, gtAll, gtAny, gtAny, loe, loe, loeAll, loeAll, loeAny, loeAny, lt, lt, ltAll, ltAll, ltAny, ltAny, max, min, notBetween, notBetweenMethods inherited from class com.querydsl.core.types.dsl.ComparableExpressionBase
asc, descMethods inherited from class com.querydsl.core.types.dsl.SimpleExpression
count, countDistinct, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, when, whenMethods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
accept, getType
-
Constructor Details
-
BooleanExpression
-
-
Method Details
-
as
Description copied from class:SimpleExpressionCreate an alias for the expression- Overrides:
asin classComparableExpression<Boolean>- Returns:
- alias expression
-
as
Description copied from class:SimpleExpressionCreate an alias for the expression- Overrides:
asin classComparableExpression<Boolean>- Returns:
- alias expression
-
and
Create athis && rightexpressionReturns an intersection of this and the given expression
- Parameters:
right- right hand side of the union- Returns:
this && right
-
andAnyOf
Create athis && any(predicates)expressionReturns an intersection of this and the union of the given predicates
- Parameters:
predicates- union of predicates- Returns:
- this && any(predicates)
-
not
Create a!thisexpressionReturns a negation of this boolean expression
-
or
Create athis || rightexpressionReturns a union of this and the given expression
- Parameters:
right- right hand side of the union- Returns:
- this || right
-
orAllOf
Create athis or all(predicates)expressionReturn a union of this and the intersection of the given predicates
- Parameters:
predicates- intersection of predicates- Returns:
- this or all(predicates)
-
isTrue
Create athis == trueexpression- Returns:
- this == true
-
isFalse
Create athis == falseexpression- Returns:
- this == false
-
eq
Description copied from class:SimpleExpressionCreate athis == rightexpressionUse expr.isNull() instead of expr.eq(null)
- Overrides:
eqin classSimpleExpression<Boolean>- Parameters:
right- rhs of the comparison- Returns:
- this == right
-
nullif
Create anullif(this, other)expression- Overrides:
nullifin classComparableExpression<Boolean>- Parameters:
other-- Returns:
- nullif(this, other)
-
nullif
Create anullif(this, other)expression- Overrides:
nullifin classComparableExpression<Boolean>- Parameters:
other-- Returns:
- nullif(this, other)
-
coalesce
Create acoalesce(this, expr)expression- Overrides:
coalescein classComparableExpression<Boolean>- Parameters:
expr- additional argument- Returns:
- coalesce
-
coalesce
Create acoalesce(this, exprs...)expression- Overrides:
coalescein classComparableExpression<Boolean>- Parameters:
exprs- additional arguments- Returns:
- coalesce
-
coalesce
Create acoalesce(this, arg)expression- Overrides:
coalescein classComparableExpression<Boolean>- Parameters:
arg- additional argument- Returns:
- coalesce
-
coalesce
Create acoalesce(this, args...)expression- Overrides:
coalescein classComparableExpression<Boolean>- Parameters:
args- additional arguments- Returns:
- coalesce
-