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

public final class ETimeConst<D extends Date>
extends ETime<D>
implements Constant<D>

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
ETimeConst(D time)
           
 
Method Summary
 void accept(Visitor v)
           
static
<D extends Date>
ETime<D>
create(D time)
           
 boolean equals(Object o)
           
 D getConstant()
          Get the constant
 int hashCode()
           
 ENumber<Integer> hour()
          Get a hours expression (range 0-23)
 ENumber<Integer> milliSecond()
          Get a milliseconds expression (range 0-999)
 ENumber<Integer> minute()
          Get a minutes expression (range 0-59)
 ENumber<Integer> second()
          Get a seconds expression (range 0-59)
 
Methods inherited from class com.mysema.query.types.expr.ETime
as, currentTime, currentTime
 
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, in, 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

ETimeConst

public ETimeConst(D time)
Method Detail

create

public static <D extends Date> ETime<D> create(D time)

accept

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

hour

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

Overrides:
hour in class ETime<D extends Date>
Returns:

minute

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

Overrides:
minute in class ETime<D extends Date>
Returns:

second

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

Overrides:
second in class ETime<D extends Date>
Returns:

milliSecond

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

Is always 0 in HQL and JDOQL modules

Overrides:
milliSecond in class ETime<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.