com.mysema.query
Class BooleanBuilder

java.lang.Object
  extended by com.mysema.query.types.expr.Expr<D>
      extended by com.mysema.query.types.expr.EComparableBase<D>
          extended by com.mysema.query.types.expr.EComparable<Boolean>
              extended by com.mysema.query.types.expr.EBoolean
                  extended by com.mysema.query.BooleanBuilder
All Implemented Interfaces:
Serializable

public class BooleanBuilder
extends EBoolean

BooleanBuilder is a cascading builder for Boolean expressions.

Version:
$Id$
Author:
tiwe
See Also:
Serialized Form

Constructor Summary
BooleanBuilder()
           
 
Method Summary
 void accept(Visitor v)
           
 BooleanBuilder and(EBoolean right)
          Get an intersection of this and the given expression
 BooleanBuilder andAnyOf(EBoolean... args)
          Create the intersection of this and the union of the given args (this && (arg1 || arg2 ... || argN))
 BooleanBuilder andNot(EBoolean right)
           
 EBoolean getValue()
           
 boolean hasValue()
          Returns true if the value is set, and false, if not
 BooleanBuilder not()
          Get a negation of this boolean expression
 BooleanBuilder or(EBoolean right)
          Get a union of this and the given expression
 BooleanBuilder orAllOf(EBoolean... args)
          Create the union of this and the intersection of the given args (this || (arg1 && arg2 ... && argN))
 BooleanBuilder orNot(EBoolean right)
           
 
Methods inherited from class com.mysema.query.types.expr.EComparable
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.Expr
count, countAll, countDistinct, eq, eq, getType, hashCode, in, in, in, ne, ne, notIn, notIn, notIn, toString, when, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanBuilder

public BooleanBuilder()
Method Detail

and

public BooleanBuilder and(@Nullable
                          EBoolean right)
Description copied from class: EBoolean
Get an intersection of this and the given expression

Overrides:
and in class EBoolean
Parameters:
right - right hand side of the union
Returns:
this && right

andAnyOf

public BooleanBuilder andAnyOf(EBoolean... args)
Create the intersection of this and the union of the given args

(this && (arg1 || arg2 ... || argN))

Parameters:
args -
Returns:

andNot

public BooleanBuilder andNot(EBoolean right)

or

public BooleanBuilder or(@Nullable
                         EBoolean right)
Description copied from class: EBoolean
Get a union of this and the given expression

Overrides:
or in class EBoolean
Parameters:
right - right hand side of the union
Returns:
this || right

orNot

public BooleanBuilder orNot(EBoolean right)

orAllOf

public BooleanBuilder orAllOf(EBoolean... args)
Create the union of this and the intersection of the given args

(this || (arg1 && arg2 ... && argN))

Parameters:
args -
Returns:

not

public BooleanBuilder not()
Description copied from class: EBoolean
Get a negation of this boolean expression

Overrides:
not in class EBoolean
Returns:
!this

hasValue

public boolean hasValue()
Returns true if the value is set, and false, if not

Returns:

getValue

public EBoolean getValue()

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<Boolean>


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.