public abstract class BooleanExpression extends ComparableExpression<Boolean> implements Predicate
Boolean
expressionsBoolean
,
Serialized Formmixin
Constructor and Description |
---|
BooleanExpression(Expression<Boolean> mixin) |
Modifier and Type | Method and Description |
---|---|
static BooleanExpression |
allOf(BooleanExpression... exprs)
Return the intersection of the given Boolean expressions
|
BooleanExpression |
and(Predicate right)
Get an intersection of this and the given expression
|
BooleanExpression |
andAnyOf(Predicate... predicates)
Get an intersection of this and the union of the given predicates
|
static BooleanExpression |
anyOf(BooleanExpression... exprs)
Return the union of the given Boolean expressions
|
BooleanExpression |
as(Path<Boolean> alias)
Create an alias for the expression
|
BooleanExpression |
as(String alias)
Create an alias for the expression
|
BooleanExpression |
eq(Boolean right)
Get a
this == right expression |
BooleanExpression |
isFalse()
Get a this == false expression
|
BooleanExpression |
isTrue()
Get a this == true expression
|
BooleanExpression |
not()
Get a negation of this boolean expression
|
BooleanExpression |
or(Predicate right)
Get a union of this and the given expression
|
BooleanExpression |
orAllOf(Predicate... predicates)
Get a union of this and the intersection of the given predicates
|
between, between, goe, goe, goeAll, goeAny, gt, gt, gtAll, gtAny, loe, loe, loeAll, loeAny, lt, lt, ltAll, ltAny, notBetween, notBetween
asc, castToNum, coalesce, coalesce, desc, stringValue
count, countDistinct, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, getType
public BooleanExpression(Expression<Boolean> mixin)
@Nullable public static BooleanExpression allOf(BooleanExpression... exprs)
exprs
- @Nullable public static BooleanExpression anyOf(BooleanExpression... exprs)
exprs
- public BooleanExpression as(Path<Boolean> alias)
SimpleExpression
as
in class ComparableExpression<Boolean>
public BooleanExpression as(String alias)
SimpleExpression
as
in class ComparableExpression<Boolean>
public BooleanExpression and(@Nullable Predicate right)
right
- right hand side of the unionpublic BooleanExpression andAnyOf(Predicate... predicates)
predicates
- public BooleanExpression not()
public BooleanExpression or(@Nullable Predicate right)
right
- right hand side of the unionpublic BooleanExpression orAllOf(Predicate... predicates)
predicates
- public BooleanExpression isTrue()
public BooleanExpression isFalse()
public BooleanExpression eq(Boolean right)
SimpleExpression
this == right
expression
Use expr.isNull() instead of expr.eq(null)
eq
in class SimpleExpression<Boolean>
right
- rhs of the comparisonCopyright © 2007-2013 Mysema Ltd. All Rights Reserved.