com.mysema.query.types.expr
Class SimpleExpression<T>

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<T>
      extended by com.mysema.query.types.expr.SimpleExpression<T>
Type Parameters:
T - expression type
All Implemented Interfaces:
Expression<T>, Serializable
Direct Known Subclasses:
ArrayPath, BeanPath, ComparableExpressionBase, Param, RelationalFunctionCall, SimpleOperation, SimplePath, SimpleTemplate

public abstract class SimpleExpression<T>
extends DslExpression<T>

SimpleExpression is the base class for Expression implementations.

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.DslExpression
mixin
 
Constructor Summary
SimpleExpression(Expression<T> mixin)
           
 
Method Summary
 SimpleExpression<T> as(Path<T> alias)
          Create an alias for the expression
 SimpleExpression<T> as(String alias)
          Create an alias for the expression
 NumberExpression<Long> count()
          Get the count(this) expression
 NumberExpression<Long> countDistinct()
          Get the count(distinct this) expression
 BooleanExpression eq(Expression<? super T> right)
          Get a this == right expression
 BooleanExpression eq(T right)
          Get a this == right expression
 BooleanExpression eqAll(CollectionExpression<?,? super T> right)
           
 BooleanExpression eqAny(CollectionExpression<?,? super T> right)
           
 BooleanExpression in(Collection<? extends T> right)
          Get a this in right expression
 BooleanExpression in(CollectionExpression<?,? extends T> right)
          Get a this in right expression
 BooleanExpression in(T... right)
          Get a this in right expression
 BooleanExpression isNotNull()
          Create a this is not null expression
 BooleanExpression isNull()
          Create a this is null expression
 BooleanExpression ne(Expression<? super T> right)
          Get a this <> right expression
 BooleanExpression ne(T right)
          Get a this <> right expression
 BooleanExpression neAll(CollectionExpression<?,? super T> right)
           
 BooleanExpression neAny(CollectionExpression<?,? super T> right)
           
 BooleanExpression notIn(Collection<? extends T> right)
          Get a this not in right expression
 BooleanExpression notIn(CollectionExpression<?,? extends T> right)
          Get a this not in right expression
 BooleanExpression notIn(T... right)
          Get a this not in right expression
 CaseForEqBuilder<T> when(Expression<? extends T> other)
          Get a case expression builder
 CaseForEqBuilder<T> when(T other)
          Get a case expression builder
 
Methods inherited from class com.mysema.query.types.expr.DslExpression
equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
accept
 

Constructor Detail

SimpleExpression

public SimpleExpression(Expression<T> mixin)
Method Detail

as

public SimpleExpression<T> as(Path<T> alias)
Create an alias for the expression

Overrides:
as in class DslExpression<T>
Returns:

as

public SimpleExpression<T> as(String alias)
Create an alias for the expression

Overrides:
as in class DslExpression<T>
Returns:

isNotNull

public BooleanExpression isNotNull()
Create a this is not null expression

Returns:

isNull

public BooleanExpression isNull()
Create a this is null expression

Returns:

count

public NumberExpression<Long> count()
Get the count(this) expression

Returns:
count(this)

countDistinct

public NumberExpression<Long> countDistinct()
Get the count(distinct this) expression

Returns:
count(distinct this)

eq

public BooleanExpression eq(T right)
Get a this == right expression

Parameters:
right - rhs of the comparison
Returns:

eq

public BooleanExpression eq(Expression<? super T> right)
Get a this == right expression

Parameters:
right - rhs of the comparison
Returns:

eqAll

public BooleanExpression eqAll(CollectionExpression<?,? super T> right)
Parameters:
right -
Returns:

eqAny

public BooleanExpression eqAny(CollectionExpression<?,? super T> right)
Parameters:
right -
Returns:

in

public BooleanExpression in(Collection<? extends T> right)
Get a this in right expression

Parameters:
right - rhs of the comparison
Returns:

in

public BooleanExpression in(T... right)
Get a this in right expression

Parameters:
right - rhs of the comparison
Returns:

in

public BooleanExpression in(CollectionExpression<?,? extends T> right)
Get a this in right expression

Parameters:
right - rhs of the comparison
Returns:

ne

public BooleanExpression ne(T right)
Get a this <> right expression

Parameters:
right - rhs of the comparison
Returns:

ne

public BooleanExpression ne(Expression<? super T> right)
Get a this <> right expression

Parameters:
right - rhs of the comparison
Returns:

neAll

public BooleanExpression neAll(CollectionExpression<?,? super T> right)
Parameters:
right -
Returns:

neAny

public BooleanExpression neAny(CollectionExpression<?,? super T> right)
Parameters:
right -
Returns:

notIn

public BooleanExpression notIn(Collection<? extends T> right)
Get a this not in right expression

Parameters:
right - rhs of the comparison
Returns:

notIn

public BooleanExpression notIn(T... right)
Get a this not in right expression

Parameters:
right - rhs of the comparison
Returns:

notIn

public final BooleanExpression notIn(CollectionExpression<?,? extends T> right)
Get a this not in right expression

Parameters:
right - rhs of the comparison
Returns:

when

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

Parameters:
other -
Returns:

when

public CaseForEqBuilder<T> when(Expression<? extends T> other)
Get a case expression builder

Parameters:
other -
Returns:


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