com.mysema.query.types.expr
Class ESimple<D>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
Type Parameters:
D -
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CSimple, ECollectionBase, EComparableBase, EConstructor, EMapBase, ExprConst, ObjectSubQuery, OSimple, PArray, PEntity, PSimple, RowNumber

public abstract class ESimple<D>
extends Expr<D>

ESimple is the base class for Expr implementations. It provides default implementations for most of the abstract methods in Expr

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
ESimple(Class<? extends D> type)
           
 
Method Summary
 Expr<D> as(Path<D> alias)
          Create an alias for the operation
 ENumber<Long> count()
          Get the count(this) expression
 ENumber<Long> countDistinct()
          Get the count(distinct this) expression
 EBoolean eq(D right)
          Get a this == right expression
 EBoolean eq(Expr<? super D> right)
          Get a this == right expression
 EBoolean in(Collection<? extends D> right)
          Get a this in right expression
 EBoolean in(D... right)
          Get a this in right expression
 EBoolean in(ECollection<?,? extends D> right)
          Get a this in right expression
 EBoolean ne(D right)
          Get a this <> right expression
 EBoolean ne(Expr<? super D> right)
          Get a this <> right expression
 CaseForEqBuilder<D> when(D other)
          Get a case expression builder
 CaseForEqBuilder<D> when(Expr<? extends D> other)
          Get a case expression builder
 
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

ESimple

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

count

public ENumber<Long> count()
Description copied from class: Expr
Get the count(this) expression

Specified by:
count in class Expr<D>
Returns:
count(this)

countDistinct

public ENumber<Long> countDistinct()
Description copied from class: Expr
Get the count(distinct this) expression

Specified by:
countDistinct in class Expr<D>
Returns:
count(distinct this)

eq

public EBoolean eq(D right)
Description copied from class: Expr
Get a this == right expression

Specified by:
eq in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

eq

public EBoolean eq(Expr<? super D> right)
Description copied from class: Expr
Get a this == right expression

Specified by:
eq in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

in

public EBoolean in(Collection<? extends D> right)
Description copied from class: Expr
Get a this in right expression

Specified by:
in in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

in

public EBoolean in(D... right)
Description copied from class: Expr
Get a this in right expression

Specified by:
in in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

in

public EBoolean in(ECollection<?,? extends D> right)
Description copied from class: Expr
Get a this in right expression

Specified by:
in in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

ne

public EBoolean ne(D right)
Description copied from class: Expr
Get a this <> right expression

Specified by:
ne in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

ne

public EBoolean ne(Expr<? super D> right)
Description copied from class: Expr
Get a this <> right expression

Specified by:
ne in class Expr<D>
Parameters:
right - rhs of the comparison
Returns:

when

public CaseForEqBuilder<D> when(D other)
Get a case expression builder

Parameters:
other -
Returns:

when

public CaseForEqBuilder<D> when(Expr<? extends D> other)
Get a case expression builder

Parameters:
other -
Returns:

as

public Expr<D> as(Path<D> alias)
Create an alias for the operation

Returns:


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