org.datanucleus.jdo.query
Class DateExpressionImpl<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.DateExpressionImpl<T>
All Implemented Interfaces:
ComparableExpression<java.util.Date>, DateExpression<java.util.Date>, Expression<java.util.Date>, TemporalExpression<java.util.Date>

public class DateExpressionImpl<T>
extends ComparableExpressionImpl<java.util.Date>
implements DateExpression<java.util.Date>

Implementation of a Date expression.


Constructor Summary
DateExpressionImpl(java.lang.Class<java.util.Date> cls, java.lang.String name, ExpressionType type)
           
DateExpressionImpl(Expression queryExpr)
           
DateExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
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 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

DateExpressionImpl

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

DateExpressionImpl

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

DateExpressionImpl

public DateExpressionImpl(Expression queryExpr)
Method Detail

getDay

public NumericExpression<java.lang.Integer> getDay()
Description copied from interface: DateExpression
Accessor for the day (of the month) of this date.

Specified by:
getDay in interface DateExpression<java.util.Date>
Returns:
Expression for the day of the month

getMonth

public NumericExpression<java.lang.Integer> getMonth()
Description copied from interface: DateExpression
Accessor for the month of this date.

Specified by:
getMonth in interface DateExpression<java.util.Date>
Returns:
Expression for the month

getYear

public NumericExpression<java.lang.Integer> getYear()
Description copied from interface: DateExpression
Accessor for the year of this date.

Specified by:
getYear in interface DateExpression<java.util.Date>
Returns:
Expression for the year


Copyright © 2011. All Rights Reserved.