org.datanucleus.query.typesafe
Interface DateTimeExpression<T>

Type Parameters:
T - Date-time type
All Superinterfaces:
ComparableExpression<java.util.Date>, Expression<java.util.Date>, TemporalExpression<T>
All Known Implementing Classes:
DateTimeExpressionImpl

public interface DateTimeExpression<T>
extends TemporalExpression<T>

Representation of a date-time type in a query.


Method Summary
 NumericExpression<java.lang.Integer> getDay()
          Accessor for the day (of the month) of this date-time.
 NumericExpression<java.lang.Integer> getHour()
          Accessor for the hour of this date-time.
 NumericExpression<java.lang.Integer> getMinute()
          Accessor for the minute of this date-time.
 NumericExpression<java.lang.Integer> getMonth()
          Accessor for the month of this date-time.
 NumericExpression<java.lang.Integer> getSecond()
          Accessor for the second of this date-time.
 NumericExpression<java.lang.Integer> getYear()
          Accessor for the year of this date-time.
 
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
 

Method Detail

getYear

NumericExpression<java.lang.Integer> getYear()
Accessor for the year of this date-time.

Returns:
Expression for the year

getMonth

NumericExpression<java.lang.Integer> getMonth()
Accessor for the month of this date-time.

Returns:
Expression for the month

getDay

NumericExpression<java.lang.Integer> getDay()
Accessor for the day (of the month) of this date-time.

Returns:
Expression for the day of the month

getHour

NumericExpression<java.lang.Integer> getHour()
Accessor for the hour of this date-time.

Returns:
Expression for the hour

getMinute

NumericExpression<java.lang.Integer> getMinute()
Accessor for the minute of this date-time.

Returns:
Expression for the minute

getSecond

NumericExpression<java.lang.Integer> getSecond()
Accessor for the second of this date-time.

Returns:
Expression for the second


Copyright © 2011. All Rights Reserved.