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

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.ExprConst<D>
Type Parameters:
D - Java type of constant
All Implemented Interfaces:
Constant<D>, Serializable

public class ExprConst<D>
extends ESimple<D>
implements Constant<D>

ExprConst represents general constant expressions

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Method Summary
 void accept(Visitor v)
           
static
<T> Expr<T>
create(T val)
          Factory method for constants
 EBoolean eq(D s)
          Get a this == right expression
 boolean equals(Object o)
           
 D getConstant()
          Get the embedded constant
 int hashCode()
           
 EBoolean ne(D s)
          Get a this <> right expression
 
Methods inherited from class com.mysema.query.types.expr.ESimple
as, asExpr, count, countDistinct, eq, in, in, in, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
getType, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Constant
asExpr
 

Method Detail

create

public static <T> Expr<T> create(T val)
Factory method for constants

Type Parameters:
D -
Parameters:
val -
Returns:

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<D>

eq

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

Overrides:
eq in class ESimple<D>
Parameters:
s - rhs of the comparison
Returns:

equals

public boolean equals(Object o)
Specified by:
equals in class Expr<D>

getConstant

public D getConstant()
Get the embedded constant

Specified by:
getConstant in interface Constant<D>
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Expr<D>

ne

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

Overrides:
ne in class ESimple<D>
Parameters:
s - rhs of the comparison
Returns:


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