com.mysema.query.types.expr
Class BooleanExpression

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<D>
      extended by com.mysema.query.types.expr.SimpleExpression<D>
          extended by com.mysema.query.types.expr.ComparableExpressionBase<D>
              extended by com.mysema.query.types.expr.ComparableExpression<Boolean>
                  extended by 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

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.SimpleExpression
primitive
 
Fields inherited from class com.mysema.query.types.ExpressionBase
type
 
Constructor Summary
BooleanExpression()
           
 
Method Summary
static BooleanExpression allOf(BooleanExpression... exprs)
           
 BooleanExpression and(Predicate right)
          Get an intersection of this and the given expression
static BooleanExpression anyOf(BooleanExpression... exprs)
           
 BooleanExpression as(Path<Boolean> alias)
          Create an alias for the expression
 BooleanExpression as(String alias)
          Create an alias for the expression
 BooleanExpression not()
          Get a negation of this boolean expression
 BooleanExpression or(Predicate right)
          Get a union of this and the given expression
 
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.ComparableExpressionBase
asc, castToNum, desc, stringValue
 
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
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
accept, getType
 

Constructor Detail

BooleanExpression

public BooleanExpression()
Method Detail

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.