| Modifier and Type | Class and Description |
|---|---|
| public static class | AggregationFunction.AVG
Implementation of a AVG function providing convenience in construction. |
| public static class | AggregationFunction.COUNT
Implementation of a COUNT function providing convenience in construction. |
| public static class | AggregationFunction.GREATEST<X extends Comparable
Models the MAX function in terms of non-numeric expressions. |
| public static class | AggregationFunction.LEAST<X extends Comparable
Models the MIN function in terms of non-numeric expressions. |
| public static class | AggregationFunction.MAX<N extends Number>
Implementation of a MAX function providing convenience in construction. |
| public static class | AggregationFunction.MIN<N extends Number>
Implementation of a MIN function providing convenience in construction. |
| public static class | AggregationFunction.SUM<N extends Number>
Implementation of a SUM function providing convenience in construction. |
| Access | Constructor and Description |
|---|---|
| public | AggregationFunction(CriteriaBuilderImpl
The query builder instance. criteriaBuilder, Class<T> The function return type. returnType, String The name of the function. functionName, Object The literal argument argument)Constructs an aggregation function with a single literal argument. |
| public | AggregationFunction(CriteriaBuilderImpl
The query builder instance. criteriaBuilder, Class<T> The function return type. returnType, String The name of the function. functionName, Expression<?> The argument argument)Constructs an aggregation function with a single literal argument. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isAggregation()
Overrides org. Implements org. |
| protected boolean |
| AggregationFunction | back to summary |
|---|---|
| public AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, Object argument) Constructs an aggregation function with a single literal argument.
| |
| AggregationFunction | back to summary |
|---|---|
| public AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, Expression<?> argument) Constructs an aggregation function with a single literal argument.
| |
| isAggregation | back to summary |
|---|---|
| public boolean isAggregation() Overrides org. Implements org. Doc from org. Is this function a value aggregator (like a COUNT or MAX function e.g.)?
| |
| isStandardJpaFunction | back to summary |
|---|---|
protected boolean isStandardJpaFunction()
| |
Parameterized as Double because thats what JPA states that the return from AVG should be.
| Access | Constructor and Description |
|---|---|
| public |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| AVG | back to summary |
|---|---|
| public AVG(CriteriaBuilderImpl criteriaBuilder, Expression<? extends Number> expression) | |
Parameterized as Long because thats what JPA states
that the return from COUNT should be.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected void | renderArguments(StringBuilder buffer, RenderingContext renderingContext)
|
| distinct | back to summary |
|---|---|
| private final boolean distinct | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| COUNT | back to summary |
|---|---|
| public COUNT(CriteriaBuilderImpl criteriaBuilder, Expression<?> expression, boolean distinct) | |
| isDistinct | back to summary |
|---|---|
| public boolean isDistinct() | |
| renderArguments | back to summary |
|---|---|
protected void renderArguments(StringBuilder buffer, RenderingContext renderingContext)
| |
MAX
| Access | Constructor and Description |
|---|---|
| public |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| GREATEST | back to summary |
|---|---|
public GREATEST(CriteriaBuilderImpl criteriaBuilder, Expression<X> expression)
| |
MIN
| Access | Constructor and Description |
|---|---|
| public |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| LEAST | back to summary |
|---|---|
public LEAST(CriteriaBuilderImpl criteriaBuilder, Expression<X> expression)
| |
Parameterized as N extends Number because thats what JPA states
that the return from MAX should be.
| Access | Constructor and Description |
|---|---|
| public |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| MAX | back to summary |
|---|---|
public MAX(CriteriaBuilderImpl criteriaBuilder, Expression<N> expression)
| |
Parameterized as N extends Number because thats what JPA states
that the return from MIN should be.
| Access | Constructor and Description |
|---|---|
| public |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| MIN | back to summary |
|---|---|
public MIN(CriteriaBuilderImpl criteriaBuilder, Expression<N> expression)
| |
Parameterized as N extends Number because thats what JPA states
that the return from SUM should be.
| Access | Constructor and Description |
|---|---|
| public | |
| public | SUM(CriteriaBuilderImpl criteriaBuilder, Expression<? extends Number> expression, Class<N> returnType)
|
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| SUM | back to summary |
|---|---|
public SUM(CriteriaBuilderImpl criteriaBuilder, Expression<N> expression)
| |
| SUM | back to summary |
|---|---|
| public SUM(CriteriaBuilderImpl criteriaBuilder, Expression<? extends Number> expression, Class<N> returnType) | |