org.apache.openjpa.persistence.query
Class GreaterEqualExpression

java.lang.Object
  extended by org.apache.openjpa.persistence.query.GreaterEqualExpression
All Implemented Interfaces:
Serializable, Predicate, Visitable

public class GreaterEqualExpression
extends Object

Denotes e1 >= e2 Expression.

Author:
Pinaki Poddar
See Also:
Serialized Form

Field Summary
protected  Expression _e1
           
protected  Expression _e2
           
protected  BinaryConditionalOperator _op
           
static String CLOSE_BRACE
           
static String COMMA
           
static String EMPTY
           
static String OPEN_BRACE
           
 
Constructor Summary
GreaterEqualExpression(Expression op1, Expression op2)
           
 
Method Summary
 Predicate and(Predicate predicate)
          Creates an AND of the predicate with the argument.
 String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
          Get a JPQL fragment as used in WHERE clause.
 String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the string representation in FROM clause.
 String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the string representation in SELECT projection.
 String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the hint to be used while creating alias.
 Expression getOperand()
           
 Expression getOperand2()
           
 BinaryConditionalOperator getOperator()
           
 Predicate not()
          Creates a negation of the predicate with the argument.
 Predicate or(Predicate predicate)
          Creates an OR of the predicate with the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.persistence.query.Visitable
asJoinable, asProjection, getAliasHint
 

Field Detail

_e1

protected final Expression _e1

_e2

protected final Expression _e2

_op

protected final BinaryConditionalOperator _op

OPEN_BRACE

public static final String OPEN_BRACE
See Also:
Constant Field Values

CLOSE_BRACE

public static final String CLOSE_BRACE
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values
Constructor Detail

GreaterEqualExpression

public GreaterEqualExpression(Expression op1,
                              Expression op2)
Method Detail

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:
and in 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:
or in 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:
not in interface Predicate
Returns:
the predicate that is the negation of the original simple or compound predicate.

asExpression

public String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface: Visitable
Get a JPQL fragment as used in WHERE clause.

Specified by:
asExpression in interface Visitable

asProjection

public String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface: Visitable
Gets the string representation in SELECT projection.

Specified by:
asProjection in interface Visitable

getAliasHint

public String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface: Visitable
Gets the hint to be used while creating alias.

Specified by:
getAliasHint in interface Visitable

asJoinable

public String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface: Visitable
Gets the string representation in FROM clause.

Specified by:
asJoinable in interface Visitable


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