com.mysema.query.types.custom
Class CDate<T extends Comparable<?>>

java.lang.Object
  extended by com.mysema.query.types.expr.Expr<D>
      extended by com.mysema.query.types.expr.EComparableBase<D>
          extended by com.mysema.query.types.expr.EComparable<D>
              extended by com.mysema.query.types.expr.EDateOrTime<D>
                  extended by com.mysema.query.types.expr.EDate<T>
                      extended by com.mysema.query.types.custom.CDate<T>
All Implemented Interfaces:
Custom<T>, Serializable

public class CDate<T extends Comparable<?>>
extends EDate<T>
implements Custom<T>

See Also:
Serialized Form

Constructor Summary
CDate(Class<T> type, Template template, List<Expr<?>> args)
           
 
Method Summary
 void accept(Visitor v)
           
static
<T extends Comparable<?>>
EDate<T>
create(Class<T> type, String template, Expr<?>... args)
           
static
<T extends Comparable<?>>
EDate<T>
create(Class<T> type, Template template, Expr<?>... args)
           
 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
 
Methods inherited from class com.mysema.query.types.expr.EDate
currentDate, currentDate, dayOfMonth, dayOfWeek, dayOfYear, month, week, year, yearMonth
 
Methods inherited from class com.mysema.query.types.expr.EDateOrTime
after, after, before, before
 
Methods inherited from class com.mysema.query.types.expr.EComparable
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.Expr
count, countAll, countDistinct, eq, eq, getType, hashCode, in, in, in, ne, ne, notIn, notIn, notIn, toString, when, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDate

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

create

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

create

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

accept

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

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 extends Comparable<?>>
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 extends Comparable<?>>
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 extends Comparable<?>>
Returns:


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