org.apache.openjpa.persistence.query
Class BinaryExpressionPredicate
java.lang.Object
   org.apache.openjpa.persistence.query.AbstractVisitable
org.apache.openjpa.persistence.query.AbstractVisitable
       org.apache.openjpa.persistence.query.BinaryExpressionPredicate
org.apache.openjpa.persistence.query.BinaryExpressionPredicate
- All Implemented Interfaces: 
- Serializable, Predicate, Visitable
- Direct Known Subclasses: 
- BetweenExpression, EqualExpression, GreaterEqualExpression, GreaterThanExpression, InExpression, LessEqualExpression, LessThanExpression, LikeExpression, MemberOfExpression, NotEqualExpression
-  class BinaryExpressionPredicate 
- extends AbstractVisitable- implements Predicate, Visitable
Binary predicate combines two expressions with an operator.
- Author:
- Pinaki Poddar
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
_e1
protected final Expression _e1
_e2
protected final Expression _e2
_op
protected final BinaryConditionalOperator _op
BinaryExpressionPredicate
BinaryExpressionPredicate(Expression e1,
                          BinaryConditionalOperator op,
                          BinaryConditionalOperator nop,
                          Expression e2)
getOperand
public final Expression getOperand()
- 
 
- 
 
getOperand2
public final Expression getOperand2()
- 
 
- 
 
getOperator
public final BinaryConditionalOperator getOperator()
- 
 
- 
 
and
public Predicate and(Predicate predicate)
- Description copied from interface: Predicate
- Creates an AND of the predicate with the argument.
 
- 
- Specified by:
- andin interface- Predicate
 
- 
- 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
public Predicate or(Predicate predicate)
- Description copied from interface: Predicate
- Creates an OR of the predicate with the argument.
 
- 
- Specified by:
- orin interface- Predicate
 
- 
- 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
public Predicate not()
- Description copied from interface: Predicate
- Creates a negation of the predicate with the argument.
 
- 
- Specified by:
- notin interface- Predicate
 
- 
- Returns:
- the predicate that is the negation of the original simple or
         compound predicate.
 
asExpression
public String asExpression(AliasContext ctx)
- Description copied from interface: Visitable
- Get a JPQL fragment as used in WHERE clause.
 
- 
- Specified by:
- asExpressionin interface- Visitable
- Overrides:
- asExpressionin class- AbstractVisitable
 
- 
 
asExpression
String asExpression(Visitable v,
                    AliasContext ctx)
- 
 
- 
 
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.