T
- expression typepublic abstract class DateTimeExpression<T extends Comparable> extends TemporalExpression<T>
DateTimeExpression
represents Date / Time expressions
The date representation is compatible with the Gregorian calendar.hashCode, mixin
Constructor and Description |
---|
DateTimeExpression(Expression<T> mixin) |
Modifier and Type | Method and Description |
---|---|
DateTimeExpression<T> |
as(Path<T> alias)
Create an alias for the expression
|
DateTimeExpression<T> |
as(String alias)
Create an alias for the expression
|
static DateTimeExpression<Date> |
currentDate()
Create an expression representing the current date as a DateTimeExpression instance
|
static <T extends Comparable> |
currentDate(Class<T> cl)
Create an expression representing the current date as a DateTimeExpression instance
|
static DateTimeExpression<Date> |
currentTimestamp()
Create an expression representing the current time instant as a DateTimeExpression instance
|
static <T extends Comparable> |
currentTimestamp(Class<T> cl)
Create an expression representing the current time instant as a DateTimeExpression 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)
|
NumberExpression<Integer> |
hour()
Create a hours expression (range 0-23)
|
DateTimeExpression<T> |
max()
Get the maximum value of this expression (aggregation)
|
NumberExpression<Integer> |
milliSecond()
Create a milliseconds expression (range 0-999)
|
DateTimeExpression<T> |
min()
Get the minimum value of this expression (aggregation)
|
NumberExpression<Integer> |
minute()
Create a minutes expression (range 0-59)
|
NumberExpression<Integer> |
month()
Create a month expression (range 1-12 / JAN-DEC)
|
NumberExpression<Integer> |
second()
Create a seconds expression (range 0-59)
|
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 DateTimeExpression(Expression<T> mixin)
public static DateTimeExpression<Date> currentDate()
public static <T extends Comparable> DateTimeExpression<T> currentDate(Class<T> cl)
public static DateTimeExpression<Date> currentTimestamp()
public static <T extends Comparable> DateTimeExpression<T> currentTimestamp(Class<T> cl)
public DateTimeExpression<T> as(Path<T> alias)
SimpleExpression
as
in class ComparableExpression<T extends Comparable>
public DateTimeExpression<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 NumberExpression<Integer> hour()
public DateTimeExpression<T> max()
public NumberExpression<Integer> milliSecond()
Is always 0 in HQL and JDOQL modules
public DateTimeExpression<T> min()
public NumberExpression<Integer> minute()
public NumberExpression<Integer> month()
public NumberExpression<Integer> second()
public NumberExpression<Integer> week()
public NumberExpression<Integer> year()
public NumberExpression<Integer> yearMonth()
public NumberExpression<Integer> yearWeek()
Copyright © 2007–2016 Querydsl. All rights reserved.