com.mysema.query.types.expr
Class EDate<D extends Comparable>

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.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<D>
Type Parameters:
D -
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CDate, DateSubQuery, EDateConst, EDateTime, ODate, PDate

public abstract class EDate<D extends Comparable>
extends EDateOrTime<D>

EDate represents Date expressions The date representation is compatible with the Gregorian calendar.

Author:
tiwe
See Also:
Gregorian calendar, Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
EDate(Class<? extends D> type)
           
 
Method Summary
static EDate<Date> currentDate()
          Get an expression representing the current date as a EDate instance
static
<T extends Comparable>
EDate<T>
currentDate(Class<T> cl)
          Get an expression representing the current date as a EDate instance
 ENumber<Integer> dayOfMonth()
          Get a day of month expression (range 1-31)
 ENumber<Integer> dayOfWeek()
          Get a day of week expression (range 1-7 / SUN-SAT)
 ENumber<Integer> dayOfYear()
          Get a day of year expression (range 1-356)
 EDate<D> max()
          Get the maximum value of this expression (aggregation)
 EDate<D> min()
          Get the minimum value of this expression (aggregation)
 ENumber<Integer> month()
          Get a month expression (range 1-12 / JAN-DEC)
 ENumber<Integer> week()
          Get a week expression
 ENumber<Integer> year()
          Get a year expression
 ENumber<Integer> yearMonth()
          Get a year / month expression
 
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.ESimple
count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
accept, asExpr, equals, getType, hashCode, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EDate

public EDate(Class<? extends D> type)
Method Detail

currentDate

public static EDate<Date> currentDate()
Get an expression representing the current date as a EDate instance

Returns:

currentDate

public static <T extends Comparable> EDate<T> currentDate(Class<T> cl)
Get an expression representing the current date as a EDate instance

Returns:

dayOfMonth

public ENumber<Integer> dayOfMonth()
Get a day of month expression (range 1-31)

Returns:

dayOfWeek

public ENumber<Integer> dayOfWeek()
Get a day of week expression (range 1-7 / SUN-SAT)

NOT supported in JDOQL and not in Derby

Returns:

dayOfYear

public ENumber<Integer> dayOfYear()
Get a day of year expression (range 1-356)

NOT supported in JDOQL and not in Derby

Returns:

max

public EDate<D> max()
Get the maximum value of this expression (aggregation)

Returns:
max(this)

min

public EDate<D> min()
Get the minimum value of this expression (aggregation)

Returns:
min(this)

month

public ENumber<Integer> month()
Get a month expression (range 1-12 / JAN-DEC)

Returns:

week

public ENumber<Integer> week()
Get a week expression

Returns:

year

public ENumber<Integer> year()
Get a year expression

Returns:

yearMonth

public ENumber<Integer> yearMonth()
Get a year / month expression

Returns:


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