com.mysema.query.types.expr
Class EComparable<D extends Comparable>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.expr.EComparableBase<D>
              extended by com.mysema.query.types.expr.EComparable<D>
Type Parameters:
D -
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CComparable, Coalesce, ComparableSubQuery, EBoolean, EDateOrTime, EString, OComparable, PComparable

public abstract class EComparable<D extends Comparable>
extends EComparableBase<D>

EComparable extends EComparableBase to provide comparison methods.

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
EComparable(Class<? extends D> type)
           
 
Method Summary
 EBoolean between(D from, D to)
          Get a from < this < to expression
 EBoolean between(Expr<D> from, Expr<D> to)
          Get a first < this < second expression
 EBoolean goe(D right)
          Get a this >= right expression
 EBoolean goe(Expr<D> right)
          Get a this >= right expression
 EBoolean gt(D right)
          Get a this > right expression
 EBoolean gt(Expr<D> right)
          Get a this > right expression
 EBoolean loe(D right)
          Get a this <= right expression
 EBoolean loe(Expr<D> right)
          Get a this < right expression
 EBoolean lt(D right)
          Get a this < right expression
 EBoolean lt(Expr<D> right)
          Get a this < right expression
 EBoolean notBetween(D from, D to)
           
 EBoolean notBetween(Expr<D> from, Expr<D> to)
           
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.ESimple
count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
accept, asExpr, equals, getType, hashCode, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EComparable

public EComparable(Class<? extends D> type)
Method Detail

between

public final EBoolean between(D from,
                              D to)
Get a from < this < to expression

Parameters:
from -
to -
Returns:

between

public final EBoolean between(Expr<D> from,
                              Expr<D> to)
Get a first < this < second expression

Parameters:
from -
to -
Returns:

notBetween

public final EBoolean notBetween(D from,
                                 D to)
Parameters:
from -
to -
Returns:

notBetween

public final EBoolean notBetween(Expr<D> from,
                                 Expr<D> to)
Parameters:
from -
to -
Returns:

gt

public EBoolean gt(D right)
Get a this > right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

gt

public EBoolean gt(Expr<D> right)
Get a this > right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

goe

public EBoolean goe(D right)
Get a this >= right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

goe

public EBoolean goe(Expr<D> right)
Get a this >= right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

lt

public final EBoolean lt(D right)
Get a this < right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

lt

public final EBoolean lt(Expr<D> right)
Get a this < right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

loe

public final EBoolean loe(D right)
Get a this <= right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)

loe

public final EBoolean loe(Expr<D> right)
Get a this < right expression

Parameters:
right - rhs of the comparison
Returns:
See Also:
Comparable.compareTo(Object)


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.