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

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

public interface DateExpression<T>
extends TemporalExpression<T>

Representation of a date in a query.


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

Returns:
Expression for the year

getMonth

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

Returns:
Expression for the month

getDay

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

Returns:
Expression for the day of the month


Copyright © 2011. All Rights Reserved.