T
- expression typepublic abstract class DateExpression<T extends Comparable> extends TemporalExpression<T>
DateExpression
represents Date expressions
The date representation is compatible with the Gregorian calendar.hashCode, mixin
Constructor and Description |
---|
DateExpression(Expression<T> mixin) |
Modifier and Type | Method and Description |
---|---|
DateExpression<T> |
as(Path<T> alias)
Create an alias for the expression
|
DateExpression<T> |
as(String alias)
Create an alias for the expression
|
static DateExpression<Date> |
currentDate()
Create an expression representing the current date as a
DateExpression instance |
static <T extends Comparable> |
currentDate(Class<T> cl)
Create an expression representing the current date as a
DateExpression instance |
NumberExpression<Integer> |
dayOfMonth()
Create a day of month expression (range 1-31)
|
NumberExpression<Integer> |
dayOfWeek()
Create a day of week expression (range 1-7 / SUN-SAT)
|
NumberExpression<Integer> |
dayOfYear()
Create a day of year expression (range 1-356)
|
DateExpression<T> |
max()
Get the maximum value of this expression (aggregation)
|
DateExpression<T> |
min()
Get the minimum value of this expression (aggregation)
|
NumberExpression<Integer> |
month()
Create a month expression (range 1-12 / JAN-DEC)
|
NumberExpression<Integer> |
week()
Create a week expression
|
NumberExpression<Integer> |
year()
Create a year expression
|
NumberExpression<Integer> |
yearMonth()
Create a year / month expression
|
NumberExpression<Integer> |
yearWeek()
Create a ISO yearweek expression
|
after, after, before, before
castToNum, stringValue
between, between, goe, goe, goeAll, goeAll, goeAny, goeAny, gt, gt, gtAll, gtAll, gtAny, gtAny, loe, loe, loeAll, loeAll, loeAny, loeAny, lt, lt, ltAll, ltAll, ltAny, ltAny, notBetween, notBetween
asc, coalesce, coalesce, desc
count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept
public DateExpression(Expression<T> mixin)
public static DateExpression<Date> currentDate()
DateExpression
instancepublic static <T extends Comparable> DateExpression<T> currentDate(Class<T> cl)
DateExpression
instancecl
- type of expressionpublic DateExpression<T> as(Path<T> alias)
SimpleExpression
as
in class ComparableExpression<T extends Comparable>
public DateExpression<T> as(String alias)
SimpleExpression
as
in class ComparableExpression<T extends Comparable>
public NumberExpression<Integer> dayOfMonth()
public NumberExpression<Integer> dayOfWeek()
NOT supported in JDOQL and not in Derby
public NumberExpression<Integer> dayOfYear()
NOT supported in JDOQL and not in Derby
public DateExpression<T> max()
public DateExpression<T> min()
public NumberExpression<Integer> month()
public NumberExpression<Integer> week()
public NumberExpression<Integer> year()
public NumberExpression<Integer> yearMonth()
public NumberExpression<Integer> yearWeek()
Copyright © 2007–2016 Querydsl. All rights reserved.