T - Function result typeA - Function arguments typepublic interface QueryFunction<T,A> extends QueryExpression<T>, QueryProjection<T>
QueryProjection too.| Modifier and Type | Interface and Description |
|---|---|
static interface |
QueryFunction.Avg
A function which represents the average value of a query result.
|
static interface |
QueryFunction.Count
A function which represents the count of a query result values.
|
static interface |
QueryFunction.Max<T>
A function which represents the largest value of a query result.
|
static interface |
QueryFunction.Min<T>
A function which represents the smallest value of a query result.
|
static interface |
QueryFunction.NoArgQueryFunction<T>
A
QueryFunction which do not support any argument. |
static interface |
QueryFunction.PropertyQueryFunction<T,A>
A
QueryFunction which is also a Property, allowing the function to be used within a property set
query projection and the function value to be collected in a PropertyBox. |
static interface |
QueryFunction.Sum<T extends Number>
A function which represents the sum of a numeric query result values.
|
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException| Modifier and Type | Method and Description |
|---|---|
static QueryFunction.Avg |
avg(TypedExpression<? extends Number> argument)
Creates an aggregate function to calculate the average value of a numeric query result.
|
static QueryFunction.Count |
count(TypedExpression<?> argument)
Creates an aggregate function to count query results.
|
static TemporalFunction.CurrentDate |
currentDate()
Create a
TemporalFunction.CurrentDate function to obtain the current date as a Date. |
static TemporalFunction.CurrentLocalDate |
currentLocalDate()
Create a
TemporalFunction.CurrentLocalDate function to obtain the current date as a LocalDate. |
static TemporalFunction.CurrentLocalDateTime |
currentLocalDateTime()
Create a
TemporalFunction.CurrentLocalDateTime function to obtain the current date and time as a LocalDateTime. |
static TemporalFunction.CurrentTimestamp |
currentTimestamp()
Create a
TemporalFunction.CurrentTimestamp function to obtain the current timestamp as a Date. |
static TemporalFunction.Day |
day(TypedExpression<?> argument)
Create a function to extract the day part of a temporal data type.
|
List<TypedExpression<? extends A>> |
getExpressionArguments()
If the function supports expression arguments, returns the arguments list.
|
static TemporalFunction.Hour |
hour(TypedExpression<?> argument)
Create a function to extract the hour part of a temporal data type.
|
static StringFunction.Lower |
lower(TypedExpression<String> argument)
Creates a function to convert a String data type into lowercase.
|
static <T> QueryFunction.Max<T> |
max(TypedExpression<T> argument)
Creates an aggregate function to get the largest value of a query result.
|
static <T> QueryFunction.Min<T> |
min(TypedExpression<T> argument)
Creates an aggregate function to get the smallest value of a query result.
|
static TemporalFunction.Month |
month(TypedExpression<?> argument)
Create a function to extract the month part of a temporal data type.
|
static <T extends Number> |
sum(TypedExpression<T> argument)
Creates an aggregate function to sum numeric query results.
|
static StringFunction.Upper |
upper(TypedExpression<String> argument)
Creates a function to convert a String data type into uppercase.
|
static TemporalFunction.Year |
year(TypedExpression<?> argument)
Create a function to extract the year part of a temporal data type.
|
between, count, eq, eq, goe, goe, gt, gt, in, in, in, isNotNull, isNull, loe, loe, lt, lt, max, min, neq, neq, nin, nin, ninbean, constant, countAll, path, propertySet, propertySetgetTemporalType, getType, isCollectionExpression, isConverterExpressionvalidateList<TypedExpression<? extends A>> getExpressionArguments()
static QueryFunction.Count count(TypedExpression<?> argument)
argument - Function argument (not null)QueryFunction.Count functionstatic QueryFunction.Avg avg(TypedExpression<? extends Number> argument)
argument - Function argument (not null)QueryFunction.Avg functionstatic <T> QueryFunction.Min<T> min(TypedExpression<T> argument)
T - Result typeargument - Function argument (not null)QueryFunction.Min functionstatic <T> QueryFunction.Max<T> max(TypedExpression<T> argument)
T - Result typeargument - Function argument (not null)QueryFunction.Max functionstatic <T extends Number> QueryFunction.Sum<T> sum(TypedExpression<T> argument)
T - Result typeargument - Function argument (not null)QueryFunction.Sum functionstatic StringFunction.Lower lower(TypedExpression<String> argument)
argument - Function argument (not null)StringFunction.Lower functionstatic StringFunction.Upper upper(TypedExpression<String> argument)
argument - Function argument (not null)StringFunction.Lower functionstatic TemporalFunction.CurrentDate currentDate()
TemporalFunction.CurrentDate function to obtain the current date as a Date.Date.static TemporalFunction.CurrentLocalDate currentLocalDate()
TemporalFunction.CurrentLocalDate function to obtain the current date as a LocalDate.LocalDate.static TemporalFunction.CurrentTimestamp currentTimestamp()
TemporalFunction.CurrentTimestamp function to obtain the current timestamp as a Date.static TemporalFunction.CurrentLocalDateTime currentLocalDateTime()
TemporalFunction.CurrentLocalDateTime function to obtain the current date and time as a LocalDateTime.LocalDateTime.static TemporalFunction.Year year(TypedExpression<?> argument)
argument - Function argument (not null)static TemporalFunction.Month month(TypedExpression<?> argument)
The month range index is between 1 and 12.
argument - Function argument (not null)static TemporalFunction.Day day(TypedExpression<?> argument)
The day is intended as the day of month and the day range index is between 1 and 31.
argument - Function argument (not null)static TemporalFunction.Hour hour(TypedExpression<?> argument)
The 24-hour clock is used and the hour range index is between 0 and 23.
argument - Function argument (not null)Copyright © 2019 The Holon Platform. All rights reserved.