com.mysema.query.types.custom
Class CSimple<T>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<T>
          extended by com.mysema.query.types.custom.CSimple<T>
Type Parameters:
T -
All Implemented Interfaces:
Custom<T>, Serializable

public class CSimple<T>
extends ESimple<T>
implements Custom<T>

CSimple defines custom simple expressions

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
CSimple(Class<? extends T> type, Template template, List<Expr<?>> args)
           
 
Method Summary
 void accept(Visitor v)
           
static
<T> Expr<T>
create(Class<? extends T> type, String template, Expr<?>... args)
           
static
<T> Expr<T>
create(Class<? extends T> type, Template template, Expr<?>... args)
           
 boolean equals(Object o)
           
 Expr<?> getArg(int index)
          Get the argument with the given index
 List<Expr<?>> getArgs()
          Get the arguments of the custom expression
 Template getTemplate()
          Get the serialization template for this custom expression
 int hashCode()
           
 
Methods inherited from class com.mysema.query.types.expr.ESimple
as, count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
asExpr, 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.Custom
asExpr, getType
 

Constructor Detail

CSimple

public CSimple(Class<? extends T> type,
               Template template,
               List<Expr<?>> args)
Method Detail

create

public static <T> Expr<T> create(Class<? extends T> type,
                                 String template,
                                 Expr<?>... args)

create

public static <T> Expr<T> create(Class<? extends T> type,
                                 Template template,
                                 Expr<?>... args)

accept

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

getArg

public Expr<?> getArg(int index)
Description copied from interface: Custom
Get the argument with the given index

Specified by:
getArg in interface Custom<T>
Returns:

getArgs

public List<Expr<?>> getArgs()
Description copied from interface: Custom
Get the arguments of the custom expression

Specified by:
getArgs in interface Custom<T>
Returns:

getTemplate

public Template getTemplate()
Description copied from interface: Custom
Get the serialization template for this custom expression

Specified by:
getTemplate in interface Custom<T>
Returns:

equals

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

hashCode

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


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