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

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<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, CollectionExpressionBase, ComparableExpressionBase, MapExpressionBase, Param, SimpleOperation, SimplePath, SimpleSubQuery, SimpleTemplate

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

SimpleExpression is the base class for Expression implementations.

Author:
tiwe
See Also:
Serialized Form

Field Summary
protected  boolean primitive
           
 
Fields inherited from class com.mysema.query.types.ExpressionBase
type
 
Constructor Summary
SimpleExpression(Class<? extends T> type)
           
 
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
abstract  boolean equals(Object o)
           
 int hashCode()
           
 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 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.ExpressionBase
getType, 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
 

Field Detail

primitive

protected final boolean primitive
Constructor Detail

SimpleExpression

public SimpleExpression(Class<? extends T> type)
Method Detail

isNotNull

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

Returns:

isNull

public BooleanExpression isNull()
Create a this is null expression

Returns:

as

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

Returns:

as

public SimpleExpression<T> as(String alias)
Create an alias for the 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:

equals

public abstract boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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:

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-2011 Mysema Ltd. All Rights Reserved.