com.mysema.query.types.expr
Class EDateConst<D extends Date>

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>
                          extended by com.mysema.query.types.expr.EDateConst<D>
All Implemented Interfaces:
Constant<D>, Serializable

public final class EDateConst<D extends Date>
extends EDate<D>
implements Constant<D>

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
EDateConst(D date)
           
 
Method Summary
 void accept(Visitor v)
           
static
<D extends Date>
EDate<D>
create(D date)
           
 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)
 boolean equals(Object o)
           
 D getConstant()
          Get the constant
 int hashCode()
           
 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.EDate
as, currentDate, currentDate, max, min
 
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
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.Constant
asExpr
 

Constructor Detail

EDateConst

public EDateConst(D date)
Method Detail

create

public static <D extends Date> EDate<D> create(D date)

accept

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

dayOfMonth

public ENumber<Integer> dayOfMonth()
Description copied from class: EDate
Get a day of month expression (range 1-31)

Overrides:
dayOfMonth in class EDate<D extends Date>
Returns:

month

public ENumber<Integer> month()
Description copied from class: EDate
Get a month expression (range 1-12 / JAN-DEC)

Overrides:
month in class EDate<D extends Date>
Returns:

year

public ENumber<Integer> year()
Description copied from class: EDate
Get a year expression

Overrides:
year in class EDate<D extends Date>
Returns:

yearMonth

public ENumber<Integer> yearMonth()
Description copied from class: EDate
Get a year / month expression

Overrides:
yearMonth in class EDate<D extends Date>
Returns:

dayOfWeek

public ENumber<Integer> dayOfWeek()
Description copied from class: EDate
Get a day of week expression (range 1-7 / SUN-SAT)

NOT supported in JDOQL and not in Derby

Overrides:
dayOfWeek in class EDate<D extends Date>
Returns:

dayOfYear

public ENumber<Integer> dayOfYear()
Description copied from class: EDate
Get a day of year expression (range 1-356)

NOT supported in JDOQL and not in Derby

Overrides:
dayOfYear in class EDate<D extends Date>
Returns:

week

public ENumber<Integer> week()
Description copied from class: EDate
Get a week expression

Overrides:
week in class EDate<D extends Date>
Returns:

getConstant

public D getConstant()
Description copied from interface: Constant
Get the constant

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

equals

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

hashCode

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


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