com.mysema.query.types.expr
Class TimeExpression<T extends Comparable>

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<T>
      extended by com.mysema.query.types.expr.SimpleExpression<T>
          extended by com.mysema.query.types.expr.ComparableExpressionBase<T>
              extended by com.mysema.query.types.expr.ComparableExpression<T>
                  extended by com.mysema.query.types.expr.TemporalExpression<T>
                      extended by com.mysema.query.types.expr.TimeExpression<T>
Type Parameters:
T - expression type
All Implemented Interfaces:
Expression<T>, Serializable
Direct Known Subclasses:
TimeOperation, TimePath, TimeSubQuery, TimeTemplate

public abstract class TimeExpression<T extends Comparable>
extends TemporalExpression<T>

TimeExpression represents Time expressions

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.SimpleExpression
primitive
 
Fields inherited from class com.mysema.query.types.ExpressionBase
type
 
Constructor Summary
TimeExpression(Class<? extends T> type)
           
 
Method Summary
 TimeExpression<T> as(Path<T> alias)
          Create an alias for the expression
 TimeExpression<T> as(String alias)
          Create an alias for the expression
static TimeExpression<Date> currentTime()
          Get an expression representing the current time as a ETime instance
static
<T extends Comparable>
TimeExpression<T>
currentTime(Class<T> cl)
          Get an expression representing the current time as a ETime instance
 NumberExpression<Integer> hour()
          Get a hours expression (range 0-23)
 NumberExpression<Integer> milliSecond()
          Get a milliseconds expression (range 0-999)
 NumberExpression<Integer> minute()
          Get a minutes expression (range 0-59)
 NumberExpression<Integer> second()
          Get a seconds expression (range 0-59)
 
Methods inherited from class com.mysema.query.types.expr.TemporalExpression
after, after, before, before
 
Methods inherited from class com.mysema.query.types.expr.ComparableExpression
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween
 
Methods inherited from class com.mysema.query.types.expr.ComparableExpressionBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.SimpleExpression
count, countDistinct, eq, eq, equals, hashCode, in, in, in, isNotNull, isNull, ne, ne, notIn, notIn, notIn, when, when
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
accept
 

Constructor Detail

TimeExpression

public TimeExpression(Class<? extends T> type)
Method Detail

as

public TimeExpression<T> as(Path<T> alias)
Description copied from class: SimpleExpression
Create an alias for the expression

Overrides:
as in class ComparableExpression<T extends Comparable>
Returns:

as

public TimeExpression<T> as(String alias)
Description copied from class: SimpleExpression
Create an alias for the expression

Overrides:
as in class ComparableExpression<T extends Comparable>
Returns:

hour

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

Returns:

minute

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

Returns:

second

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

Returns:

milliSecond

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

Is always 0 in HQL and JDOQL modules

Returns:

currentTime

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

Returns:

currentTime

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

Returns:


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