org.datanucleus.jdo.query
Class DateTimeExpressionImpl

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.DateTimeExpressionImpl
All Implemented Interfaces:
ComparableExpression<java.util.Date>, DateTimeExpression<java.util.Date>, Expression<java.util.Date>, TemporalExpression<java.util.Date>

public class DateTimeExpressionImpl
extends ComparableExpressionImpl<java.util.Date>
implements DateTimeExpression<java.util.Date>

Implementation of a DateTime expression.


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

DateTimeExpressionImpl

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

DateTimeExpressionImpl

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

DateTimeExpressionImpl

public DateTimeExpressionImpl(Expression queryExpr)
Method Detail

getDay

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

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

getHour

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

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

getMinute

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

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

getMonth

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

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

getSecond

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

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

getYear

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

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


Copyright © 2011. All Rights Reserved.