T
- expression typepublic abstract class DateExpression<T extends java.lang.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(java.lang.String alias)
Create an alias for the expression
|
DateExpression<T> |
coalesce(Expression<?>... exprs)
Create a
coalesce(this, exprs...) expression |
DateExpression<T> |
coalesce(Expression<T> expr)
Create a
coalesce(this, expr) expression |
DateExpression<T> |
coalesce(T... args)
Create a
coalesce(this, args...) expression |
DateExpression<T> |
coalesce(T arg)
Create a
coalesce(this, arg) expression |
static DateExpression<java.util.Date> |
currentDate()
Create an expression representing the current date as a
DateExpression instance |
static <T extends java.lang.Comparable> |
currentDate(java.lang.Class<T> cl)
Create an expression representing the current date as a
DateExpression instance |
NumberExpression<java.lang.Integer> |
dayOfMonth()
Create a day of month expression (range 1-31)
|
NumberExpression<java.lang.Integer> |
dayOfWeek()
Create a day of week expression (range 1-7 / SUN-SAT)
|
NumberExpression<java.lang.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<java.lang.Integer> |
month()
Create a month expression (range 1-12 / JAN-DEC)
|
DateExpression<T> |
nullif(Expression<T> other)
Create a
nullif(this, other) expression |
DateExpression<T> |
nullif(T other)
Create a
nullif(this, other) expression |
NumberExpression<java.lang.Integer> |
week()
Create a week expression
|
NumberExpression<java.lang.Integer> |
year()
Create a year expression
|
NumberExpression<java.lang.Integer> |
yearMonth()
Create a year / month expression
|
NumberExpression<java.lang.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, 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, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept
public DateExpression(Expression<T> mixin)
public static DateExpression<java.util.Date> currentDate()
DateExpression
instancepublic static <T extends java.lang.Comparable> DateExpression<T> currentDate(java.lang.Class<T> cl)
DateExpression
instancecl
- type of expressionpublic DateExpression<T> as(Path<T> alias)
SimpleExpression
as
in class ComparableExpression<T extends java.lang.Comparable>
public DateExpression<T> as(java.lang.String alias)
SimpleExpression
as
in class ComparableExpression<T extends java.lang.Comparable>
public NumberExpression<java.lang.Integer> dayOfMonth()
public NumberExpression<java.lang.Integer> dayOfWeek()
NOT supported in JDOQL and not in Derby
public NumberExpression<java.lang.Integer> dayOfYear()
NOT supported in JDOQL and not in Derby
public DateExpression<T> max()
max
in class ComparableExpression<T extends java.lang.Comparable>
public DateExpression<T> min()
min
in class ComparableExpression<T extends java.lang.Comparable>
public NumberExpression<java.lang.Integer> month()
public NumberExpression<java.lang.Integer> week()
public NumberExpression<java.lang.Integer> year()
public NumberExpression<java.lang.Integer> yearMonth()
public NumberExpression<java.lang.Integer> yearWeek()
public DateExpression<T> nullif(Expression<T> other)
nullif(this, other)
expressionnullif
in class ComparableExpression<T extends java.lang.Comparable>
other
- public DateExpression<T> nullif(T other)
nullif(this, other)
expressionnullif
in class ComparableExpression<T extends java.lang.Comparable>
other
- public DateExpression<T> coalesce(Expression<T> expr)
coalesce(this, expr)
expressioncoalesce
in class ComparableExpression<T extends java.lang.Comparable>
expr
- additional argumentpublic DateExpression<T> coalesce(Expression<?>... exprs)
coalesce(this, exprs...)
expressioncoalesce
in class ComparableExpression<T extends java.lang.Comparable>
exprs
- additional argumentspublic DateExpression<T> coalesce(T arg)
coalesce(this, arg)
expressioncoalesce
in class ComparableExpression<T extends java.lang.Comparable>
arg
- additional argumentpublic DateExpression<T> coalesce(T... args)
coalesce(this, args...)
expressioncoalesce
in class ComparableExpression<T extends java.lang.Comparable>
args
- additional argumentsCopyright © 2007–2021 Querydsl. All rights reserved.