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
 EComparable<D> as(Path<D> alias)
          Create an alias for the operation
 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 in(Interval<D> period)
          Get this in period 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)
          Get a this not between from and to expression
 EBoolean notBetween(Expr<D> from, Expr<D> to)
          Get a this not between from and to expression
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.ESimple
asExpr, count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
accept, 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

as

public EComparable<D> as(Path<D> alias)
Description copied from class: ESimple
Create an alias for the operation

Overrides:
as in class ESimple<D extends Comparable>

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)
Get a this not between from and to expression

Parameters:
from -
to -
Returns:

notBetween

public final EBoolean notBetween(Expr<D> from,
                                 Expr<D> to)
Get a this not between from and to expression

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)

in

public EBoolean in(Interval<D> period)
Get this in period expression

Parameters:
period -
Returns:


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