org.apache.openjpa.persistence.query
Interface Predicate

All Known Implementing Classes:
AndPredicate, BetweenExpression, EqualExpression, ExistsExpression, GreaterEqualExpression, GreaterThanExpression, InExpression, IsEmptyExpression, IsNullExpression, LessEqualExpression, LessThanExpression, LikeExpression, LogicalPredicate, MemberOfExpression, NotEqualExpression, OrPredicate

public interface Predicate

Interface used to define compound predicates.


Method Summary
 Predicate and(Predicate predicate)
          Creates an AND of the predicate with the argument.
 Predicate not()
          Creates a negation of the predicate with the argument.
 Predicate or(Predicate predicate)
          Creates an OR of the predicate with the argument.
 

Method Detail

and

Predicate and(Predicate predicate)
Creates an AND of the predicate with the argument.

Parameters:
predicate - - A simple or compound predicate
Returns:
the predicate that is the AND of the original simple or compound predicate and the argument.

or

Predicate or(Predicate predicate)
Creates an OR of the predicate with the argument.

Parameters:
predicate - - A simple or compound predicate
Returns:
the predicate that is the OR of the original simple or compound predicate and the argument.

not

Predicate not()
Creates a negation of the predicate with the argument.

Returns:
the predicate that is the negation of the original simple or compound predicate.


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.