Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.persistence.query
Interface Predicate

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

    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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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