com.mysema.query.types.expr
Class BooleanExpression
java.lang.Object
com.mysema.query.types.ExpressionBase<D>
com.mysema.query.types.expr.SimpleExpression<D>
com.mysema.query.types.expr.ComparableExpressionBase<D>
com.mysema.query.types.expr.ComparableExpression<Boolean>
com.mysema.query.types.expr.BooleanExpression
- All Implemented Interfaces:
- Expression<Boolean>, Predicate, Serializable
- Direct Known Subclasses:
- BooleanOperation, BooleanPath, BooleanSubQuery, BooleanTemplate, QueryElement
public abstract class BooleanExpression
- extends ComparableExpression<Boolean>
- implements Predicate
BooleanExpression represents boolean expressions
- Author:
- tiwe
- See Also:
Boolean
,
Serialized Form
Methods inherited from class com.mysema.query.types.expr.ComparableExpression |
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween |
Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
count, countDistinct, eq, eq, equals, hashCode, in, in, in, isNotNull, isNull, ne, ne, notIn, notIn, notIn, when, when |
BooleanExpression
public BooleanExpression()
allOf
@Nullable
public static BooleanExpression allOf(BooleanExpression... exprs)
anyOf
@Nullable
public static BooleanExpression anyOf(BooleanExpression... exprs)
as
public BooleanExpression as(Path<Boolean> alias)
- Description copied from class:
SimpleExpression
- Create an alias for the expression
- Overrides:
as
in class ComparableExpression<Boolean>
- Returns:
as
public BooleanExpression as(String alias)
- Description copied from class:
SimpleExpression
- Create an alias for the expression
- Overrides:
as
in class ComparableExpression<Boolean>
- Returns:
and
public BooleanExpression and(@Nullable
Predicate right)
- Get an intersection of this and the given expression
- Parameters:
right
- right hand side of the union
- Returns:
- this && right
not
public BooleanExpression not()
- Get a negation of this boolean expression
- Specified by:
not
in interface Predicate
- Returns:
- !this
or
public BooleanExpression or(@Nullable
Predicate right)
- Get a union of this and the given expression
- Parameters:
right
- right hand side of the union
- Returns:
- this || right
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.