org.datanucleus.jdo.query
Class BooleanExpressionImpl<T>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.ComparableExpressionImpl<java.lang.Boolean>
          extended by org.datanucleus.jdo.query.BooleanExpressionImpl<T>
All Implemented Interfaces:
BooleanExpression, ComparableExpression<java.lang.Boolean>, Expression<java.lang.Boolean>

public class BooleanExpressionImpl<T>
extends ComparableExpressionImpl<java.lang.Boolean>
implements BooleanExpression

Implementation of a BooleanExpression


Constructor Summary
BooleanExpressionImpl(java.lang.Class<java.lang.Boolean> cls, java.lang.String name, ExpressionType type)
           
BooleanExpressionImpl(Expression queryExpr)
           
BooleanExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 BooleanExpression and(BooleanExpression expr)
          Method to return the AND of this expression and the other expression.
 BooleanExpression not()
          Method to negate this expression.
 BooleanExpression or(BooleanExpression expr)
          Method to return the OR of this expression and the other expression.
 
Methods inherited from class org.datanucleus.jdo.query.ComparableExpressionImpl
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

BooleanExpressionImpl

public BooleanExpressionImpl(PersistableExpression parent,
                             java.lang.String name)

BooleanExpressionImpl

public BooleanExpressionImpl(Expression queryExpr)

BooleanExpressionImpl

public BooleanExpressionImpl(java.lang.Class<java.lang.Boolean> cls,
                             java.lang.String name,
                             ExpressionType type)
Method Detail

and

public BooleanExpression and(BooleanExpression expr)
Description copied from interface: BooleanExpression
Method to return the AND of this expression and the other expression.

Specified by:
and in interface BooleanExpression
Parameters:
expr - The other expression
Returns:
The resultant (boolean) expression

not

public BooleanExpression not()
Description copied from interface: BooleanExpression
Method to negate this expression.

Specified by:
not in interface BooleanExpression
Returns:
The negated expression

or

public BooleanExpression or(BooleanExpression expr)
Description copied from interface: BooleanExpression
Method to return the OR of this expression and the other expression.

Specified by:
or in interface BooleanExpression
Parameters:
expr - The other expression
Returns:
The resultant (boolean) expression


Copyright © 2011. All Rights Reserved.