com.mysema.query.types.expr
Class ETime<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.ETime<D>
Type Parameters:
D -
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CTime, ETimeConst, OTime, PTime, TimeSubQuery

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

ETime represents Time expressions

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
ETime(Class<? extends D> type)
           
 
Method Summary
 ETime<D> as(Path<D> alias)
          Create an alias for the operation
static ETime<Date> currentTime()
          Get an expression representing the current time as a ETime instance
static
<T extends Comparable>
ETime<T>
currentTime(Class<T> cl)
          Get an expression representing the current time as a ETime instance
 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.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
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

ETime

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

as

public ETime<D> as(Path<D> alias)
Description copied from class: ESimple
Create an alias for the operation

Overrides:
as in class EComparable<D extends Comparable>

hour

public ENumber<Integer> hour()
Get a hours expression (range 0-23)

Returns:

minute

public ENumber<Integer> minute()
Get a minutes expression (range 0-59)

Returns:

second

public ENumber<Integer> second()
Get a seconds expression (range 0-59)

Returns:

milliSecond

public ENumber<Integer> milliSecond()
Get a milliseconds expression (range 0-999)

Is always 0 in HQL and JDOQL modules

Returns:

currentTime

public static ETime<Date> currentTime()
Get an expression representing the current time as a ETime instance

Returns:

currentTime

public static <T extends Comparable> ETime<T> currentTime(Class<T> cl)
Get an expression representing the current time as a ETime instance

Returns:


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