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

java.lang.Object
  extended by com.mysema.query.types.expr.Expr<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 Expr<D>
implements Constant<D>

ExprConst represents general constant expressions

Author:
tiwe
See Also:
Serialized Form

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.Expr
count, countAll, countDistinct, eq, getType, in, in, in, ne, notIn, notIn, notIn, toString, when, when
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

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

Type Parameters:
D -
Parameters:
val -
Returns:

equals

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

hashCode

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

getConstant

public D getConstant()
Get the embedded constant

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

eq

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

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

ne

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

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

accept

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


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