com.mysema.query.types.expr
Class EDateTimeConst

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

public class EDateTimeConst
extends EDateTime<Date>
implements Constant<Date>

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
EDateTimeConst(Date date)
           
 
Method Summary
 void accept(Visitor v)
           
static EDateTime<Date> create(Date 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) NOT supported in JDOQL and not in Derby
 ENumber<Integer> dayOfYear()
          Get a day of year expression (range 1-356) NOT supported in JDOQL and not in Derby
 Date getConstant()
           
 ENumber<Integer> hour()
          Get a hours expression (range 0-23)
 ENumber<Integer> milliSecond()
          Get a milliseconds expression (range 0-999) Is always 0 in HQL and JDOQL modules
 ENumber<Integer> minute()
          Get a minutes expression (range 0-59)
 ENumber<Integer> month()
          Get a month expression (range 1-12)
 ENumber<Integer> second()
          Get a seconds expression (range 0-59)
 ENumber<Integer> week()
          Get a week expression NOT supported in JDOQL and not in Derby
 ENumber<Integer> year()
          Get a year expression
 ENumber<Integer> yearMonth()
          Get a year / month expression
 
Methods inherited from class com.mysema.query.types.expr.EDateTime
currentDate, currentDate, currentTimestamp, currentTimestamp
 
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

EDateTimeConst

public EDateTimeConst(Date date)
Method Detail

create

public static EDateTime<Date> create(Date date)

accept

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

dayOfMonth

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

Overrides:
dayOfMonth in class EDateTime<Date>
Returns:

month

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

Overrides:
month in class EDateTime<Date>
Returns:

year

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

Overrides:
year in class EDateTime<Date>
Returns:

yearMonth

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

Overrides:
yearMonth in class EDateTime<Date>
Returns:

dayOfWeek

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

NOT supported in JDOQL and not in Derby

Overrides:
dayOfWeek in class EDateTime<Date>
Returns:

dayOfYear

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

NOT supported in JDOQL and not in Derby

Overrides:
dayOfYear in class EDateTime<Date>
Returns:

week

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

NOT supported in JDOQL and not in Derby

Overrides:
week in class EDateTime<Date>
Returns:

hour

public ENumber<Integer> hour()
Description copied from class: EDateTime
Get a hours expression (range 0-23)

Overrides:
hour in class EDateTime<Date>
Returns:

minute

public ENumber<Integer> minute()
Description copied from class: EDateTime
Get a minutes expression (range 0-59)

Overrides:
minute in class EDateTime<Date>
Returns:

second

public ENumber<Integer> second()
Description copied from class: EDateTime
Get a seconds expression (range 0-59)

Overrides:
second in class EDateTime<Date>
Returns:

milliSecond

public ENumber<Integer> milliSecond()
Description copied from class: EDateTime
Get a milliseconds expression (range 0-999)

Is always 0 in HQL and JDOQL modules

Overrides:
milliSecond in class EDateTime<Date>
Returns:

getConstant

public Date getConstant()
Specified by:
getConstant in interface Constant<Date>
Returns:


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