org.datanucleus.jdo.query
Class TimeExpressionImpl<T>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.ComparableExpressionImpl<java.util.Date>
          extended by org.datanucleus.jdo.query.TimeExpressionImpl<T>
All Implemented Interfaces:
ComparableExpression<java.util.Date>, Expression<java.util.Date>, TemporalExpression<java.util.Date>, TimeExpression<java.util.Date>

public class TimeExpressionImpl<T>
extends ComparableExpressionImpl<java.util.Date>
implements TimeExpression<java.util.Date>

Implementation of a Time expression.


Constructor Summary
TimeExpressionImpl(java.lang.Class<java.util.Date> cls, java.lang.String name, ExpressionType type)
           
TimeExpressionImpl(Expression queryExpr)
           
TimeExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 NumericExpression<java.lang.Integer> getHour()
          Accessor for the hour of this time.
 NumericExpression<java.lang.Integer> getMinute()
          Accessor for the minute of this time.
 NumericExpression<java.lang.Integer> getSecond()
          Accessor for the second of this time.
 
Methods inherited from class org.datanucleus.jdo.query.ComparableExpressionImpl
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

TimeExpressionImpl

public TimeExpressionImpl(PersistableExpression parent,
                          java.lang.String name)

TimeExpressionImpl

public TimeExpressionImpl(java.lang.Class<java.util.Date> cls,
                          java.lang.String name,
                          ExpressionType type)

TimeExpressionImpl

public TimeExpressionImpl(Expression queryExpr)
Method Detail

getHour

public NumericExpression<java.lang.Integer> getHour()
Description copied from interface: TimeExpression
Accessor for the hour of this time.

Specified by:
getHour in interface TimeExpression<java.util.Date>
Returns:
Expression for the hour

getMinute

public NumericExpression<java.lang.Integer> getMinute()
Description copied from interface: TimeExpression
Accessor for the minute of this time.

Specified by:
getMinute in interface TimeExpression<java.util.Date>
Returns:
Expression for the minute

getSecond

public NumericExpression<java.lang.Integer> getSecond()
Description copied from interface: TimeExpression
Accessor for the second of this time.

Specified by:
getSecond in interface TimeExpression<java.util.Date>
Returns:
Expression for the second


Copyright © 2011. All Rights Reserved.