Interface HibernateCriteriaBuilder
- All Superinterfaces:
CriteriaBuilder
- All Known Subinterfaces:
GeolatteSpatialCriteriaBuilder, JTSSpatialCriteriaBuilder, NodeBuilder, SpatialCriteriaBuilder<T>
- All Known Implementing Classes:
CriteriaDefinition, HibernateCriteriaBuilderDelegate
CriteriaBuilder is a source of objects which may be composed
to express a criteria query. The JPA-standard API defines all the operations
needed to express any query written in standard JPQL. This interface extends
CriteriaBuilder, adding operations needed to express features of HQL
which are not available in standard JPQL. For example:
- JPQL does not have a
format()function, soformat(Expression, String)is declared here, and - since JPQL does not have
insertstatements, this interface defines the operationscreateCriteriaInsertSelect(Class)andcreateCriteriaInsertValues(Class).
Furthermore, the operations of this interface return types defined in the
package org.hibernate.query.criteria, which extend the equivalent
types in jakarta.persistence.criteria with additional operations.
For example JpaCriteriaQuery adds the methods:
JpaSelectCriteria.from(Subquery), which allows the use of a subquery in thefromclause of the query, andJpaCteContainer.with(AbstractQuery), which allows the creation ofcommon table expressions.
Finally, the method createQuery(String, Class) allows a query
written in HQL to be translated to a tree of criteria objects for further
manipulation and execution.
An instance of this interface may be obtained by calling
SessionFactory.getCriteriaBuilder().
- Since:
- 6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface CriteriaBuilder
CriteriaBuilder.Case<R>, CriteriaBuilder.Coalesce<T>, CriteriaBuilder.In<T>, CriteriaBuilder.SimpleCase<C,R>, CriteriaBuilder.Trimspec -
Method Summary
Modifier and TypeMethodDescription<N extends Number>
JpaExpression<N> abs(Expression<N> x) Create an expression returning the absolute value of its argument.acos(Expression<? extends Number> x) Create an expression that returns the inverse cosine of its argument.<T extends Temporal>
JpaExpression<T> addDuration(Expression<T> datetime, Expression<Duration> duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.<T extends Temporal>
JpaExpression<T> addDuration(Expression<T> datetime, Duration duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.<T extends Temporal>
JpaExpression<T> addDuration(T datetime, Expression<Duration> duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.<Y> JpaExpression<Y> Create anallquantified expression over a subquery.and(BooleanExpression... restrictions) Create a conjunction predicate.and(Expression<Boolean> x, Expression<Boolean> y) Create a conjunction predicate.Deprecated.Prefer and(BooleanExpression...) instead.and(List<? extends Expression<Boolean>> restrictions) Create a conjunction predicate.<Y> JpaExpression<Y> Create ananyquantified expression over a subquery.Create an array-valued compound selection.<Y> JpaCompoundSelection<Y> Create an array-valued compound selection with the given result array type.<Y> JpaCompoundSelection<Y> Create an array-valued compound selection with the given result array type.Create an array-valued compound selection from a list of selections.<T> JpaExpression<T[]> arrayAgg(JpaOrder order, Expression<? extends T> argument) <T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaPredicate filter, Expression<? extends T> argument) <T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<? extends T> argument) Create aarray_aggordered set-aggregate function expression.<T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaWindow window, Expression<? extends T> argument) <T> JpaExpression<T[]> arrayAppend(Expression<T[]> arrayExpression, Expression<T> elementExpression) Appends element to array.<T> JpaExpression<T[]> arrayAppend(Expression<T[]> arrayExpression, T element) Appends element to array.<T> JpaExpression<T[]> arrayConcat(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Concatenates arrays with each other in order.<T> JpaExpression<T[]> arrayConcat(Expression<T[]> arrayExpression1, T[] array2) Concatenates arrays with each other in order.<T> JpaExpression<T[]> arrayConcat(T[] array1, Expression<T[]> arrayExpression2) Concatenates arrays with each other in order.<T> JpaPredicatearrayContains(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains an element.<T> JpaPredicatearrayContains(Expression<T[]> arrayExpression, T element) Whether an array contains an element.<T> JpaPredicatearrayContains(T[] array, Expression<T> elementExpression) Whether an array contains an element.<T> JpaPredicatearrayContainsNullable(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains a nullable element.<T> JpaPredicatearrayContainsNullable(Expression<T[]> arrayExpression, T element) Whether an array contains a nullable element.<T> JpaPredicatearrayContainsNullable(T[] array, Expression<T> elementExpression) Whether an array contains a nullable element.<T> JpaExpression<T[]> arrayFill(Expression<T> elementExpression, Expression<Integer> elementCountExpression) Creates array with the same element N times, as specified by the arguments.<T> JpaExpression<T[]> arrayFill(Expression<T> elementExpression, Integer elementCount) Creates array with the same element N times, as specified by the arguments.<T> JpaExpression<T[]> arrayFill(T element, Expression<Integer> elementCountExpression) Creates array with the same element N times, as specified by the arguments.<T> JpaExpression<T[]> Creates array with the same element N times, as specified by the arguments.<T> JpaExpression<T> arrayGet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression) Accesses the element of an array by 1-based index.<T> JpaExpression<T> arrayGet(Expression<T[]> arrayExpression, Integer index) Accesses the element of an array by 1-based index.<T> JpaPredicatearrayIncludes(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array.<T> JpaPredicatearrayIncludes(Expression<T[]> arrayExpression, T[] subArray) Whether an array is a subset of another array.<T> JpaPredicatearrayIncludes(T[] array, Expression<T[]> subArrayExpression) Whether an array is a subset of another array.<T> JpaPredicatearrayIncludesNullable(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.<T> JpaPredicatearrayIncludesNullable(Expression<T[]> arrayExpression, T[] subArray) Whether an array is a subset of another array with nullable elements.<T> JpaPredicatearrayIncludesNullable(T[] array, Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.<T> JpaPredicatearrayIntersects(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.<T> JpaPredicatearrayIntersects(Expression<T[]> arrayExpression1, T[] array2) Whether one array has any elements common with another array.<T> JpaPredicatearrayIntersects(T[] array1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.<T> JpaPredicatearrayIntersectsNullable(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnullelements.<T> JpaPredicatearrayIntersectsNullable(Expression<T[]> arrayExpression1, T[] array2) Whether one array has any elements common with another array, supportingnullelements.<T> JpaPredicatearrayIntersectsNullable(T[] array1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnullelements.<T> JpaExpression<Integer> arrayLength(Expression<T[]> arrayExpression) Determines the length of an array.<T> JpaExpression<T[]> arrayLiteral(T... elements) Creates an array literal with thearrayconstructor function.<T> JpaExpression<Integer> arrayPosition(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines the 1-based position of an element in an array.<T> JpaExpression<Integer> arrayPosition(Expression<T[]> arrayExpression, T element) Determines the 1-based position of an element in an array.<T> JpaExpression<int[]> arrayPositions(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in an array.<T> JpaExpression<int[]> arrayPositions(Expression<T[]> arrayExpression, T element) Determines all 1-based positions of an element in an array.<T> JpaExpression<List<Integer>> arrayPositionsList(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in an array.<T> JpaExpression<List<Integer>> arrayPositionsList(Expression<T[]> arrayExpression, T element) Determines all 1-based positions of an element in an array.<T> JpaExpression<T[]> arrayPrepend(Expression<T> elementExpression, Expression<T[]> arrayExpression) Prepends element to array.<T> JpaExpression<T[]> arrayPrepend(T element, Expression<T[]> arrayExpression) Prepends element to array.<T> JpaExpression<T[]> arrayRemove(Expression<T[]> arrayExpression, Expression<T> elementExpression) Creates array copy with given element removed.<T> JpaExpression<T[]> arrayRemove(Expression<T[]> arrayExpression, T element) Creates array copy with given element removed.<T> JpaExpression<T[]> arrayRemoveIndex(Expression<T[]> arrayExpression, Expression<Integer> indexExpression) Creates array copy with the element at the given 1-based index removed.<T> JpaExpression<T[]> arrayRemoveIndex(Expression<T[]> arrayExpression, Integer index) Creates array copy with the element at the given 1-based index removed.<T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, Expression<T> oldElementExpression, Expression<T> newElementExpression) Creates array copy replacing a given element with another.<T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, Expression<T> oldElementExpression, T newElement) Creates array copy replacing a given element with another.<T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, T oldElement, Expression<T> newElementExpression) Creates array copy replacing a given element with another.<T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, T oldElement, T newElement) Creates array copy replacing a given element with another.<T> JpaExpression<T[]> arrayReverse(Expression<T[]> arrayExpression) Reverses the order of elements in an array.<T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression, Expression<T> elementExpression) Creates array copy with given element at given 1-based index.<T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression, T element) Creates array copy with given element at given 1-based index.<T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Integer index, Expression<T> elementExpression) Creates array copy with given element at given 1-based index.<T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Integer index, T element) Creates array copy with given element at given 1-based index.<T> JpaExpression<T[]> arraySlice(Expression<T[]> arrayExpression, Expression<Integer> lowerIndexExpression, Expression<Integer> upperIndexExpression) Creates a sub-array of the based on 1-based lower and upper index.<T> JpaExpression<T[]> arraySlice(Expression<T[]> arrayExpression, Expression<Integer> lowerIndexExpression, Integer upperIndex) Creates a sub-array of the based on 1-based lower and upper index.<T> JpaExpression<T[]> arraySlice(Expression<T[]> arrayExpression, Integer lowerIndex, Expression<Integer> upperIndexExpression) Creates a sub-array of the based on 1-based lower and upper index.<T> JpaExpression<T[]> arraySlice(Expression<T[]> arrayExpression, Integer lowerIndex, Integer upperIndex) Creates a sub-array of the based on 1-based lower and upper index.<T> JpaExpression<T[]> arraySort(Expression<T[]> arrayExpression) Sorts the elements of an array in ascending order.<T> JpaExpression<T[]> arraySort(Expression<T[]> arrayExpression, boolean descending) Sorts the elements of an array in the specified order.<T> JpaExpression<T[]> arraySort(Expression<T[]> arrayExpression, boolean descending, boolean nullsFirst) Create an expression that sorts the given array with explicit null ordering.<T> JpaExpression<T[]> arraySort(Expression<T[]> arrayExpression, Expression<Boolean> descendingExpression) Sorts the elements of an array in the specified order.<T> JpaExpression<T[]> arraySort(Expression<T[]> arrayExpression, Expression<Boolean> descendingExpression, Expression<Boolean> nullsFirstExpression) Create an expression that sorts the given array with explicit null ordering.arrayToString(Expression<? extends Object[]> arrayExpression, Expression<String> separatorExpression) Concatenates the non-null array elements with a separator, as specified by the arguments.arrayToString(Expression<? extends Object[]> arrayExpression, Expression<String> separatorExpression, Expression<String> defaultExpression) Concatenates the array elements with a separator, as specified by the arguments.arrayToString(Expression<? extends Object[]> arrayExpression, Expression<String> separatorExpression, String defaultValue) Concatenates the array elements with a separator, as specified by the arguments.arrayToString(Expression<? extends Object[]> arrayExpression, String separator) Concatenates the non-null array elements with a separator, as specified by the arguments.arrayToString(Expression<? extends Object[]> arrayExpression, String separator, Expression<String> defaultExpression) Concatenates the array elements with a separator, as specified by the arguments.arrayToString(Expression<? extends Object[]> arrayExpression, String separator, String defaultValue) Concatenates the array elements with a separator, as specified by the arguments.<T> JpaExpression<T[]> arrayTrim(Expression<T[]> arrayExpression, Expression<Integer> elementCountExpression) Creates array copy without the last N elements, specified by the second argument.<T> JpaExpression<T[]> arrayTrim(Expression<T[]> arrayExpression, Integer elementCount) Creates array copy without the last N elements, specified by the second argument.asc(Expression<?> x) Create an ascending ordering for the given expression.asc(Expression<?> x, boolean nullsFirst) Create an ordering by the ascending value of the expression.Create a search ordering by the ascending value of the CTE attribute.asc(JpaCteCriteriaAttribute x, boolean nullsFirst) Create a search ordering by the ascending value of the CTE attribute.asin(Expression<? extends Number> x) Create an expression that returns the inverse sine of its argument.atan(Expression<? extends Number> x) Create an expression that returns the inverse tangent of its argument.atan2(Expression<? extends Number> y, Expression<? extends Number> x) Create an expression that returns the inverse tangent ofyoverx.atan2(Expression<? extends Number> y, Number x) atan2(Number y, Expression<? extends Number> x) <N extends Number>
JpaExpression<Double> avg(Expression<N> argument) Create an aggregate expression returning the average of numeric values.<N extends Number>
JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter) <N extends Number>
JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter, JpaWindow window) Create anavgaggregate function expression.<N extends Number>
JpaExpression<Double> avg(Expression<N> argument, JpaWindow window) <Y extends Comparable<? super Y>>
JpaPredicatebetween(Expression<? extends Y> value, Expression<? extends Y> lower, Expression<? extends Y> upper) Create a predicate testing whether a value is between two bounds.<Y extends Comparable<? super Y>>
JpaPredicatebetween(Expression<? extends Y> value, Y lower, Y upper) Create a predicate testing whether a value is between two bounds.<Y extends Comparable<? super Y>>
JpaPredicatebetween(Y value, Expression<? extends Y> lower, Expression<? extends Y> upper) Create a predicate testing whether a value is between two bounds.<X,T> JpaExpression <X> cast(JpaExpression<T> expression, Class<X> castTargetJavaType) Create an expression that casts the given expression to the specified Java type.<X,T> JpaExpression <X> cast(JpaExpression<T> expression, JpaCastTarget<X> castTarget) Create an expression that casts the given expression to the specified cast target.<X> JpaCastTarget<X> castTarget(Class<X> castTargetJavaType) Create a cast target for the given Java type.<X> JpaCastTarget<X> castTarget(Class<X> castTargetJavaType, int precision, int scale) Create a cast target for the given Java type, precision, and scale.<X> JpaCastTarget<X> castTarget(Class<X> castTargetJavaType, long length) Create a cast target for the given Java type and SQL type length.<N extends Number>
JpaExpression<N> ceiling(Expression<N> x) Create an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument.<T> JpaCoalesce<T> coalesce()Create a coalesce expression.<Y> JpaCoalesce<Y> coalesce(Expression<? extends Y> x, Expression<? extends Y> y) Create a coalesce expression.<Y> JpaCoalesce<Y> coalesce(Expression<? extends Y> x, Y y) Create a coalesce expression.collate(Expression<String> x, String collation) Create an expression that applies the named collation to a string expression.<E, C extends Collection<? super E>>
JpaExpression<C> collectionAppend(Expression<C> collectionExpression, E element) Appends element to basic collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionAppend(Expression<C> collectionExpression, Expression<? extends E> elementExpression) Appends element to basic collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionConcat(C collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Concatenates basic collections with each other in order.<E, C extends Collection<? super E>>
JpaExpression<C> collectionConcat(Expression<C> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Concatenates basic collections with each other in order.<E, C extends Collection<? super E>>
JpaExpression<C> collectionConcat(Expression<C> collectionExpression1, Collection<? extends E> collection2) Concatenates basic collections with each other in order.<E> JpaPredicatecollectionContains(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains an element.<E> JpaPredicatecollectionContains(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains an element.<E> JpaPredicatecollectionContains(Collection<E> collection, Expression<E> elementExpression) Whether a basic collection contains an element.<E> JpaPredicatecollectionContainsNullable(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains a nullable element.<E> JpaPredicatecollectionContainsNullable(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains a nullable element.<E> JpaPredicatecollectionContainsNullable(Collection<E> collection, Expression<E> elementExpression) Whether a basic collection contains a nullable element.<T> JpaExpression<Collection<T>> collectionFill(Expression<T> elementExpression, Expression<Integer> elementCountExpression) Creates basic collection with the same element N times, as specified by the arguments.<T> JpaExpression<Collection<T>> collectionFill(Expression<T> elementExpression, Integer elementCount) Creates basic collection with the same element N times, as specified by the arguments.<T> JpaExpression<Collection<T>> collectionFill(T element, Expression<Integer> elementCountExpression) Creates basic collection with the same element N times, as specified by the arguments.<T> JpaExpression<Collection<T>> collectionFill(T element, Integer elementCount) Creates basic collection with the same element N times, as specified by the arguments.<E> JpaExpression<E> collectionGet(Expression<? extends Collection<E>> collectionExpression, Expression<Integer> indexExpression) Accesses the element of the basic collection by 1-based index.<E> JpaExpression<E> collectionGet(Expression<? extends Collection<E>> collectionExpression, Integer index) Accesses the element of the basic collection by 1-based index.<E> JpaPredicatecollectionIncludes(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.<E> JpaPredicatecollectionIncludes(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection.<E> JpaPredicatecollectionIncludes(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.<E> JpaPredicatecollectionIncludesNullable(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection with nullable elements.<E> JpaPredicatecollectionIncludesNullable(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection with nullable elements.<E> JpaPredicatecollectionIncludesNullable(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection with nullable elements.<E> JpaPredicatecollectionIntersects(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.<E> JpaPredicatecollectionIntersects(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection.<E> JpaPredicatecollectionIntersects(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.<E> JpaPredicatecollectionIntersectsNullable(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.<E> JpaPredicatecollectionIntersectsNullable(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.<E> JpaPredicatecollectionIntersectsNullable(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.collectionLength(Expression<? extends Collection<?>> collectionExpression) Determines the length of a basic collection.<E, C extends Collection<E>>
JpaExpression<C> collectionLiteral(E... elements) Creates a basic collection literal with thearrayconstructor function.<E> JpaExpression<Integer> collectionPosition(Expression<? extends Collection<? extends E>> collectionExpression, E element) Determines the 1-based position of an element in a basic collection.<E> JpaExpression<Integer> collectionPosition(Expression<? extends Collection<? extends E>> collectionExpression, Expression<E> elementExpression) Determines the 1-based position of an element in a basic collection.<T> JpaExpression<int[]> collectionPositions(Expression<? extends Collection<? super T>> collectionExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in a basic collection.<T> JpaExpression<int[]> collectionPositions(Expression<? extends Collection<? super T>> collectionExpression, T element) Determines all 1-based positions of an element in a basic collection.<T> JpaExpression<List<Integer>> collectionPositionsList(Expression<? extends Collection<? super T>> collectionExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in a basic collection.<T> JpaExpression<List<Integer>> collectionPositionsList(Expression<? extends Collection<? super T>> collectionExpression, T element) Determines all 1-based positions of an element in a basic collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionPrepend(E element, Expression<C> collectionExpression) Prepends element to basic collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionPrepend(Expression<? extends E> elementExpression, Expression<C> collectionExpression) Prepends element to basic collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionRemove(Expression<C> collectionExpression, E element) Creates basic collection copy with given element removed.<E, C extends Collection<? super E>>
JpaExpression<C> collectionRemove(Expression<C> collectionExpression, Expression<? extends E> elementExpression) Creates basic collection copy with given element removed.<C extends Collection<?>>
JpaExpression<C> collectionRemoveIndex(Expression<C> collectionExpression, Expression<Integer> indexExpression) Creates basic collection copy with the element at the given 1-based index removed.<C extends Collection<?>>
JpaExpression<C> collectionRemoveIndex(Expression<C> collectionExpression, Integer index) Creates basic collection copy with the element at the given 1-based index removed.<E, C extends Collection<? super E>>
JpaExpression<C> collectionReplace(Expression<C> collectionExpression, E oldElement, E newElement) Creates basic collection copy replacing a given element with another.<E, C extends Collection<? super E>>
JpaExpression<C> collectionReplace(Expression<C> collectionExpression, E oldElement, Expression<? extends E> newElementExpression) Creates basic collection copy replacing a given element with another.<E, C extends Collection<? super E>>
JpaExpression<C> collectionReplace(Expression<C> collectionExpression, Expression<? extends E> oldElementExpression, E newElement) Creates basic collection copy replacing a given element with another.<E, C extends Collection<? super E>>
JpaExpression<C> collectionReplace(Expression<C> collectionExpression, Expression<? extends E> oldElementExpression, Expression<? extends E> newElementExpression) Creates basic collection copy replacing a given element with another.<C extends Collection<?>>
JpaExpression<C> collectionReverse(Expression<C> collectionExpression) Create an expression that reverses the order of the elements of a collection.<E, C extends Collection<? super E>>
JpaExpression<C> collectionSet(Expression<C> collectionExpression, Expression<Integer> indexExpression, E element) Creates basic collection copy with given element at given 1-based index.<E, C extends Collection<? super E>>
JpaExpression<C> collectionSet(Expression<C> collectionExpression, Expression<Integer> indexExpression, Expression<? extends E> elementExpression) Creates basic collection copy with given element at given 1-based index.<E, C extends Collection<? super E>>
JpaExpression<C> collectionSet(Expression<C> collectionExpression, Integer index, E element) Creates basic collection copy with given element at given 1-based index.<E, C extends Collection<? super E>>
JpaExpression<C> collectionSet(Expression<C> collectionExpression, Integer index, Expression<? extends E> elementExpression) Creates basic collection copy with given element at given 1-based index.<C extends Collection<?>>
JpaExpression<C> collectionSlice(Expression<C> collectionExpression, Expression<Integer> lowerIndexExpression, Expression<Integer> upperIndexExpression) Creates a sub-collection of the based on 1-based lower and upper index.<C extends Collection<?>>
JpaExpression<C> collectionSlice(Expression<C> collectionExpression, Expression<Integer> lowerIndexExpression, Integer upperIndex) Creates a sub-collection of the based on 1-based lower and upper index.<C extends Collection<?>>
JpaExpression<C> collectionSlice(Expression<C> collectionExpression, Integer lowerIndex, Expression<Integer> upperIndexExpression) Creates a sub-collection of the based on 1-based lower and upper index.<C extends Collection<?>>
JpaExpression<C> collectionSlice(Expression<C> collectionExpression, Integer lowerIndex, Integer upperIndex) Creates a sub-collection of the based on 1-based lower and upper index.<C extends Collection<?>>
JpaExpression<C> collectionSort(Expression<C> collectionExpression) Create an expression that sorts the elements of a collection.<C extends Collection<?>>
JpaExpression<C> collectionSort(Expression<C> collectionExpression, boolean descending) Create an expression that sorts the given collection in specified order.<C extends Collection<?>>
JpaExpression<C> collectionSort(Expression<C> collectionExpression, boolean descending, boolean nullsFirst) Create an expression that sorts the given collection with explicit null ordering.<C extends Collection<?>>
JpaExpression<C> collectionSort(Expression<C> collectionExpression, Expression<Boolean> descendingExpression) Create an expression that sorts the given collection in specified order.<C extends Collection<?>>
JpaExpression<C> collectionSort(Expression<C> collectionExpression, Expression<Boolean> descendingExpression, Expression<Boolean> nullsFirstExpression) Create an expression that sorts the given collection with explicit null ordering.collectionToString(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.collectionToString(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression, Expression<String> defaultExpression) Concatenates the collection elements with a separator, as specified by the arguments.collectionToString(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression, String defaultValue) Concatenates the collection elements with a separator, as specified by the arguments.collectionToString(Expression<? extends Collection<?>> collectionExpression, String separator) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.collectionToString(Expression<? extends Collection<?>> collectionExpression, String separator, Expression<String> defaultExpression) Concatenates the collection elements with a separator, as specified by the arguments.collectionToString(Expression<? extends Collection<?>> collectionExpression, String separator, String defaultValue) Concatenates the collection elements with a separator, as specified by the arguments.<C extends Collection<?>>
JpaExpression<C> collectionTrim(Expression<C> arrayExpression, Expression<Integer> elementCountExpression) Creates basic collection copy without the last N elements, specified by the second argument.<C extends Collection<?>>
JpaExpression<C> collectionTrim(Expression<C> arrayExpression, Integer elementCount) Creates basic collection copy without the last N elements, specified by the second argument.concat(Expression<String> x, Expression<String> y) Create a string concatenation expression.concat(Expression<String> x, String y) Create a string concatenation expression.concat(String x, Expression<String> y) Create a string concatenation expression.Create an expression that concatenates two string literals.concat(List<Expression<String>> expressions) Create a string concatenation expression from a list of expressions.Create a predicate that is always true.<Y> JpaCompoundSelection<Y> Create a compound selection using the specified result type constructor.<Y> JpaCompoundSelection<Y> Create a compound selection whose arguments are supplied as a list.cos(Expression<? extends Number> x) Create an expression that returns the cosine of its argument.cosh(Expression<? extends Number> x) Create an expression that returns the hyperbolic cosine of its argument.count()Equivalent to HQLcount(*).count(Expression<?> argument) Create an aggregate expression returning a row count.count(Expression<?> argument, JpaPredicate filter) count(Expression<?> argument, JpaPredicate filter, JpaWindow window) Create acountaggregate function expression.count(Expression<?> argument, JpaWindow window) countDistinct(Expression<?> x) Create an aggregate expression returning the count of distinct values.<T> JpaCriteriaDelete<T> createCriteriaDelete(Class<T> targetEntity) Create a criteria delete statement for the given entity type.<T> JpaCriteriaInsertSelect<T> createCriteriaInsertSelect(Class<T> targetEntity) Create a criteria insert statement which obtains inserted values from a select query.<T> JpaCriteriaInsertValues<T> createCriteriaInsertValues(Class<T> targetEntity) Create a criteria insert statement which supplies explicit values.<T> JpaCriteriaUpdate<T> createCriteriaUpdate(Class<T> targetEntity) Create a criteria update statement for the given entity type.Create a criteria query.<T> JpaCriteriaQuery<T> createQuery(Class<T> resultClass) Create a criteria query for the given result type.<T> JpaCriteriaQuery<T> createQuery(String hql, Class<T> resultClass) Transform the given HQLselectquery to an equivalent criteria query.Create a tuple-valued criteria query.Create an emptyJpaWindowto use with window and aggregate functions.Create acume_distwindow function expression.Create an expression for the current SQL date.Create an expression for the current instant.Create an expression for the current SQL time.Create an expression for the current SQL timestamp.day(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.DAYof a date, time, or datetime expression.degrees(Expression<? extends Number> x) Create an expression that converts an angle measured in radians to an approximately equivalent angle measured in degrees.Create adense_rankwindow function expression.desc(Expression<?> x) Create a descending ordering for the given expression.desc(Expression<?> x, boolean nullsFirst) Create an ordering by the descending value of the expression.Create a search ordering by the descending value of the CTE attribute.desc(JpaCteCriteriaAttribute x, boolean nullsFirst) Create a search ordering by the descending value of the CTE attribute.<N extends Number>
JpaExpression<N> diff(Expression<? extends N> x, Expression<? extends N> y) Create an expression returning a numeric difference.<N extends Number>
JpaExpression<N> diff(Expression<? extends N> x, N y) Create an expression returning a numeric difference.<N extends Number>
JpaExpression<N> diff(N x, Expression<? extends N> y) Create an expression returning a numeric difference.Create a predicate that is always false.distinctFrom(Expression<?> x, Expression<?> y) Create a predicate testing whether two expressions are distinct, treating nulls as comparable values.distinctFrom(Expression<?> x, Object y) Create a predicate testing whether an expression and a value are distinct, treating nulls as comparable values.duration(long magnitude, TemporalUnit unit) A literalDuration, for example, "five days" or "30 minutes".<T extends Temporal>
JpaExpression<Duration> durationBetween(Expression<T> x, Expression<T> y) Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.<T extends Temporal>
JpaExpression<Duration> durationBetween(Expression<T> x, T y) Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.durationByUnit(TemporalUnit unit, Expression<Duration> duration) Convert aDurationto a numeric magnitude in the given units.durationDiff(Expression<Duration> x, Expression<Duration> y) Subtract one duration from another.durationDiff(Expression<Duration> x, Duration y) Subtract one duration from another.durationScaled(Expression<? extends Number> number, Expression<Duration> duration) Scale a duration by a number.durationScaled(Expression<? extends Number> number, Duration duration) Scale a duration by a number.durationScaled(Number number, Expression<Duration> duration) Scale a duration by a number.durationSum(Expression<Duration> x, Expression<Duration> y) Add two durations.durationSum(Expression<Duration> x, Duration y) Add two durations.equal(Expression<?> x, Expression<?> y) Create an equality predicate.equal(Expression<?> x, Object y) Create an equality predicate.<T> JpaCriteriaQuery<T> except(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anexceptorexcept allset operation over the given criteria queries.<T> JpaSubQuery<T> Create anexceptorexcept allset operation over the given subqueries.default <T> JpaCriteriaQuery<T> except(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anexceptset operation over the given criteria queries.<T> JpaCriteriaQuery<T> except(CriteriaQuery<T> left, CriteriaQuery<?> right) Create anexceptset operation over two criteria queries.<T> CriteriaSelect<T> except(CriteriaSelect<T> left, CriteriaSelect<?> right) Create aexceptset operation over two criteria selects.default <T> JpaSubQuery<T> Create anexceptset operation over the given subqueries.default <T> JpaCriteriaQuery<T> exceptAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anexcept allset operation over the given criteria queries.<T> JpaCriteriaQuery<T> exceptAll(CriteriaQuery<T> left, CriteriaQuery<?> right) Create anexcept allset operation over two criteria queries.<T> CriteriaSelect<T> exceptAll(CriteriaSelect<T> left, CriteriaSelect<?> right) Create aexcept allset operation over two criteria selects.default <T> JpaSubQuery<T> Create anexcept allset operation over the given subqueries.Create a predicate testing whether a subquery returns results.exp(Expression<? extends Number> x) Create an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument.<N, T extends Temporal>
JpaExpression<N> extract(TemporalField<N, T> field, Expression<T> temporal) Create an expression extracting the given temporal field from a temporal expression.<T> JpaExpression<T> firstValue(Expression<T> argument, JpaWindow window) Create afirst_valuewindow function expression.Create an expression representing the foreign key of the given association path.<N extends Number>
JpaExpression<N> floor(Expression<N> x) Create an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument.format(Expression<? extends TemporalAccessor> datetime, String pattern) Format a date, time, or datetime according to a pattern.frameBetweenFollowing(int offset) frameBetweenFollowing(Expression<?> offset) Create a window frame of typeFrameKind.OFFSET_FOLLOWINGto use withJpaWindows.frameBetweenPreceding(int offset) frameBetweenPreceding(Expression<?> offset) Create window frame of typeFrameKind.OFFSET_PRECEDINGto use withJpaWindows.Create a window frame of typeFrameKind.CURRENT_ROWto use withJpaWindows.Create a window frame of typeFrameKind.UNBOUNDED_FOLLOWINGto use withJpaWindows.Create a window frame of typeFrameKind.UNBOUNDED_PRECEDINGto use withJpaWindows.<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>... args) Create an expression invoking a database function.<T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, Expression<?>... args) <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, JpaWindow window, Expression<?>... args) Create a generic aggregate function expression.<T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaWindow window, Expression<?>... args) <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, Expression<?>... args) <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaPredicate filter, Expression<?>... args) <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... args) Create a generic ordered set-aggregate function expression.<T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaWindow window, Expression<?>... args) ge(Expression<? extends Number> x, Expression<? extends Number> y) Create a greater-than-or-equal predicate for numeric expressions.ge(Expression<? extends Number> x, Number y) Create a greater-than-or-equal predicate for numeric expressions.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, E stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, E stop, E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, E stop, Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, Expression<E> stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, Expression<E> stop, E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(E start, Expression<E> stop, Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, E stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, E stop, E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, E stop, Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, Expression<E> stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, Expression<E> stop, E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E> generateSeries(Expression<E> start, Expression<E> stop, Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(E start, E stop, Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(E start, E stop, TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(E start, Expression<E> stop, Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(E start, Expression<E> stop, TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(Expression<E> start, E stop, Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(Expression<E> start, E stop, TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(Expression<E> start, Expression<E> stop, Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E> generateTimeSeries(Expression<E> start, Expression<E> stop, TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.<Y extends Comparable<? super Y>>
JpaPredicategreaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a greater-than predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicategreaterThan(Expression<? extends Y> x, Y y) Create a greater-than predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a greater-than-or-equal predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo(Expression<? extends Y> x, Y y) Create a greater-than-or-equal predicate for comparable expressions.<X extends Comparable<? super X>>
JpaExpression<X> greatest(Expression<X> argument) Create an aggregate expression returning the greatest comparable value.gt(Expression<? extends Number> x, Expression<? extends Number> y) Create a greater-than predicate for numeric expressions.gt(Expression<? extends Number> x, Number y) Create a greater-than predicate for numeric expressions.hour(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.HOURof a date, time, or datetime expression.Create an expression representing the identifier of the given path.ilike(Expression<String> x, Expression<String> pattern) Create a case-insensitivelikepredicate.ilike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a case-insensitivelikepredicate with an escape character.ilike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a case-insensitivelikepredicate with an escape character expression.ilike(Expression<String> x, String pattern) Create a case-insensitivelikepredicate.ilike(Expression<String> x, String pattern, char escapeChar) Create a case-insensitivelikepredicate with an escape character.ilike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a case-insensitivelikepredicate with an escape character expression.ilikeRegexp(Expression<String> x, String pattern) Create a case-insensitive predicate testing whether a string expression matches a regular expression.<T> JpaInPredicate<T> in(Expression<? extends T> expression) Create aninpredicate builder for the given expression.<T> JpaInPredicate<T> in(Expression<? extends T> expression, Expression<? extends T>... values) Create aninpredicate with expression values.<T> JpaInPredicate<T> in(Expression<? extends T> expression, Collection<T> values) Create aninpredicate with values supplied as a collection.<T> JpaInPredicate<T> in(Expression<? extends T> expression, T... values) Create aninpredicate with literal values.<K, L extends List<?>>
JpaExpression<Set<K>> indexes(L list) Create an expression representing the indexes of the given list.<T> JpaCriteriaQuery<T> intersect(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anintersectorintersect allset operation over the given criteria queries.<T> JpaSubQuery<T> Create anintersectorintersect allset operation over the given subqueries.default <T> JpaCriteriaQuery<T> intersect(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anintersectset operation over the given criteria queries.<T> JpaCriteriaQuery<T> intersect(CriteriaQuery<? super T> left, CriteriaQuery<? super T> right) Create anintersectset operation over two criteria queries.<T> CriteriaSelect<T> intersect(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) Create aintersectset operation over two criteria selects.default <T> JpaSubQuery<T> Create anintersectset operation over the given subqueries.default <T> JpaCriteriaQuery<T> intersectAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create anintersect allset operation over the given criteria queries.<T> JpaCriteriaQuery<T> intersectAll(CriteriaQuery<? super T> left, CriteriaQuery<? super T> right) Create anintersect allset operation over two criteria queries.<T> CriteriaSelect<T> intersectAll(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) Create aintersect allset operation over two criteria selects.default <T> JpaSubQuery<T> intersectAll(Subquery<? extends T> query1, Subquery<?>... queries) Create anintersect allset operation over the given subqueries.<C extends Collection<?>>
JpaPredicateisEmpty(Expression<C> collection) Create a predicate testing whether a collection is empty.isFalse(Expression<Boolean> x) Create a predicate testing whether an expression is false.<M extends Map<?,?>>
JpaPredicateisMapEmpty(JpaExpression<M> mapExpression) Create a predicate that tests whether a Map is empty.<M extends Map<?,?>>
JpaPredicateisMapNotEmpty(JpaExpression<M> mapExpression) Create a predicate that tests whether a Map is not empty.<E, C extends Collection<E>>
JpaPredicateisMember(E elem, Expression<C> collection) Create a predicate testing whether an element is a member of a collection.<E, C extends Collection<E>>
JpaPredicateisMember(Expression<E> elem, Expression<C> collection) Create a predicate testing whether an element is a member of a collection.<C extends Collection<?>>
JpaPredicateisNotEmpty(Expression<C> collection) Create a predicate testing whether a collection is not empty.<E, C extends Collection<E>>
JpaPredicateisNotMember(E elem, Expression<C> collection) Create a predicate testing whether an element is not a member of a collection.<E, C extends Collection<E>>
JpaPredicateisNotMember(Expression<E> elem, Expression<C> collection) Create a predicate testing whether an element is not a member of a collection.isNotNull(Expression<?> x) Create a predicate testing whether an expression is not null.isNull(Expression<?> x) Create a predicate testing whether an expression is null.isTrue(Expression<Boolean> x) Create a predicate testing whether an expression is true.jsonArray(Expression<?>... values) Create a JSON array from the array of values.jsonArrayAgg(Expression<?> value) Aggregates the given value into a JSON array.jsonArrayAgg(Expression<?> value, Predicate filter) Aggregates the given value into a JSON array.jsonArrayAgg(Expression<?> value, Predicate filter, JpaOrder... orderBy) Aggregates the given value into a JSON array.jsonArrayAgg(Expression<?> value, JpaOrder... orderBy) Aggregates the given value into a JSON array.jsonArrayAggWithNulls(Expression<?> value) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array.jsonArrayAggWithNulls(Expression<?> value, Predicate filter) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array.jsonArrayAggWithNulls(Expression<?> value, Predicate filter, JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array.jsonArrayAggWithNulls(Expression<?> value, JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array.jsonArrayWithNulls(Expression<?>... values) Create a JSON object from the given array of values, retainingnullvalues in the JSON array.jsonExists(Expression<?> jsonDocument, Expression<String> jsonPath) Checks if a JSON document contains a node for the given JSON path.jsonExists(Expression<?> jsonDocument, String jsonPath) Checks if a JSON document contains a node for the given JSON path.jsonInsert(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Inserts a value by JSON path within a JSON document.jsonInsert(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Inserts a value by JSON path within a JSON document.jsonInsert(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Inserts a value by JSON path within a JSON document.jsonInsert(Expression<?> jsonDocument, String jsonPath, Object value) Inserts a value by JSON path within a JSON document.jsonMergepatch(Expression<?> document, Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.jsonMergepatch(Expression<?> document, String patch) Applies the patch JSON document onto the other JSON document and returns that.jsonMergepatch(String document, Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.jsonObject(Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values.jsonObjectAgg(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object.jsonObjectAgg(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithNulls(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.jsonObjectAggWithNulls(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.jsonObjectAggWithUniqueKeys(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithUniqueKeys(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithUniqueKeysAndNulls(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.jsonObjectAggWithUniqueKeysAndNulls(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.jsonObjectWithNulls(Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values, retainingnullvalues in the JSON.jsonQuery(Expression<?> jsonDocument, Expression<String> jsonPath) Queries values by JSON path from a JSON document.jsonQuery(Expression<?> jsonDocument, String jsonPath) jsonRemove(Expression<?> jsonDocument, Expression<String> jsonPath) Removes a value by JSON path within a JSON document.jsonRemove(Expression<?> jsonDocument, String jsonPath) Removes a value by JSON path within a JSON document.jsonReplace(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Replaces a value by JSON path within a JSON document.jsonReplace(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Replaces a value by JSON path within a JSON document.jsonReplace(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Replaces a value by JSON path within a JSON document.jsonReplace(Expression<?> jsonDocument, String jsonPath, Object value) Replaces a value by JSON path within a JSON document.jsonSet(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet(Expression<?> jsonDocument, String jsonPath, Object value) Inserts/Replaces a value by JSON path within a JSON document.jsonTable(Expression<?> jsonDocument) Creates ajson_tablefunction expression to generate rows from JSON array elements.jsonTable(Expression<?> jsonDocument, Expression<String> jsonPath) Creates ajson_tablefunction expression to generate rows from JSON array elements.jsonTable(Expression<?> jsonDocument, String jsonPath) Creates ajson_tablefunction expression to generate rows from JSON array elements.jsonValue(Expression<?> jsonDocument, Expression<String> jsonPath) <T> JpaJsonValueExpression<T> jsonValue(Expression<?> jsonDocument, Expression<String> jsonPath, Class<T> returningType) Extracts a value by JSON path from a JSON document.jsonValue(Expression<?> jsonDocument, String jsonPath) <T> JpaJsonValueExpression<T> jsonValue(Expression<?> jsonDocument, String jsonPath, Class<T> returningType) Extracts a value by JSON path from a JSON document.<T> JpaExpression<T> lastValue(Expression<T> argument, JpaWindow window) Create alast_valuewindow function expression.le(Expression<? extends Number> x, Expression<? extends Number> y) Create a less-than-or-equal predicate for numeric expressions.le(Expression<? extends Number> x, Number y) Create a less-than-or-equal predicate for numeric expressions.<X extends Comparable<? super X>>
JpaExpression<X> least(Expression<X> argument) Create an aggregate expression returning the least comparable value.left(Expression<String> x, int length) left(Expression<String> x, Expression<Integer> length) Extract thelengthleftmost characters of a string.length(Expression<String> x) Create an expression returning the length of a string.<Y extends Comparable<? super Y>>
JpaPredicatelessThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a less-than predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicatelessThan(Expression<? extends Y> x, Y y) Create a less-than predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a less-than-or-equal predicate for comparable expressions.<Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo(Expression<? extends Y> x, Y y) Create a less-than-or-equal predicate for comparable expressions.like(Expression<String> x, Expression<String> pattern) Create alikepredicate.like(Expression<String> x, Expression<String> pattern, char escapeChar) Create alikepredicate.like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create alikepredicate.like(Expression<String> x, String pattern) Create alikepredicate.like(Expression<String> x, String pattern, char escapeChar) Create alikepredicate.like(Expression<String> x, String pattern, Expression<Character> escapeChar) Create alikepredicate.likeRegexp(Expression<String> x, String pattern) Create a predicate testing whether a string expression matches a regular expression.listagg(JpaOrder order, Expression<String> argument, Expression<String> separator) listagg(JpaOrder order, Expression<String> argument, String separator) listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, Expression<String> separator) listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, String separator) listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, Expression<String> separator) Create alistaggordered set-aggregate function expression.listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, String separator) listagg(JpaOrder order, JpaWindow window, Expression<String> argument, Expression<String> separator) <T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass) Create a multivalued parameter accepting multiple arguments packaged together as aList.<T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass, String name) Create a multivalued parameter accepting multiple arguments packaged together as aList.<T> JpaExpression<T> literal(T value) Create a literal expression for the given value.<T> List<? extends JpaExpression<T>> Create literal expressions for each value in the given list.<T> List<? extends JpaExpression<T>> literals(T... values) Create literal expressions for each of the given values.ln(Expression<? extends Number> x) Create an expression that returns the natural logarithm of its argument.Create expression to return current local date.Create expression to return current local datetime.Create expression to return current local time.locate(Expression<String> x, Expression<String> pattern) Create an expression returning the position of a substring.locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) Create an expression returning the position of a substring.locate(Expression<String> x, String pattern) Create an expression returning the position of a substring.locate(Expression<String> x, String pattern, int from) Create an expression returning the position of a substring.log(Expression<? extends Number> b, Expression<? extends Number> x) Create an expression that returns the logarithm ofxto the baseb.log(Number b, Expression<? extends Number> x) log10(Expression<? extends Number> x) Create an expression that returns the base-10 logarithm of its argument.lower(Expression<String> x) Create an expression returning a lowercase string.lt(Expression<? extends Number> x, Expression<? extends Number> y) Create a less-than predicate for numeric expressions.lt(Expression<? extends Number> x, Number y) Create a less-than predicate for numeric expressions.<M extends Map<?,?>>
JpaExpression<Integer> mapSize(M map) Create an expression that tests the size of a map.<M extends Map<?,?>>
JpaExpression<Integer> mapSize(JpaExpression<M> mapExpression) Create an expression that tests the size of a map.<N extends Number>
JpaExpression<N> max(Expression<N> argument) Create an aggregate expression returning the maximum numeric value.<N extends Number>
JpaExpression<N> min(Expression<N> argument) Create an aggregate expression returning the minimum numeric value.minute(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MINUTEof a date, time, or datetime expression.mod(Expression<Integer> x, Expression<Integer> y) Create an expression returning the remainder of integer division.mod(Expression<Integer> x, Integer y) Create an expression returning the remainder of integer division.mod(Integer x, Expression<Integer> y) Create an expression returning the remainder of integer division.<T> JpaExpression<T> mode(Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> mode(JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> mode(JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) Create amodeordered set-aggregate function expression.<T> JpaExpression<T> mode(JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) month(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MONTHof a date, time, or datetime expression.<T> JpaExpression<T> named(Expression<T> expression, String name) Creates a named expression.<N extends Number>
JpaExpression<N> neg(Expression<N> x) Create an expression returning the arithmetic negation of its argument.not(Expression<Boolean> restriction) Create a negated predicate.notDistinctFrom(Expression<?> x, Expression<?> y) Create a predicate testing whether two expressions are not distinct, treating nulls as comparable values.notDistinctFrom(Expression<?> x, Object y) Create a predicate testing whether an expression and a value are not distinct, treating nulls as comparable values.notEqual(Expression<?> x, Expression<?> y) Create an inequality predicate.notEqual(Expression<?> x, Object y) Create an inequality predicate.notIlike(Expression<String> x, Expression<String> pattern) Create a negated case-insensitivelikepredicate.notIlike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a negated case-insensitivelikepredicate with an escape character.notIlike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a negated case-insensitivelikepredicate with an escape character expression.notIlike(Expression<String> x, String pattern) Create a negated case-insensitivelikepredicate.notIlike(Expression<String> x, String pattern, char escapeChar) Create a negated case-insensitivelikepredicate with an escape character.notIlike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a negated case-insensitivelikepredicate with an escape character expression.notIlikeRegexp(Expression<String> x, String pattern) Create a negated case-insensitive predicate testing whether a string expression matches a regular expression.notLike(Expression<String> x, Expression<String> pattern) Create a negatedlikepredicate.notLike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a negatedlikepredicate.notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a negatedlikepredicate.notLike(Expression<String> x, String pattern) Create a negatedlikepredicate.notLike(Expression<String> x, String pattern, char escapeChar) Create a negatedlikepredicate.notLike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a negatedlikepredicate.notLikeRegexp(Expression<String> x, String pattern) Create a negated predicate testing whether a string expression matches a regular expression.<T> JpaExpression<T> nthValue(Expression<T> argument, int n, JpaWindow window) <T> JpaExpression<T> nthValue(Expression<T> argument, Expression<Integer> n, JpaWindow window) Create anth_valuewindow function expression.<Y> JpaExpression<Y> nullif(Expression<Y> x, Expression<?> y) Create a nullif expression.<Y> JpaExpression<Y> nullif(Expression<Y> x, Y y) Create a nullif expression.<T> JpaExpression<T> nullLiteral(Class<T> resultClass) Create a null literal expression of the given type.or(BooleanExpression... restrictions) Create a disjunction predicate.or(Expression<Boolean> x, Expression<Boolean> y) Create a disjunction predicate.Deprecated.Prefer or(BooleanExpression...) instead.or(List<? extends Expression<Boolean>> restrictions) Create a disjunction predicate.overlay(Expression<String> string, Expression<String> replacement, int start) overlay(Expression<String> string, Expression<String> replacement, int start, int length) overlay(Expression<String> string, Expression<String> replacement, int start, Expression<Integer> length) overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start) overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, int length) overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, Expression<Integer> length) Overlay thestringexpression with thereplacementexpression, starting from indexstartand substituting a number of characters corresponding to the length of thereplacementexpression or thelengthparameter if specified.overlay(Expression<String> string, String replacement, int start) overlay(Expression<String> string, String replacement, int start, int length) overlay(Expression<String> string, String replacement, int start, Expression<Integer> length) overlay(Expression<String> string, String replacement, Expression<Integer> start) overlay(Expression<String> string, String replacement, Expression<Integer> start, int length) overlay(Expression<String> string, String replacement, Expression<Integer> start, Expression<Integer> length) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, char padChar) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, Expression<Character> padChar) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, char padChar) pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, Expression<Character> padChar) Pad the specified string expression with whitespace or with thepadCharcharacter if specified.pad(Expression<String> x, int length) pad(Expression<String> x, int length, char padChar) pad(Expression<String> x, int length, Expression<Character> padChar) pad(Expression<String> x, Expression<Integer> length) pad(Expression<String> x, Expression<Integer> length, char padChar) pad(Expression<String> x, Expression<Integer> length, Expression<Character> padChar) <T> JpaParameterExpression<T> Create a parameter expression.<T> JpaParameterExpression<T> Create a parameter expression.<T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) Create apercentile_contordered set-aggregate function expression.<T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) Create apercentile_discordered set-aggregate function expression.<T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) percentRank(JpaOrder order, Expression<?>... arguments) percentRank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments) percentRank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments) Create apercent_rankordered set-aggregate function expression.percentRank(JpaOrder order, JpaWindow window, Expression<?>... arguments) percentRank(JpaWindow window) Create apercent_rankwindow function expression.pi()Literal expression corresponding to the value of pi.power(Expression<? extends Number> x, Expression<? extends Number> y) Create an expression that returns the first argument raised to the power of its second argument.power(Expression<? extends Number> x, Number y) Create an expression that returns the first argument raised to the power of its second argument.<N extends Number>
JpaExpression<N> prod(Expression<? extends N> x, Expression<? extends N> y) Create an expression returning a numeric product.<N extends Number>
JpaExpression<N> prod(Expression<? extends N> x, N y) Create an expression returning a numeric product.<N extends Number>
JpaExpression<N> prod(N x, Expression<? extends N> y) Create an expression returning a numeric product.quot(Expression<? extends Number> x, Expression<? extends Number> y) Create an expression returning a numeric quotient.quot(Expression<? extends Number> x, Number y) Create an expression returning a numeric quotient.quot(Number x, Expression<? extends Number> y) Create an expression returning a numeric quotient.radians(Expression<? extends Number> x) Create an expression that converts an angle measured in degrees to an approximately equivalent angle measured in radians.rank(JpaOrder order, Expression<?>... arguments) rank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments) rank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments) Create arankordered set-aggregate function expression.rank(JpaOrder order, JpaWindow window, Expression<?>... arguments) Create arankwindow function expression.repeat(Expression<String> x, int times) Concatenate the given string expression with itself the given number of times.repeat(Expression<String> x, Expression<Integer> times) Concatenate the given string expression with itself the given number of times.repeat(String x, Expression<Integer> times) Concatenate the given string expression with itself the given number of times.replace(Expression<String> x, Expression<String> pattern, Expression<String> replacement) Replace all occurrences ofpatternwithin the original string withreplacement.replace(Expression<String> x, Expression<String> pattern, String replacement) replace(Expression<String> x, String pattern, Expression<String> replacement) replace(Expression<String> x, String pattern, String replacement) right(Expression<String> x, int length) right(Expression<String> x, Expression<Integer> length) Extract thelengthrightmost characters of a string.<T extends Number>
JpaExpression<T> round(Expression<T> x, Integer n) Create an expression that returns the first argument rounded to the number of decimal places given by the second argument.Create arow_numberwindow function expression.search(JpaCteCriteriaAttribute cteAttribute) Create a search ordering based on the ascending value of the CTE attribute.search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder) Create a search ordering based on the sort order of the value of the CTE attribute.search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder, Nulls nullPrecedence) Create a search ordering based on the sort order and null precedence of the value of the CTE attribute.second(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.SECONDof a date, time, or datetime expression.<R> JpaSearchedCase<R> Create a searched case expression.<C,R> JpaSimpleCase <C, R> selectCase(Expression<? extends C> expression) Create a simple case expression.<C,R> JpaSimpleCase <C, R> selectCase(Expression<? extends C> expression, Class<R> resultType) Create a case expression with the given result type.<R> JpaSearchedCase<R> selectCase(Class<R> resultType) Create a case expression with the given result type.<E> JpaSetReturningFunction<E> setReturningFunction(String name, Expression<?>... args) Create a new set-returning function expression.sign(Expression<? extends Number> x) Create an expression that returns the sign of its argument, that is,1if its argument is positive,-1if its argument is negative, or0if its argument is exactly zero.sin(Expression<? extends Number> x) Create an expression that returns the sine of its argument.sinh(Expression<? extends Number> x) Create an expression that returns the hyperbolic sine of its argument.<C extends Collection<?>>
JpaExpression<Integer> size(C collection) Create an expression returning the size of a collection.<C extends Collection<?>>
JpaExpression<Integer> size(Expression<C> collection) Create an expression returning the size of a collection.<Y> JpaExpression<Y> Create asomequantified expression over a subquery.sort(JpaExpression<?> sortExpression) Create an ordering for the given sort expression.sort(JpaExpression<?> sortExpression, SortDirection sortOrder) Create an ordering for the given sort expression and direction.sort(JpaExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) Create an ordering for the given sort expression, direction, and null precedence.sort(JpaExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence, boolean ignoreCase) Create an ordering for the given sort expression with optional case-insensitive comparison.<T> JpaExpression<T> sql(String pattern, Class<T> type, Expression<?>... arguments) Embed nativepatternthat will be unquoted and embedded in the generated SQL.sqrt(Expression<? extends Number> x) Create an expression returning the square root of its argument.substring(Expression<String> x, int from) Create a substring expression.substring(Expression<String> x, int from, int len) Create a substring expression.substring(Expression<String> x, Expression<Integer> from) Create a substring expression.substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) Create a substring expression.<T extends Temporal>
JpaExpression<T> subtractDuration(Expression<T> datetime, Expression<Duration> duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.<T extends Temporal>
JpaExpression<T> subtractDuration(Expression<T> datetime, Duration duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.<T extends Temporal>
JpaExpression<T> subtractDuration(T datetime, Expression<Duration> duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.<N extends Number>
JpaExpression<N> sum(Expression<? extends N> x, Expression<? extends N> y) Create an expression returning a numeric sum.<N extends Number>
JpaExpression<N> sum(Expression<? extends N> x, N y) Create an expression returning a numeric sum.<N extends Number>
JpaExpression<N> sum(Expression<N> argument) Create an expression returning a numeric sum.<N extends Number>
JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter) <N extends Number>
JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter, JpaWindow window) Create asumaggregate function expression.<N extends Number>
JpaExpression<Number> sum(Expression<N> argument, JpaWindow window) <N extends Number>
JpaExpression<N> sum(N x, Expression<? extends N> y) Create an expression returning a numeric sum.sumAsDouble(Expression<Float> argument) Create an aggregate expression returning the sum as a Double.sumAsLong(Expression<Integer> argument) Create an aggregate expression returning the sum as a Long.tan(Expression<? extends Number> x) Create an expression that returns the tangent of its argument.tanh(Expression<? extends Number> x) Create an expression that returns the hyperbolic tangent of its argument.toBigDecimal(Expression<? extends Number> number) Create an expression converted to BigDecimal.toBigInteger(Expression<? extends Number> number) Create an expression converted to BigInteger.toDouble(Expression<? extends Number> number) Create an expression converted to Double.toFloat(Expression<? extends Number> number) Create an expression converted to Float.toInteger(Expression<? extends Number> number) Create an expression converted to Integer.toLong(Expression<? extends Number> number) Create an expression converted to Long.toString(Expression<Character> character) Create an expression converted to String.<X, T, E extends T>
JpaCollectionJoin<X, E> treat(CollectionJoin<X, T> join, Class<E> type) Downcast the given collection join to the specified subtype.<X, Y, T extends Y>
JpaFrom<X, T> Downcast the given from element to the specified subtype.<X, T, V extends T>
JpaJoin<X, V> Downcast the given join to the specified subtype.<X, T, E extends T>
JpaListJoin<X, E> Downcast the given list join to the specified subtype.<X, K, T, V extends T>
JpaMapJoin<X, K, V> Downcast the given map join to the specified subtype.<X, T extends X>
JpaPath<T> Downcast the given path to the specified subtype.<X, T extends X>
JpaRoot<T> Downcast the given root to the specified subtype.<X, T, E extends T>
JpaSetJoin<X, E> Downcast the given set join to the specified subtype.trim(char t, Expression<String> x) Create a trim expression.trim(CriteriaBuilder.Trimspec ts, char t, Expression<String> x) Create a trim expression.trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) Create a trim expression.trim(CriteriaBuilder.Trimspec ts, Expression<String> x) Create a trim expression.trim(Expression<Character> t, Expression<String> x) Create a trim expression.trim(Expression<String> x) Create a trim expression.<T extends Number>
JpaExpression<T> truncate(Expression<T> x, Integer n) Create an expression that returns the first argument truncated to the number of decimal places given by the second argument.<T extends TemporalAccessor>
JpaFunction<T> truncate(Expression<T> datetime, TemporalUnit temporalUnit) Truncates a date, time or datetime expression to the givenTemporalUnit.Create a tuple-valued compound selection.Create a tuple-valued compound selection from a list of selections.<T> JpaCriteriaQuery<T> union(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create aunionorunion allset operation over the given criteria queries.<T> JpaSubQuery<T> Create aunionorunion allset operation over the given subqueries.default <T> JpaCriteriaQuery<T> union(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create aunionset operation over the given criteria queries.<T> JpaCriteriaQuery<T> union(CriteriaQuery<? extends T> left, CriteriaQuery<? extends T> right) Create aunionset operation over two criteria queries.<T> CriteriaSelect<T> union(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) Create aunionset operation over two criteria selects.default <T> JpaSubQuery<T> Create aunionset operation over the given subqueries.default <T> JpaCriteriaQuery<T> unionAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) Create aunion allset operation over the given criteria queries.<T> JpaCriteriaQuery<T> unionAll(CriteriaQuery<? extends T> left, CriteriaQuery<? extends T> right) Create aunion allset operation over two criteria queries.<T> CriteriaSelect<T> unionAll(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) Create aunion allset operation over two criteria selects.default <T> JpaSubQuery<T> unionAll(JpaSubQuery<? extends T> query1, JpaSubQuery<? extends T> query2) Create aunion allset operation over two subqueries.<E> JpaSetReturningFunction<E> unnestArray(Expression<E[]> array) Creates an unnest function expression to turn an array into a set of rows.<E> JpaSetReturningFunction<E> unnestCollection(Expression<? extends Collection<E>> collection) Creates an unnest function expression to turn an array into a set of rows.<T extends HibernateCriteriaBuilder>
TUnwrap this criteria builder to a Hibernate criteria builder extension.upper(Expression<String> x) Create an expression returning an uppercase string.<T> JpaExpression<T> value(T value) Create an expression for a Java value, using the configured value handling mode.values(Expression<?>... expressions) Create a row of values for an insert-values criteria statement.values(List<? extends Expression<?>> expressions) Create a row of values for an insert-values criteria statement.Create an expression representing the version of the given path.<T> JpaExpression<T> windowFunction(String name, Class<T> type, JpaWindow window, Expression<?>... args) Create a generic window function expression that will be applied over the specifiedwindow.wrap(BooleanExpression... expressions) Wrap boolean expressions as predicates and combine them with conjunction.wrap(Expression<Boolean> expression) Wrap a boolean expression as a predicate.wrap(Expression<Boolean>... expressions) Wrap boolean expressions as predicates and combine them with conjunction.xmlagg(JpaOrder order, Expression<?> argument) xmlagg(JpaOrder order, JpaPredicate filter, Expression<?> argument) xmlagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?> argument) Create axmlaggordered set-aggregate function expression.xmlagg(JpaOrder order, JpaWindow window, Expression<?> argument) xmlcomment(String comment) Creates an XML comment with the given argument as content.xmlconcat(Expression<?>... elements) Concatenates the given XML element expressions.xmlconcat(List<? extends Expression<?>> elements) Concatenates the given XML element expressions.xmlelement(String elementName) Creates an XML element with the given element name.xmlexists(Expression<String> query, Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.xmlexists(String query, Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.xmlforest(Expression<?>... elements) Creates an XML forest from the given XML element expressions.xmlforest(List<? extends Expression<?>> elements) Creates an XML forest from the given XML element expressions.Creates an XML processing with the given name.xmlpi(String elementName, Expression<String> content) Creates an XML processing with the given name and content.xmlquery(Expression<String> query, Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.xmlquery(String query, Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.xmlTable(Expression<String> xpath, Expression<?> xmlDocument) Creates axmltablefunction expression to generate rows from XML elements.xmlTable(String xpath, Expression<?> xmlDocument) Creates axmltablefunction expression to generate rows from XML elements.year(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.YEARof a date, time, or datetime expression.Methods inherited from interface CriteriaBuilder
asc, augment, augment, augment, booleanLiteral, convertedParameter, createCriteriaDelete, createCriteriaDelete, createCriteriaUpdate, createCriteriaUpdate, createQuery, createQuery, desc, greatest, greatest, least, least, numericLiteral, stringLiteral, temporalLiteral
-
Method Details
-
cast
@Nonnull <X,T> JpaExpression<X> cast(@Nonnull JpaExpression<T> expression, @Nonnull Class<X> castTargetJavaType) Create an expression that casts the given expression to the specified Java type.- Type Parameters:
X- The target expression typeT- The source expression type- Parameters:
expression- The expression to castcastTargetJavaType- The target Java type- Returns:
- the cast expression
-
cast
@Nonnull <X,T> JpaExpression<X> cast(@Nonnull JpaExpression<T> expression, @Nonnull JpaCastTarget<X> castTarget) Create an expression that casts the given expression to the specified cast target.- Type Parameters:
X- The target expression typeT- The source expression type- Parameters:
expression- The expression to castcastTarget- The cast target descriptor- Returns:
- the cast expression
-
castTarget
Create a cast target for the given Java type.- Type Parameters:
X- The target type- Parameters:
castTargetJavaType- The target Java type- Returns:
- the cast target descriptor
-
castTarget
Create a cast target for the given Java type and SQL type length.- Type Parameters:
X- The target type- Parameters:
castTargetJavaType- The target Java typelength- The SQL type length- Returns:
- the cast target descriptor
-
castTarget
@Nonnull <X> JpaCastTarget<X> castTarget(@Nonnull Class<X> castTargetJavaType, int precision, int scale) Create a cast target for the given Java type, precision, and scale.- Type Parameters:
X- The target type- Parameters:
castTargetJavaType- The target Java typeprecision- The SQL type precisionscale- The SQL type scale- Returns:
- the cast target descriptor
-
wrap
Wrap a boolean expression as a predicate.- Parameters:
expression- The boolean expression- Returns:
- the predicate representing the expression
-
wrap
Wrap boolean expressions as predicates and combine them with conjunction.- Parameters:
expressions- The boolean expressions- Returns:
- the conjunction of the wrapped predicates
-
wrap
Wrap boolean expressions as predicates and combine them with conjunction.- Parameters:
expressions- The boolean expressions- Returns:
- the conjunction of the wrapped predicates
-
unwrap
Unwrap this criteria builder to a Hibernate criteria builder extension.- Type Parameters:
T- The extension type- Parameters:
clazz- The extension type to obtain- Returns:
- the requested extension
-
createQuery
Create a criteria query.- Specified by:
createQueryin interfaceCriteriaBuilder
-
createQuery
Create a criteria query for the given result type.- Specified by:
createQueryin interfaceCriteriaBuilder
-
createTupleQuery
Create a tuple-valued criteria query.- Specified by:
createTupleQueryin interfaceCriteriaBuilder
-
createCriteriaUpdate
Create a criteria update statement for the given entity type.- Specified by:
createCriteriaUpdatein interfaceCriteriaBuilder
-
createCriteriaDelete
Create a criteria delete statement for the given entity type.- Specified by:
createCriteriaDeletein interfaceCriteriaBuilder
-
createCriteriaInsertValues
Create a criteria insert statement which supplies explicit values.- Type Parameters:
T- The target entity type- Parameters:
targetEntity- The target entity type- Returns:
- a new insert-values criteria statement
-
createCriteriaInsertSelect
Create a criteria insert statement which obtains inserted values from a select query.- Type Parameters:
T- The target entity type- Parameters:
targetEntity- The target entity type- Returns:
- a new insert-select criteria statement
-
values
Create a row of values for an insert-values criteria statement.- Parameters:
expressions- The value expressions in row order- Returns:
- the values row
-
values
@Nonnull @Incubating(since="6.3") JpaValues values(@Nonnull List<? extends Expression<?>> expressions) Create a row of values for an insert-values criteria statement.- Parameters:
expressions- The value expressions in row order- Returns:
- the values row
-
createQuery
-
unionAll
@Nonnull default <T> JpaCriteriaQuery<T> unionAll(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create aunion allset operation over the given criteria queries. -
union
@Nonnull default <T> JpaCriteriaQuery<T> union(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create aunionset operation over the given criteria queries. -
union
@Nonnull <T> JpaCriteriaQuery<T> union(boolean all, @Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create aunionorunion allset operation over the given criteria queries. -
intersectAll
@Nonnull default <T> JpaCriteriaQuery<T> intersectAll(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anintersect allset operation over the given criteria queries. -
intersect
@Nonnull default <T> JpaCriteriaQuery<T> intersect(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anintersectset operation over the given criteria queries. -
intersect
@Nonnull <T> JpaCriteriaQuery<T> intersect(boolean all, @Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anintersectorintersect allset operation over the given criteria queries. -
exceptAll
@Nonnull default <T> JpaCriteriaQuery<T> exceptAll(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anexcept allset operation over the given criteria queries. -
except
@Nonnull default <T> JpaCriteriaQuery<T> except(@Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anexceptset operation over the given criteria queries. -
except
@Nonnull <T> JpaCriteriaQuery<T> except(boolean all, @Nonnull CriteriaQuery<? extends T> query1, @Nonnull CriteriaQuery<?>... queries) Create anexceptorexcept allset operation over the given criteria queries. -
union
@Nonnull <T> CriteriaSelect<T> union(@Nonnull CriteriaSelect<? extends T> left, @Nonnull CriteriaSelect<? extends T> right) Create aunionset operation over two criteria selects.- Specified by:
unionin interfaceCriteriaBuilder
-
union
@Nonnull <T> JpaCriteriaQuery<T> union(@Nonnull CriteriaQuery<? extends T> left, @Nonnull CriteriaQuery<? extends T> right) Create aunionset operation over two criteria queries. -
union
-
union
-
unionAll
@Nonnull default <T> JpaSubQuery<T> unionAll(@Nonnull JpaSubQuery<? extends T> query1, @Nonnull JpaSubQuery<? extends T> query2) Create aunion allset operation over two subqueries. -
unionAll
@Nonnull <T> CriteriaSelect<T> unionAll(@Nonnull CriteriaSelect<? extends T> left, @Nonnull CriteriaSelect<? extends T> right) Create aunion allset operation over two criteria selects.- Specified by:
unionAllin interfaceCriteriaBuilder
-
unionAll
@Nonnull <T> JpaCriteriaQuery<T> unionAll(@Nonnull CriteriaQuery<? extends T> left, @Nonnull CriteriaQuery<? extends T> right) Create aunion allset operation over two criteria queries. -
intersect
@Nonnull <T> CriteriaSelect<T> intersect(@Nonnull CriteriaSelect<? super T> left, @Nonnull CriteriaSelect<? super T> right) Create aintersectset operation over two criteria selects.- Specified by:
intersectin interfaceCriteriaBuilder
-
intersectAll
@Nonnull <T> CriteriaSelect<T> intersectAll(@Nonnull CriteriaSelect<? super T> left, @Nonnull CriteriaSelect<? super T> right) Create aintersect allset operation over two criteria selects.- Specified by:
intersectAllin interfaceCriteriaBuilder
-
intersect
@Nonnull <T> JpaCriteriaQuery<T> intersect(@Nonnull CriteriaQuery<? super T> left, @Nonnull CriteriaQuery<? super T> right) Create anintersectset operation over two criteria queries. -
intersectAll
@Nonnull <T> JpaCriteriaQuery<T> intersectAll(@Nonnull CriteriaQuery<? super T> left, @Nonnull CriteriaQuery<? super T> right) Create anintersect allset operation over two criteria queries. -
intersectAll
-
intersect
-
intersect
-
except
@Nonnull <T> CriteriaSelect<T> except(@Nonnull CriteriaSelect<T> left, @Nonnull CriteriaSelect<?> right) Create aexceptset operation over two criteria selects.- Specified by:
exceptin interfaceCriteriaBuilder
-
exceptAll
@Nonnull <T> CriteriaSelect<T> exceptAll(@Nonnull CriteriaSelect<T> left, @Nonnull CriteriaSelect<?> right) Create aexcept allset operation over two criteria selects.- Specified by:
exceptAllin interfaceCriteriaBuilder
-
except
@Nonnull <T> JpaCriteriaQuery<T> except(@Nonnull CriteriaQuery<T> left, @Nonnull CriteriaQuery<?> right) Create anexceptset operation over two criteria queries. -
exceptAll
@Nonnull <T> JpaCriteriaQuery<T> exceptAll(@Nonnull CriteriaQuery<T> left, @Nonnull CriteriaQuery<?> right) Create anexcept allset operation over two criteria queries. -
exceptAll
-
except
-
except
-
sign
Create an expression that returns the sign of its argument, that is,1if its argument is positive,-1if its argument is negative, or0if its argument is exactly zero.- Specified by:
signin interfaceCriteriaBuilder- Parameters:
x- The expression- Returns:
- the sign
-
ceiling
Create an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument.- Specified by:
ceilingin interfaceCriteriaBuilder- Parameters:
x- The expression- Returns:
- the ceiling
-
floor
Create an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument.- Specified by:
floorin interfaceCriteriaBuilder- Parameters:
x- The expression- Returns:
- the floor
-
exp
Create an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument.- Specified by:
expin interfaceCriteriaBuilder- Parameters:
x- The expression- Returns:
- the exponential
-
ln
Create an expression that returns the natural logarithm of its argument.- Specified by:
lnin interfaceCriteriaBuilder- Parameters:
x- The expression- Returns:
- the natural logarithm
-
power
@Nonnull JpaExpression<Double> power(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create an expression that returns the first argument raised to the power of its second argument.- Specified by:
powerin interfaceCriteriaBuilder- Parameters:
x- The basey- The exponent- Returns:
- the base raised to the power of the exponent
-
power
Create an expression that returns the first argument raised to the power of its second argument.- Specified by:
powerin interfaceCriteriaBuilder- Parameters:
x- The basey- The exponent- Returns:
- the base raised to the power of the exponent
-
round
Create an expression that returns the first argument rounded to the number of decimal places given by the second argument.- Specified by:
roundin interfaceCriteriaBuilder- Parameters:
x- The basen- The number of decimal places- Returns:
- the rounded value
-
truncate
@Nonnull <T extends Number> JpaExpression<T> truncate(@Nonnull Expression<T> x, @Nullable Integer n) Create an expression that returns the first argument truncated to the number of decimal places given by the second argument.- Parameters:
x- The basen- The number of decimal places- Returns:
- the truncated value
-
localDate
Create expression to return current local date.- Specified by:
localDatein interfaceCriteriaBuilder- Returns:
- the expression for the current date
-
localDateTime
Create expression to return current local datetime.- Specified by:
localDateTimein interfaceCriteriaBuilder- Returns:
- the expression for the current timestamp
-
localTime
Create expression to return current local time.- Specified by:
localTimein interfaceCriteriaBuilder- Returns:
- the expression for the current time
-
id
Create an expression representing the identifier of the given path.- Parameters:
path- The entity path- Returns:
- the identifier expression
-
version
Create an expression representing the version of the given path.- Parameters:
path- The entity path- Returns:
- the version expression
-
fk
Create an expression representing the foreign key of the given association path.- Parameters:
path- The association path- Returns:
- the foreign-key expression
-
treat
-
treat
-
treat
-
treat
-
treat
@Nonnull <X, T, E extends T> JpaCollectionJoin<X,E> treat(@Nonnull CollectionJoin<X, T> join, @Nonnull Class<E> type) Downcast the given collection join to the specified subtype.- Specified by:
treatin interfaceCriteriaBuilder
-
treat
@Nonnull <X, T, E extends T> JpaSetJoin<X,E> treat(@Nonnull SetJoin<X, T> join, @Nonnull Class<E> type) Downcast the given set join to the specified subtype.- Specified by:
treatin interfaceCriteriaBuilder
-
treat
@Nonnull <X, T, E extends T> JpaListJoin<X,E> treat(@Nonnull ListJoin<X, T> join, @Nonnull Class<E> type) Downcast the given list join to the specified subtype.- Specified by:
treatin interfaceCriteriaBuilder
-
treat
@Nonnull <X, K, T, V extends T> JpaMapJoin<X,K, treatV> (@Nonnull MapJoin<X, K, T> join, @Nonnull Class<V> type) Downcast the given map join to the specified subtype.- Specified by:
treatin interfaceCriteriaBuilder
-
construct
@Nonnull <Y> JpaCompoundSelection<Y> construct(@Nonnull Class<Y> resultClass, @Nonnull Selection<?>... selections) Create a compound selection using the specified result type constructor.- Specified by:
constructin interfaceCriteriaBuilder
-
construct
@Nonnull <Y> JpaCompoundSelection<Y> construct(@Nonnull Class<Y> resultClass, @Nonnull List<? extends Selection<?>> arguments) Create a compound selection whose arguments are supplied as a list.- Type Parameters:
Y- The result type- Parameters:
resultClass- The compound selection result typearguments- The selection arguments- Returns:
- the compound selection
-
tuple
Create a tuple-valued compound selection.- Specified by:
tuplein interfaceCriteriaBuilder
-
tuple
Create a tuple-valued compound selection from a list of selections.- Specified by:
tuplein interfaceCriteriaBuilder
-
array
Create an array-valued compound selection.- Specified by:
arrayin interfaceCriteriaBuilder
-
array
Create an array-valued compound selection from a list of selections.- Specified by:
arrayin interfaceCriteriaBuilder
-
array
-
array
-
avg
Create an aggregate expression returning the average of numeric values.- Specified by:
avgin interfaceCriteriaBuilder
-
sum
Create an expression returning a numeric sum.- Specified by:
sumin interfaceCriteriaBuilder
-
sumAsLong
Create an aggregate expression returning the sum as a Long.- Specified by:
sumAsLongin interfaceCriteriaBuilder
-
sumAsDouble
Create an aggregate expression returning the sum as a Double.- Specified by:
sumAsDoublein interfaceCriteriaBuilder
-
max
Create an aggregate expression returning the maximum numeric value.- Specified by:
maxin interfaceCriteriaBuilder
-
min
Create an aggregate expression returning the minimum numeric value.- Specified by:
minin interfaceCriteriaBuilder
-
greatest
@Nonnull <X extends Comparable<? super X>> JpaExpression<X> greatest(@Nonnull Expression<X> argument) Create an aggregate expression returning the greatest comparable value.- Specified by:
greatestin interfaceCriteriaBuilder
-
least
Create an aggregate expression returning the least comparable value.- Specified by:
leastin interfaceCriteriaBuilder
-
count
Create an aggregate expression returning a row count.- Specified by:
countin interfaceCriteriaBuilder
-
countDistinct
Create an aggregate expression returning the count of distinct values.- Specified by:
countDistinctin interfaceCriteriaBuilder
-
count
Equivalent to HQLcount(*). -
neg
Create an expression returning the arithmetic negation of its argument.- Specified by:
negin interfaceCriteriaBuilder
-
abs
Create an expression returning the absolute value of its argument.- Specified by:
absin interfaceCriteriaBuilder
-
sum
@Nonnull <N extends Number> JpaExpression<N> sum(@Nonnull Expression<? extends N> x, @Nonnull Expression<? extends N> y) Create an expression returning a numeric sum.- Specified by:
sumin interfaceCriteriaBuilder
-
sum
Create an expression returning a numeric sum.- Specified by:
sumin interfaceCriteriaBuilder
-
sum
Create an expression returning a numeric sum.- Specified by:
sumin interfaceCriteriaBuilder
-
prod
@Nonnull <N extends Number> JpaExpression<N> prod(@Nonnull Expression<? extends N> x, @Nonnull Expression<? extends N> y) Create an expression returning a numeric product.- Specified by:
prodin interfaceCriteriaBuilder
-
prod
@Nonnull <N extends Number> JpaExpression<N> prod(@Nonnull Expression<? extends N> x, @Nullable N y) Create an expression returning a numeric product.- Specified by:
prodin interfaceCriteriaBuilder
-
prod
@Nonnull <N extends Number> JpaExpression<N> prod(@Nullable N x, @Nonnull Expression<? extends N> y) Create an expression returning a numeric product.- Specified by:
prodin interfaceCriteriaBuilder
-
diff
@Nonnull <N extends Number> JpaExpression<N> diff(@Nonnull Expression<? extends N> x, @Nonnull Expression<? extends N> y) Create an expression returning a numeric difference.- Specified by:
diffin interfaceCriteriaBuilder
-
diff
@Nonnull <N extends Number> JpaExpression<N> diff(@Nonnull Expression<? extends N> x, @Nullable N y) Create an expression returning a numeric difference.- Specified by:
diffin interfaceCriteriaBuilder
-
diff
@Nonnull <N extends Number> JpaExpression<N> diff(@Nullable N x, @Nonnull Expression<? extends N> y) Create an expression returning a numeric difference.- Specified by:
diffin interfaceCriteriaBuilder
-
quot
@Nonnull JpaExpression<Number> quot(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create an expression returning a numeric quotient.- Specified by:
quotin interfaceCriteriaBuilder
-
quot
Create an expression returning a numeric quotient.- Specified by:
quotin interfaceCriteriaBuilder
-
quot
Create an expression returning a numeric quotient.- Specified by:
quotin interfaceCriteriaBuilder
-
mod
Create an expression returning the remainder of integer division.- Specified by:
modin interfaceCriteriaBuilder
-
mod
Create an expression returning the remainder of integer division.- Specified by:
modin interfaceCriteriaBuilder
-
mod
Create an expression returning the remainder of integer division.- Specified by:
modin interfaceCriteriaBuilder
-
sqrt
Create an expression returning the square root of its argument.- Specified by:
sqrtin interfaceCriteriaBuilder
-
durationSum
@Nonnull JpaExpression<Duration> durationSum(@Nonnull Expression<Duration> x, @Nonnull Expression<Duration> y) Add two durations.- Since:
- 6.3
-
durationSum
Add two durations.- Since:
- 6.3
-
durationDiff
@Nonnull JpaExpression<Duration> durationDiff(@Nonnull Expression<Duration> x, @Nonnull Expression<Duration> y) Subtract one duration from another.- Since:
- 6.3
-
durationDiff
@Nonnull JpaExpression<Duration> durationDiff(@Nonnull Expression<Duration> x, @Nullable Duration y) Subtract one duration from another.- Since:
- 6.3
-
durationScaled
@Nonnull JpaExpression<Duration> durationScaled(@Nonnull Expression<? extends Number> number, @Nonnull Expression<Duration> duration) Scale a duration by a number.- Since:
- 6.3
-
durationScaled
@Nonnull JpaExpression<Duration> durationScaled(@Nullable Number number, @Nonnull Expression<Duration> duration) Scale a duration by a number.- Since:
- 6.3
-
durationScaled
@Nonnull JpaExpression<Duration> durationScaled(@Nonnull Expression<? extends Number> number, @Nullable Duration duration) Scale a duration by a number.- Since:
- 6.3
-
duration
@Nonnull @Incubating(since="6.3") JpaExpression<Duration> duration(long magnitude, @Nonnull TemporalUnit unit) A literalDuration, for example, "five days" or "30 minutes".- Since:
- 6.3
-
durationByUnit
@Nonnull @Incubating(since="6.3") JpaExpression<Long> durationByUnit(@Nonnull TemporalUnit unit, @Nonnull Expression<Duration> duration) Convert aDurationto a numeric magnitude in the given units.- Parameters:
unit- The temporal granularityduration- The duration in a "unit-free" form- Returns:
- the magnitude of the duration measured in the given units
- Since:
- 6.3
-
durationBetween
@Nonnull <T extends Temporal> JpaExpression<Duration> durationBetween(@Nonnull Expression<T> x, @Nonnull Expression<T> y) Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.- Since:
- 6.3
-
durationBetween
@Nonnull <T extends Temporal> JpaExpression<Duration> durationBetween(@Nonnull Expression<T> x, @Nullable T y) Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.- Since:
- 6.3
-
addDuration
@Nonnull <T extends Temporal> JpaExpression<T> addDuration(@Nonnull Expression<T> datetime, @Nonnull Expression<Duration> duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
addDuration
@Nonnull <T extends Temporal> JpaExpression<T> addDuration(@Nonnull Expression<T> datetime, @Nullable Duration duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
addDuration
@Nonnull <T extends Temporal> JpaExpression<T> addDuration(@Nullable T datetime, @Nonnull Expression<Duration> duration) Add a duration to a date or datetime, that is, return a later date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
subtractDuration
@Nonnull <T extends Temporal> JpaExpression<T> subtractDuration(@Nonnull Expression<T> datetime, @Nonnull Expression<Duration> duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
subtractDuration
@Nonnull <T extends Temporal> JpaExpression<T> subtractDuration(@Nonnull Expression<T> datetime, @Nullable Duration duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
subtractDuration
@Nonnull <T extends Temporal> JpaExpression<T> subtractDuration(@Nullable T datetime, @Nonnull Expression<Duration> duration) Subtract a duration to a date or datetime, that is, return an earlier date or datetime which is separated from the given date or datetime by the given duration.- Since:
- 6.3
-
toLong
Create an expression converted to Long.- Specified by:
toLongin interfaceCriteriaBuilder
-
toInteger
Create an expression converted to Integer.- Specified by:
toIntegerin interfaceCriteriaBuilder
-
toFloat
Create an expression converted to Float.- Specified by:
toFloatin interfaceCriteriaBuilder
-
toDouble
Create an expression converted to Double.- Specified by:
toDoublein interfaceCriteriaBuilder
-
toBigDecimal
Create an expression converted to BigDecimal.- Specified by:
toBigDecimalin interfaceCriteriaBuilder
-
toBigInteger
Create an expression converted to BigInteger.- Specified by:
toBigIntegerin interfaceCriteriaBuilder
-
toString
Create an expression converted to String.- Specified by:
toStringin interfaceCriteriaBuilder
-
literal
Create a literal expression for the given value.- Specified by:
literalin interfaceCriteriaBuilder
-
literals
Create literal expressions for each of the given values. -
literals
Create literal expressions for each value in the given list. -
nullLiteral
Create a null literal expression of the given type.- Specified by:
nullLiteralin interfaceCriteriaBuilder
-
parameter
Create a parameter expression.- Specified by:
parameterin interfaceCriteriaBuilder
-
parameter
@Nonnull <T> JpaParameterExpression<T> parameter(@Nonnull Class<T> paramClass, @Nonnull String name) Create a parameter expression.- Specified by:
parameterin interfaceCriteriaBuilder
-
listParameter
Create a multivalued parameter accepting multiple arguments packaged together as aList.- Type Parameters:
T- The type of each argument to the parameter- Parameters:
paramClass- The type of each argument to the parameter- Since:
- 7.0
-
listParameter
@Nonnull <T> JpaParameterExpression<List<T>> listParameter(@Nonnull Class<T> paramClass, @Nullable String name) Create a multivalued parameter accepting multiple arguments packaged together as aList.- Type Parameters:
T- The type of each argument to the parameter- Parameters:
paramClass- The type of each argument to the parametername- The parameter name- Since:
- 7.0
-
concat
Create a string concatenation expression.- Specified by:
concatin interfaceCriteriaBuilder
-
concat
Create a string concatenation expression.- Specified by:
concatin interfaceCriteriaBuilder
-
concat
Create a string concatenation expression.- Specified by:
concatin interfaceCriteriaBuilder
-
concat
-
substring
@Nonnull JpaFunction<String> substring(@Nonnull Expression<String> x, @Nonnull Expression<Integer> from) Create a substring expression.- Specified by:
substringin interfaceCriteriaBuilder
-
substring
Create a substring expression.- Specified by:
substringin interfaceCriteriaBuilder
-
substring
@Nonnull JpaFunction<String> substring(@Nonnull Expression<String> x, @Nonnull Expression<Integer> from, @Nonnull Expression<Integer> len) Create a substring expression.- Specified by:
substringin interfaceCriteriaBuilder
-
substring
Create a substring expression.- Specified by:
substringin interfaceCriteriaBuilder
-
trim
Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
trim
@Nonnull JpaFunction<String> trim(@Nonnull CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x) Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
trim
Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
trim
@Nonnull JpaFunction<String> trim(@Nonnull CriteriaBuilder.Trimspec ts, @Nonnull Expression<Character> t, @Nonnull Expression<String> x) Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
trim
Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
trim
@Nonnull JpaFunction<String> trim(@Nonnull CriteriaBuilder.Trimspec ts, char t, @Nonnull Expression<String> x) Create a trim expression.- Specified by:
trimin interfaceCriteriaBuilder
-
lower
Create an expression returning a lowercase string.- Specified by:
lowerin interfaceCriteriaBuilder
-
upper
Create an expression returning an uppercase string.- Specified by:
upperin interfaceCriteriaBuilder
-
length
Create an expression returning the length of a string.- Specified by:
lengthin interfaceCriteriaBuilder
-
locate
@Nonnull JpaFunction<Integer> locate(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern) Create an expression returning the position of a substring.- Specified by:
locatein interfaceCriteriaBuilder
-
locate
Create an expression returning the position of a substring.- Specified by:
locatein interfaceCriteriaBuilder
-
locate
@Nonnull JpaFunction<Integer> locate(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<Integer> from) Create an expression returning the position of a substring.- Specified by:
locatein interfaceCriteriaBuilder
-
locate
@Nonnull JpaFunction<Integer> locate(@Nonnull Expression<String> x, @Nonnull String pattern, int from) Create an expression returning the position of a substring.- Specified by:
locatein interfaceCriteriaBuilder
-
currentDate
Create an expression for the current SQL date.- Specified by:
currentDatein interfaceCriteriaBuilder
-
currentTime
Create an expression for the current SQL time.- Specified by:
currentTimein interfaceCriteriaBuilder
-
currentTimestamp
Create an expression for the current SQL timestamp.- Specified by:
currentTimestampin interfaceCriteriaBuilder
-
currentInstant
Create an expression for the current instant. -
function
@Nonnull <T> JpaFunction<T> function(@Nonnull String name, @Nonnull Class<T> type, @Nonnull Expression<?>... args) Create an expression invoking a database function.- Specified by:
functionin interfaceCriteriaBuilder
-
all
Create anallquantified expression over a subquery.- Specified by:
allin interfaceCriteriaBuilder
-
some
Create asomequantified expression over a subquery.- Specified by:
somein interfaceCriteriaBuilder
-
any
Create ananyquantified expression over a subquery.- Specified by:
anyin interfaceCriteriaBuilder
-
indexes
Create an expression representing the indexes of the given list. -
value
Create an expression for a Java value, using the configured value handling mode. -
size
Create an expression returning the size of a collection.- Specified by:
sizein interfaceCriteriaBuilder
-
size
Create an expression returning the size of a collection.- Specified by:
sizein interfaceCriteriaBuilder
-
coalesce
Create a coalesce expression.- Specified by:
coalescein interfaceCriteriaBuilder
-
coalesce
@Nonnull <Y> JpaCoalesce<Y> coalesce(@Nonnull Expression<? extends Y> x, @Nonnull Expression<? extends Y> y) Create a coalesce expression.- Specified by:
coalescein interfaceCriteriaBuilder
-
coalesce
Create a coalesce expression.- Specified by:
coalescein interfaceCriteriaBuilder
-
nullif
Create a nullif expression.- Specified by:
nullifin interfaceCriteriaBuilder
-
nullif
Create a nullif expression.- Specified by:
nullifin interfaceCriteriaBuilder
-
selectCase
Create a simple case expression.- Specified by:
selectCasein interfaceCriteriaBuilder
-
selectCase
@Nonnull <C,R> JpaSimpleCase<C,R> selectCase(@Nonnull Expression<? extends C> expression, @Nonnull Class<R> resultType) Create a case expression with the given result type.- Specified by:
selectCasein interfaceCriteriaBuilder
-
selectCase
Create a searched case expression.- Specified by:
selectCasein interfaceCriteriaBuilder
-
selectCase
Create a case expression with the given result type.- Specified by:
selectCasein interfaceCriteriaBuilder
-
and
Create a conjunction predicate.- Specified by:
andin interfaceCriteriaBuilder
-
and
Create a conjunction predicate.- Specified by:
andin interfaceCriteriaBuilder
-
and
Create a conjunction predicate.- Specified by:
andin interfaceCriteriaBuilder
-
and
Deprecated.Prefer and(BooleanExpression...) instead. This method used to be defined as part of Jakarta Persistence, which removed it as of 4.0. -
or
Create a disjunction predicate.- Specified by:
orin interfaceCriteriaBuilder
-
or
Create a disjunction predicate.- Specified by:
orin interfaceCriteriaBuilder
-
or
Create a disjunction predicate.- Specified by:
orin interfaceCriteriaBuilder
-
or
Deprecated.Prefer or(BooleanExpression...) instead. This method used to be defined as part of Jakarta Persistence, which removed it as of 4.0. -
not
Create a negated predicate.- Specified by:
notin interfaceCriteriaBuilder
-
conjunction
Create a predicate that is always true.- Specified by:
conjunctionin interfaceCriteriaBuilder
-
disjunction
Create a predicate that is always false.- Specified by:
disjunctionin interfaceCriteriaBuilder
-
isTrue
Create a predicate testing whether an expression is true.- Specified by:
isTruein interfaceCriteriaBuilder
-
isFalse
Create a predicate testing whether an expression is false.- Specified by:
isFalsein interfaceCriteriaBuilder
-
isNull
Create a predicate testing whether an expression is null.- Specified by:
isNullin interfaceCriteriaBuilder
-
isNotNull
Create a predicate testing whether an expression is not null.- Specified by:
isNotNullin interfaceCriteriaBuilder
-
equal
Create an equality predicate.- Specified by:
equalin interfaceCriteriaBuilder
-
equal
Create an equality predicate.- Specified by:
equalin interfaceCriteriaBuilder
-
notEqual
Create an inequality predicate.- Specified by:
notEqualin interfaceCriteriaBuilder
-
notEqual
Create an inequality predicate.- Specified by:
notEqualin interfaceCriteriaBuilder
-
distinctFrom
Create a predicate testing whether two expressions are distinct, treating nulls as comparable values. -
distinctFrom
Create a predicate testing whether an expression and a value are distinct, treating nulls as comparable values. -
notDistinctFrom
Create a predicate testing whether two expressions are not distinct, treating nulls as comparable values. -
notDistinctFrom
Create a predicate testing whether an expression and a value are not distinct, treating nulls as comparable values. -
greaterThan
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate greaterThan(@Nonnull Expression<? extends Y> x, @Nonnull Expression<? extends Y> y) Create a greater-than predicate for comparable expressions.- Specified by:
greaterThanin interfaceCriteriaBuilder
-
greaterThan
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate greaterThan(@Nonnull Expression<? extends Y> x, @Nullable Y y) Create a greater-than predicate for comparable expressions.- Specified by:
greaterThanin interfaceCriteriaBuilder
-
greaterThanOrEqualTo
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate greaterThanOrEqualTo(@Nonnull Expression<? extends Y> x, @Nonnull Expression<? extends Y> y) Create a greater-than-or-equal predicate for comparable expressions.- Specified by:
greaterThanOrEqualToin interfaceCriteriaBuilder
-
greaterThanOrEqualTo
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate greaterThanOrEqualTo(@Nonnull Expression<? extends Y> x, @Nullable Y y) Create a greater-than-or-equal predicate for comparable expressions.- Specified by:
greaterThanOrEqualToin interfaceCriteriaBuilder
-
lessThan
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate lessThan(@Nonnull Expression<? extends Y> x, @Nonnull Expression<? extends Y> y) Create a less-than predicate for comparable expressions.- Specified by:
lessThanin interfaceCriteriaBuilder
-
lessThan
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate lessThan(@Nonnull Expression<? extends Y> x, @Nullable Y y) Create a less-than predicate for comparable expressions.- Specified by:
lessThanin interfaceCriteriaBuilder
-
lessThanOrEqualTo
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate lessThanOrEqualTo(@Nonnull Expression<? extends Y> x, @Nonnull Expression<? extends Y> y) Create a less-than-or-equal predicate for comparable expressions.- Specified by:
lessThanOrEqualToin interfaceCriteriaBuilder
-
lessThanOrEqualTo
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate lessThanOrEqualTo(@Nonnull Expression<? extends Y> x, @Nullable Y y) Create a less-than-or-equal predicate for comparable expressions.- Specified by:
lessThanOrEqualToin interfaceCriteriaBuilder
-
between
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate between(@Nonnull Expression<? extends Y> value, @Nonnull Expression<? extends Y> lower, @Nonnull Expression<? extends Y> upper) Create a predicate testing whether a value is between two bounds.- Specified by:
betweenin interfaceCriteriaBuilder
-
between
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate between(@Nonnull Expression<? extends Y> value, @Nullable Y lower, @Nullable Y upper) Create a predicate testing whether a value is between two bounds.- Specified by:
betweenin interfaceCriteriaBuilder
-
between
@Nonnull <Y extends Comparable<? super Y>> JpaPredicate between(@Nullable Y value, @Nonnull Expression<? extends Y> lower, @Nonnull Expression<? extends Y> upper) Create a predicate testing whether a value is between two bounds.- Specified by:
betweenin interfaceCriteriaBuilder
-
gt
@Nonnull JpaPredicate gt(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create a greater-than predicate for numeric expressions.- Specified by:
gtin interfaceCriteriaBuilder
-
gt
Create a greater-than predicate for numeric expressions.- Specified by:
gtin interfaceCriteriaBuilder
-
ge
@Nonnull JpaPredicate ge(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create a greater-than-or-equal predicate for numeric expressions.- Specified by:
gein interfaceCriteriaBuilder
-
ge
Create a greater-than-or-equal predicate for numeric expressions.- Specified by:
gein interfaceCriteriaBuilder
-
lt
@Nonnull JpaPredicate lt(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create a less-than predicate for numeric expressions.- Specified by:
ltin interfaceCriteriaBuilder
-
lt
Create a less-than predicate for numeric expressions.- Specified by:
ltin interfaceCriteriaBuilder
-
le
@Nonnull JpaPredicate le(@Nonnull Expression<? extends Number> x, @Nonnull Expression<? extends Number> y) Create a less-than-or-equal predicate for numeric expressions.- Specified by:
lein interfaceCriteriaBuilder
-
le
Create a less-than-or-equal predicate for numeric expressions.- Specified by:
lein interfaceCriteriaBuilder
-
isEmpty
Create a predicate testing whether a collection is empty.- Specified by:
isEmptyin interfaceCriteriaBuilder
-
isNotEmpty
Create a predicate testing whether a collection is not empty.- Specified by:
isNotEmptyin interfaceCriteriaBuilder
-
isMember
@Nonnull <E, C extends Collection<E>> JpaPredicate isMember(@Nonnull Expression<E> elem, @Nonnull Expression<C> collection) Create a predicate testing whether an element is a member of a collection.- Specified by:
isMemberin interfaceCriteriaBuilder
-
isMember
@Nonnull <E, C extends Collection<E>> JpaPredicate isMember(@Nullable E elem, @Nonnull Expression<C> collection) Create a predicate testing whether an element is a member of a collection.- Specified by:
isMemberin interfaceCriteriaBuilder
-
isNotMember
@Nonnull <E, C extends Collection<E>> JpaPredicate isNotMember(@Nonnull Expression<E> elem, @Nonnull Expression<C> collection) Create a predicate testing whether an element is not a member of a collection.- Specified by:
isNotMemberin interfaceCriteriaBuilder
-
isNotMember
@Nonnull <E, C extends Collection<E>> JpaPredicate isNotMember(@Nullable E elem, @Nonnull Expression<C> collection) Create a predicate testing whether an element is not a member of a collection.- Specified by:
isNotMemberin interfaceCriteriaBuilder
-
like
Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
like
Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
like
@Nonnull JpaPredicate like(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<Character> escapeChar) Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
like
@Nonnull JpaPredicate like(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, char escapeChar) Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
like
@Nonnull JpaPredicate like(@Nonnull Expression<String> x, @Nonnull String pattern, @Nonnull Expression<Character> escapeChar) Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
like
Create alikepredicate.- Specified by:
likein interfaceCriteriaBuilder
-
ilike
Create a case-insensitivelikepredicate. -
ilike
Create a case-insensitivelikepredicate. -
ilike
@Nonnull JpaPredicate ilike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<Character> escapeChar) Create a case-insensitivelikepredicate with an escape character expression. -
ilike
@Nonnull JpaPredicate ilike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, char escapeChar) Create a case-insensitivelikepredicate with an escape character. -
ilike
@Nonnull JpaPredicate ilike(@Nonnull Expression<String> x, @Nullable String pattern, @Nonnull Expression<Character> escapeChar) Create a case-insensitivelikepredicate with an escape character expression. -
ilike
@Nonnull JpaPredicate ilike(@Nonnull Expression<String> x, @Nullable String pattern, char escapeChar) Create a case-insensitivelikepredicate with an escape character. -
notLike
Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notLike
Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notLike
@Nonnull JpaPredicate notLike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<Character> escapeChar) Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notLike
@Nonnull JpaPredicate notLike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, char escapeChar) Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notLike
@Nonnull JpaPredicate notLike(@Nonnull Expression<String> x, @Nonnull String pattern, @Nonnull Expression<Character> escapeChar) Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notLike
@Nonnull JpaPredicate notLike(@Nonnull Expression<String> x, @Nonnull String pattern, char escapeChar) Create a negatedlikepredicate.- Specified by:
notLikein interfaceCriteriaBuilder
-
notIlike
Create a negated case-insensitivelikepredicate. -
notIlike
Create a negated case-insensitivelikepredicate. -
notIlike
@Nonnull JpaPredicate notIlike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<Character> escapeChar) Create a negated case-insensitivelikepredicate with an escape character expression. -
notIlike
@Nonnull JpaPredicate notIlike(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, char escapeChar) Create a negated case-insensitivelikepredicate with an escape character. -
notIlike
@Nonnull JpaPredicate notIlike(@Nonnull Expression<String> x, @Nullable String pattern, @Nonnull Expression<Character> escapeChar) Create a negated case-insensitivelikepredicate with an escape character expression. -
notIlike
@Nonnull JpaPredicate notIlike(@Nonnull Expression<String> x, @Nullable String pattern, char escapeChar) Create a negated case-insensitivelikepredicate with an escape character. -
likeRegexp
Create a predicate testing whether a string expression matches a regular expression. -
ilikeRegexp
Create a case-insensitive predicate testing whether a string expression matches a regular expression. -
notLikeRegexp
Create a negated predicate testing whether a string expression matches a regular expression. -
notIlikeRegexp
Create a negated case-insensitive predicate testing whether a string expression matches a regular expression. -
in
Create aninpredicate builder for the given expression.- Specified by:
inin interfaceCriteriaBuilder
-
in
@Nonnull <T> JpaInPredicate<T> in(@Nonnull Expression<? extends T> expression, @Nonnull Expression<? extends T>... values) Create aninpredicate with expression values. -
in
@Nonnull <T> JpaInPredicate<T> in(@Nonnull Expression<? extends T> expression, @Nonnull T... values) Create aninpredicate with literal values. -
in
@Nonnull <T> JpaInPredicate<T> in(@Nonnull Expression<? extends T> expression, @Nonnull Collection<T> values) Create aninpredicate with values supplied as a collection. -
exists
Create a predicate testing whether a subquery returns results.- Specified by:
existsin interfaceCriteriaBuilder
-
isMapEmpty
Create a predicate that tests whether a Map is empty.- Parameters:
mapExpression- The map expression to check for emptiness- Returns:
- the is-empty predicate
- API Note:
- Due to type-erasure we cannot name this the same as
CriteriaBuilder.isEmpty(Expression).
-
isMapNotEmpty
Create a predicate that tests whether a Map is not empty.- Parameters:
mapExpression- The map expression to check for non-emptiness- Returns:
- the is-not-empty predicate
- API Note:
- Due to type-erasure we cannot name this the same as
CriteriaBuilder.isNotEmpty(Expression)
-
mapSize
@Nonnull <M extends Map<?,?>> JpaExpression<Integer> mapSize(@Nonnull JpaExpression<M> mapExpression) Create an expression that tests the size of a map.- Parameters:
mapExpression- The map expression for which to calculate the size- Returns:
- the size expression
- API Note:
- Due to type-erasure we cannot name this the same as
CriteriaBuilder.size(Expression)
-
mapSize
Create an expression that tests the size of a map.- Parameters:
map- The map for which to calculate the size- Returns:
- the size expression
-
sort
Create an ordering for the given sort expression. -
sort
Create an ordering for the given sort expression and direction. -
sort
@Nonnull JpaOrder sort(@Nonnull JpaExpression<?> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) Create an ordering for the given sort expression, direction, and null precedence. -
sort
@Nonnull JpaOrder sort(@Nonnull JpaExpression<?> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence, boolean ignoreCase) Create an ordering for the given sort expression with optional case-insensitive comparison. -
asc
Create an ascending ordering for the given expression.- Specified by:
ascin interfaceCriteriaBuilder
-
desc
Create a descending ordering for the given expression.- Specified by:
descin interfaceCriteriaBuilder
-
asc
Create an ordering by the ascending value of the expression.- Parameters:
x- The expression used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- the ascending ordering corresponding to the expression
-
desc
Create an ordering by the descending value of the expression.- Parameters:
x- The expression used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- the descending ordering corresponding to the expression
-
search
@Nonnull @Incubating(since="6.3") JpaSearchOrder search(@Nonnull JpaCteCriteriaAttribute cteAttribute, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) Create a search ordering based on the sort order and null precedence of the value of the CTE attribute.- Parameters:
cteAttribute- The CTE attribute used to define the orderingsortOrder- The sort ordernullPrecedence- The null precedence- Returns:
- the ordering corresponding to the CTE attribute
-
search
@Nonnull @Incubating(since="6.3") JpaSearchOrder search(@Nonnull JpaCteCriteriaAttribute cteAttribute, @Nonnull SortDirection sortOrder) Create a search ordering based on the sort order of the value of the CTE attribute.- Parameters:
cteAttribute- The CTE attribute used to define the orderingsortOrder- The sort order- Returns:
- the ordering corresponding to the CTE attribute
-
search
@Nonnull @Incubating(since="6.3") JpaSearchOrder search(@Nonnull JpaCteCriteriaAttribute cteAttribute) Create a search ordering based on the ascending value of the CTE attribute.- Parameters:
cteAttribute- The CTE attribute used to define the ordering- Returns:
- the ascending ordering corresponding to the CTE attribute
-
asc
Create a search ordering by the ascending value of the CTE attribute.- Parameters:
x- The CTE attribute used to define the ordering- Returns:
- the ascending ordering corresponding to the CTE attribute
-
desc
Create a search ordering by the descending value of the CTE attribute.- Parameters:
x- The CTE attribute used to define the ordering- Returns:
- the descending ordering corresponding to the CTE attribute
-
asc
@Nonnull @Incubating(since="6.3") JpaSearchOrder asc(@Nonnull JpaCteCriteriaAttribute x, boolean nullsFirst) Create a search ordering by the ascending value of the CTE attribute.- Parameters:
x- The CTE attribute used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- the ascending ordering corresponding to the CTE attribute
-
desc
@Nonnull @Incubating(since="6.3") JpaSearchOrder desc(@Nonnull JpaCteCriteriaAttribute x, boolean nullsFirst) Create a search ordering by the descending value of the CTE attribute.- Parameters:
x- The CTE attribute used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- the descending ordering corresponding to the CTE attribute
-
sql
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> sql(@Nonnull String pattern, @Nonnull Class<T> type, @Nonnull Expression<?>... arguments) Embed nativepatternthat will be unquoted and embedded in the generated SQL. Occurrences of?in the pattern are replaced with the remainingargumentsof the function.- Type Parameters:
T- The type of this expression- Parameters:
pattern- The native SQL patterntype- The type of this expressionarguments- The optional arguments to the SQL pattern- Returns:
- the native SQL expression
-
format
@Nonnull @Incubating(since="6.3") JpaFunction<String> format(@Nonnull Expression<? extends TemporalAccessor> datetime, @Nonnull String pattern) Format a date, time, or datetime according to a pattern. The pattern must be written in a subset of the pattern language defined by Java’sDateTimeFormatter.See
TemporalFormatSupport.appendFormat(SqlAppender, String)for a full list of pattern elements.- Parameters:
datetime- The datetime expression to formatpattern- The pattern to use for formatting- Returns:
- the format expression
-
year
@Nonnull @Incubating(since="6.3") JpaFunction<Integer> year(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.YEARof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
month
@Nonnull @Incubating(since="6.3") JpaFunction<Integer> month(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MONTHof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
day
@Nonnull @Incubating(since="6.3") JpaFunction<Integer> day(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.DAYof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
hour
@Nonnull @Incubating(since="6.3") JpaFunction<Integer> hour(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.HOURof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
minute
@Nonnull @Incubating(since="6.3") JpaFunction<Integer> minute(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MINUTEof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
second
@Nonnull @Incubating(since="6.3") JpaFunction<Float> second(@Nonnull Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.SECONDof a date, time, or datetime expression.- Parameters:
datetime- The date, time, or datetime to extract the value from- Returns:
- the extracted value
-
truncate
@Nonnull @Incubating(since="6.3") <T extends TemporalAccessor> JpaFunction<T> truncate(@Nonnull Expression<T> datetime, @Nonnull TemporalUnit temporalUnit) Truncates a date, time or datetime expression to the givenTemporalUnit. Supported units are:YEAR,MONTH,DAY,HOUR,MINUTE,SECOND.Truncating translates to obtaining a value of the same type in which all temporal units smaller than
fieldhave been pruned. For hours, minutes and second this means setting them to00. For months and days, this means setting them to01.- Parameters:
datetime- The date, time, or datetime expression to truncatetemporalUnit- The temporal unit for truncation- Returns:
- the truncated value
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, int start) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, int start) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, @Nonnull Expression<Integer> start) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, @Nonnull Expression<Integer> start) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, int start, int length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, int start, int length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, @Nonnull Expression<Integer> start, int length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, @Nonnull Expression<Integer> start, int length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, int start, @Nullable Expression<Integer> length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, int start, @Nullable Expression<Integer> length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nullable String replacement, @Nonnull Expression<Integer> start, @Nullable Expression<Integer> length) - See Also:
-
overlay
@Nonnull @Incubating(since="6.3") JpaFunction<String> overlay(@Nonnull Expression<String> string, @Nonnull Expression<String> replacement, @Nonnull Expression<Integer> start, @Nullable Expression<Integer> length) Overlay thestringexpression with thereplacementexpression, starting from indexstartand substituting a number of characters corresponding to the length of thereplacementexpression or thelengthparameter if specified.- Parameters:
string- The string expression to manipulatereplacement- The replacement string expressionstart- The start positionlength- The optional number of characters to substitute- Returns:
- the overlay expression
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, int length) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, int length) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, @Nonnull Expression<Integer> length) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, @Nonnull Expression<Integer> length) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, int length, char padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, int length, char padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, @Nonnull Expression<Integer> length, char padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, @Nonnull Expression<Integer> length, char padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, int length, @Nullable Expression<Character> padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, int length, @Nullable Expression<Character> padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nonnull Expression<String> x, @Nonnull Expression<Integer> length, @Nullable Expression<Character> padChar) - See Also:
-
pad
@Nonnull @Incubating(since="6.3") JpaFunction<String> pad(@Nullable CriteriaBuilder.Trimspec ts, @Nonnull Expression<String> x, @Nonnull Expression<Integer> length, @Nullable Expression<Character> padChar) Pad the specified string expression with whitespace or with thepadCharcharacter if specified. Optionally pass aCriteriaBuilder.Trimspecto pad the string expression withLEADINGorTRAILING(default) characters.- Parameters:
ts- The optionalCriteriaBuilder.Trimspecx- The string expression to padlength- The length of the result string after paddingpadChar- The optional pad character- Returns:
- the pad expression
-
repeat
@Nonnull JpaFunction<String> repeat(@Nonnull Expression<String> x, @Nonnull Expression<Integer> times) Concatenate the given string expression with itself the given number of times.- Parameters:
x- The string expression to concatenatetimes- The number of times it should be repeated- Returns:
- the repeat expression
-
repeat
Concatenate the given string expression with itself the given number of times.- Parameters:
x- The string expression to concatenatetimes- The number of times it should be repeated- Returns:
- the repeat expression
-
repeat
Concatenate the given string expression with itself the given number of times.- Parameters:
x- The string expression to concatenatetimes- The number of times it should be repeated- Returns:
- the repeat expression
-
left
@Nonnull @Incubating(since="6.3") JpaFunction<String> left(@Nonnull Expression<String> x, int length) - Specified by:
leftin interfaceCriteriaBuilder- See Also:
-
left
@Nonnull @Incubating(since="6.3") JpaFunction<String> left(@Nonnull Expression<String> x, @Nonnull Expression<Integer> length) Extract thelengthleftmost characters of a string.- Specified by:
leftin interfaceCriteriaBuilder- Parameters:
x- The original stringlength- The number of characters- Returns:
- the left expression
-
right
@Nonnull @Incubating(since="6.3") JpaFunction<String> right(@Nonnull Expression<String> x, int length) - Specified by:
rightin interfaceCriteriaBuilder- See Also:
-
right
@Nonnull @Incubating(since="6.3") JpaFunction<String> right(@Nonnull Expression<String> x, @Nonnull Expression<Integer> length) Extract thelengthrightmost characters of a string.- Specified by:
rightin interfaceCriteriaBuilder- Parameters:
x- The original stringlength- The number of characters- Returns:
- the left expression
-
replace
@Nonnull @Incubating(since="6.3") JpaFunction<String> replace(@Nonnull Expression<String> x, @Nonnull String pattern, @Nonnull String replacement) - Specified by:
replacein interfaceCriteriaBuilder- See Also:
-
replace
@Nonnull @Incubating(since="6.3") JpaFunction<String> replace(@Nonnull Expression<String> x, @Nonnull String pattern, @Nonnull Expression<String> replacement) - Specified by:
replacein interfaceCriteriaBuilder- See Also:
-
replace
@Nonnull @Incubating(since="6.3") JpaFunction<String> replace(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull String replacement) - Specified by:
replacein interfaceCriteriaBuilder- See Also:
-
replace
@Nonnull @Incubating(since="6.3") JpaFunction<String> replace(@Nonnull Expression<String> x, @Nonnull Expression<String> pattern, @Nonnull Expression<String> replacement) Replace all occurrences ofpatternwithin the original string withreplacement.- Specified by:
replacein interfaceCriteriaBuilder- Parameters:
x- The original stringpattern- The string to be replacedreplacement- The new replacement string- Returns:
- the replace expression
-
collate
@Nonnull @Incubating(since="6.3") JpaFunction<String> collate(@Nonnull Expression<String> x, @Nonnull String collation) Create an expression that applies the named collation to a string expression. -
log10
@Nonnull @Incubating(since="6.3") JpaExpression<Double> log10(@Nonnull Expression<? extends Number> x) Create an expression that returns the base-10 logarithm of its argument.- Parameters:
x- The expression- Returns:
- the base-10 logarithm
-
log
@Nonnull @Incubating(since="6.3") JpaExpression<Double> log(@Nullable Number b, @Nonnull Expression<? extends Number> x) - See Also:
-
log
@Nonnull @Incubating(since="6.3") JpaExpression<Double> log(@Nonnull Expression<? extends Number> b, @Nonnull Expression<? extends Number> x) Create an expression that returns the logarithm ofxto the baseb.- Parameters:
b- The basex- The expression- Returns:
- the arbitrary-base logarithm
-
pi
Literal expression corresponding to the value of pi.- Returns:
- the pi expression
-
sin
@Nonnull @Incubating(since="6.3") JpaExpression<Double> sin(@Nonnull Expression<? extends Number> x) Create an expression that returns the sine of its argument.- Parameters:
x- The expression- Returns:
- the sine
-
cos
@Nonnull @Incubating(since="6.3") JpaExpression<Double> cos(@Nonnull Expression<? extends Number> x) Create an expression that returns the cosine of its argument.- Parameters:
x- The expression- Returns:
- the cosine
-
tan
@Nonnull @Incubating(since="6.3") JpaExpression<Double> tan(@Nonnull Expression<? extends Number> x) Create an expression that returns the tangent of its argument.- Parameters:
x- The expression- Returns:
- the tangent
-
asin
@Nonnull @Incubating(since="6.3") JpaExpression<Double> asin(@Nonnull Expression<? extends Number> x) Create an expression that returns the inverse sine of its argument.- Parameters:
x- The expression- Returns:
- the inverse sine
-
acos
@Nonnull @Incubating(since="6.3") JpaExpression<Double> acos(@Nonnull Expression<? extends Number> x) Create an expression that returns the inverse cosine of its argument.- Parameters:
x- The expression- Returns:
- the inverse cosine
-
atan
@Nonnull @Incubating(since="6.3") JpaExpression<Double> atan(@Nonnull Expression<? extends Number> x) Create an expression that returns the inverse tangent of its argument.- Parameters:
x- The expression- Returns:
- the inverse tangent
-
atan2
@Nonnull @Incubating(since="6.3") JpaExpression<Double> atan2(@Nullable Number y, @Nonnull Expression<? extends Number> x) - See Also:
-
atan2
@Nonnull @Incubating(since="6.3") JpaExpression<Double> atan2(@Nonnull Expression<? extends Number> y, @Nullable Number x) - See Also:
-
atan2
@Nonnull @Incubating(since="6.3") JpaExpression<Double> atan2(@Nonnull Expression<? extends Number> y, @Nonnull Expression<? extends Number> x) Create an expression that returns the inverse tangent ofyoverx.- Parameters:
y- The y coordinatex- The x coordinate- Returns:
- the 2-argument inverse tangent
-
sinh
@Nonnull @Incubating(since="6.3") JpaExpression<Double> sinh(@Nonnull Expression<? extends Number> x) Create an expression that returns the hyperbolic sine of its argument.- Parameters:
x- The expression- Returns:
- the hyperbolic sine
-
cosh
@Nonnull @Incubating(since="6.3") JpaExpression<Double> cosh(@Nonnull Expression<? extends Number> x) Create an expression that returns the hyperbolic cosine of its argument.- Parameters:
x- The expression- Returns:
- the hyperbolic cosine
-
tanh
@Nonnull @Incubating(since="6.3") JpaExpression<Double> tanh(@Nonnull Expression<? extends Number> x) Create an expression that returns the hyperbolic tangent of its argument.- Parameters:
x- The expression- Returns:
- the hyperbolic tangent
-
degrees
@Nonnull @Incubating(since="6.3") JpaExpression<Double> degrees(@Nonnull Expression<? extends Number> x) Create an expression that converts an angle measured in radians to an approximately equivalent angle measured in degrees.- Parameters:
x- The expression- Returns:
- the angle in degrees
-
radians
@Nonnull @Incubating(since="6.3") JpaExpression<Double> radians(@Nonnull Expression<? extends Number> x) Create an expression that converts an angle measured in degrees to an approximately equivalent angle measured in radians.- Parameters:
x- The expression- Returns:
- the angle in radians
-
createWindow
Create an emptyJpaWindowto use with window and aggregate functions.- Returns:
- the empty window
-
frameUnboundedPreceding
Create a window frame of typeFrameKind.UNBOUNDED_PRECEDINGto use withJpaWindows.- Returns:
- the window frame
-
frameBetweenPreceding
- See Also:
-
frameBetweenPreceding
@Nonnull @Incubating(since="6.3") JpaWindowFrame frameBetweenPreceding(@Nonnull Expression<?> offset) Create window frame of typeFrameKind.OFFSET_PRECEDINGto use withJpaWindows.- Parameters:
offset- Theoffsetexpression- Returns:
- the window frame
-
frameCurrentRow
Create a window frame of typeFrameKind.CURRENT_ROWto use withJpaWindows.- Returns:
- the window frame
-
frameBetweenFollowing
- See Also:
-
frameBetweenFollowing
@Nonnull @Incubating(since="6.3") JpaWindowFrame frameBetweenFollowing(@Nonnull Expression<?> offset) Create a window frame of typeFrameKind.OFFSET_FOLLOWINGto use withJpaWindows.- Parameters:
offset- Theoffsetexpression- Returns:
- the window frame
-
frameUnboundedFollowing
Create a window frame of typeFrameKind.UNBOUNDED_FOLLOWINGto use withJpaWindows.- Returns:
- the window frame
-
windowFunction
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> windowFunction(@Nonnull String name, @Nullable Class<T> type, @Nonnull JpaWindow window, @Nonnull Expression<?>... args) Create a generic window function expression that will be applied over the specifiedwindow.- Type Parameters:
T- The type of this expression- Parameters:
name- The name of the window functiontype- The type of this expressionwindow- The window over which the function will be appliedargs- The arguments to the function- Returns:
- the window function expression
-
rowNumber
Create arow_numberwindow function expression.- Parameters:
window- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
firstValue
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> firstValue(@Nonnull Expression<T> argument, @Nonnull JpaWindow window) Create afirst_valuewindow function expression.- Type Parameters:
T- The type of the expression- Parameters:
argument- The argument expression to pass tofirst_valuewindow- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
lastValue
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> lastValue(@Nonnull Expression<T> argument, @Nonnull JpaWindow window) Create alast_valuewindow function expression.- Type Parameters:
T- The type of the expression- Parameters:
argument- The argument expression to pass tolast_valuewindow- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
nthValue
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> nthValue(@Nonnull Expression<T> argument, int n, @Nonnull JpaWindow window) - See Also:
-
nthValue
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> nthValue(@Nonnull Expression<T> argument, @Nonnull Expression<Integer> n, @Nonnull JpaWindow window) Create anth_valuewindow function expression.- Type Parameters:
T- The type of the expression- Parameters:
argument- The argument expression to pass tonth_valuen- TheNargument for the functionwindow- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
rank
Create arankwindow function expression.- Parameters:
window- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
denseRank
Create adense_rankwindow function expression.- Parameters:
window- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
percentRank
Create apercent_rankwindow function expression.- Parameters:
window- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
cumeDist
Create acume_distwindow function expression.- Parameters:
window- The window over which the function will be applied- Returns:
- the window function expression
- See Also:
-
functionAggregate
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionAggregate(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaPredicate filter, @Nonnull Expression<?>... args) - See Also:
-
functionAggregate
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionAggregate(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaWindow window, @Nonnull Expression<?>... args) - See Also:
-
functionAggregate
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionAggregate(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<?>... args) Create a generic aggregate function expression.- Type Parameters:
T- The type of this expression- Parameters:
name- The name of the ordered set-aggregate functiontype- The type of this expressionfilter- The optional filter clausewindow- The optional window over which to apply the functionargs- The optional arguments to the function- Returns:
- the aggregate function expression
-
sum
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Number> sum(@Nonnull Expression<N> argument, @Nullable JpaPredicate filter) - See Also:
-
sum
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Number> sum(@Nonnull Expression<N> argument, @Nullable JpaWindow window) - See Also:
-
sum
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Number> sum(@Nonnull Expression<N> argument, @Nullable JpaPredicate filter, @Nullable JpaWindow window) Create asumaggregate function expression.- Type Parameters:
N- The type of the input expression- Parameters:
argument- The argument to the functionfilter- The optional filter clausewindow- The optional window over which to apply the function- Returns:
- the aggregate function expression
- See Also:
-
avg
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Double> avg(@Nonnull Expression<N> argument, @Nullable JpaPredicate filter) - See Also:
-
avg
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Double> avg(@Nonnull Expression<N> argument, @Nullable JpaWindow window) - See Also:
-
avg
@Nonnull @Incubating(since="6.3") <N extends Number> JpaExpression<Double> avg(@Nonnull Expression<N> argument, @Nullable JpaPredicate filter, @Nullable JpaWindow window) Create anavgaggregate function expression.- Type Parameters:
N- The type of the input expression- Parameters:
argument- The argument to the functionfilter- The optional filter clausewindow- The optional window over which to apply the function- Returns:
- the aggregate function expression
- See Also:
-
count
@Nonnull @Incubating(since="6.3") JpaExpression<Long> count(@Nonnull Expression<?> argument, @Nullable JpaPredicate filter) - See Also:
-
count
@Nonnull @Incubating(since="6.3") JpaExpression<Long> count(@Nonnull Expression<?> argument, @Nullable JpaWindow window) - See Also:
-
count
@Nonnull @Incubating(since="6.3") JpaExpression<Long> count(@Nonnull Expression<?> argument, @Nullable JpaPredicate filter, @Nullable JpaWindow window) Create acountaggregate function expression.- Parameters:
argument- The argument to the functionfilter- The optional filter clausewindow- The optional window over which to apply the function- Returns:
- the aggregate function expression
- See Also:
-
functionWithinGroup
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionWithinGroup(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaOrder order, @Nonnull Expression<?>... args) - See Also:
-
functionWithinGroup
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionWithinGroup(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<?>... args) - See Also:
-
functionWithinGroup
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionWithinGroup(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<?>... args) - See Also:
-
functionWithinGroup
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> functionWithinGroup(@Nonnull String name, @Nullable Class<T> type, @Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<?>... args) Create a generic ordered set-aggregate function expression.- Type Parameters:
T- The type of this expression- Parameters:
name- The name of the ordered set-aggregate functiontype- The type of this expressionorder- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionargs- The optional arguments to the function- Returns:
- the ordered set-aggregate function expression
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nonnull Expression<String> argument, @Nonnull String separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nonnull Expression<String> argument, @Nonnull Expression<String> separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<String> argument, @Nonnull String separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<String> argument, @Nonnull Expression<String> separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<String> argument, @Nonnull String separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<String> argument, @Nonnull Expression<String> separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<String> argument, @Nonnull String separator) - See Also:
-
listagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> listagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<String> argument, @Nonnull Expression<String> separator) Create alistaggordered set-aggregate function expression.- Parameters:
order- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionargument- The values to joinseparator- The separator used to join the values- Returns:
- the ordered set-aggregate expression
- See Also:
-
mode
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> mode(@Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
mode
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> mode(@Nullable JpaPredicate filter, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
mode
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> mode(@Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
mode
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> mode(@Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) Create amodeordered set-aggregate function expression.- Type Parameters:
T- The type of this expression- Parameters:
filter- The optional filter clausewindow- The optional window over which to apply the functionsortExpression- The sort expressionsortOrder- The sort ordernullPrecedence- The null precedence- Returns:
- the ordered set-aggregate expression
- See Also:
-
percentileCont
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileCont(@Nonnull Expression<? extends Number> argument, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileCont
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileCont(@Nonnull Expression<? extends Number> argument, @Nullable JpaPredicate filter, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileCont
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileCont(@Nonnull Expression<? extends Number> argument, @Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileCont
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileCont(@Nonnull Expression<? extends Number> argument, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) Create apercentile_contordered set-aggregate function expression.- Parameters:
argument- The argument to the functionfilter- The optional filter clausewindow- The optional window over which to apply the functionsortExpression- The sort expressionsortOrder- The sort ordernullPrecedence- The null precedence- Returns:
- the ordered set-aggregate expression
- See Also:
-
percentileDisc
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileDisc(@Nonnull Expression<? extends Number> argument, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileDisc
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileDisc(@Nonnull Expression<? extends Number> argument, @Nullable JpaPredicate filter, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileDisc
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileDisc(@Nonnull Expression<? extends Number> argument, @Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) - See Also:
-
percentileDisc
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> percentileDisc(@Nonnull Expression<? extends Number> argument, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<T> sortExpression, @Nonnull SortDirection sortOrder, @Nonnull Nulls nullPrecedence) Create apercentile_discordered set-aggregate function expression.- Parameters:
argument- The argument to the functionfilter- The optional filter clausewindow- The optional window over which to apply the functionsortExpression- The sort expressionsortOrder- The sort ordernullPrecedence- The null precedence- Returns:
- the ordered set-aggregate expression
- See Also:
-
rank
@Nonnull @Incubating(since="6.3") JpaExpression<Long> rank(@Nullable JpaOrder order, @Nonnull Expression<?>... arguments) - See Also:
-
rank
@Nonnull @Incubating(since="6.3") JpaExpression<Long> rank(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<?>... arguments) - See Also:
-
rank
@Nonnull @Incubating(since="6.3") JpaExpression<Long> rank(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<?>... arguments) - See Also:
-
rank
@Nonnull @Incubating(since="6.3") JpaExpression<Long> rank(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<?>... arguments) Create arankordered set-aggregate function expression.- Parameters:
order- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionarguments- The arguments to the function- Returns:
- the ordered set-aggregate expression
- See Also:
-
percentRank
@Nonnull @Incubating(since="6.3") JpaExpression<Double> percentRank(@Nullable JpaOrder order, @Nonnull Expression<?>... arguments) - See Also:
-
percentRank
@Nonnull @Incubating(since="6.3") JpaExpression<Double> percentRank(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<?>... arguments) - See Also:
-
percentRank
@Nonnull @Incubating(since="6.3") JpaExpression<Double> percentRank(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<?>... arguments) - See Also:
-
percentRank
@Nonnull @Incubating(since="6.3") JpaExpression<Double> percentRank(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<?>... arguments) Create apercent_rankordered set-aggregate function expression.- Parameters:
order- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionarguments- The arguments to the function- Returns:
- the ordered set-aggregate expression
- See Also:
-
arrayAgg
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAgg(@Nullable JpaOrder order, @Nonnull Expression<? extends T> argument) - Since:
- 6.4
- See Also:
-
arrayAgg
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAgg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<? extends T> argument) - Since:
- 6.4
- See Also:
-
arrayAgg
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAgg(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<? extends T> argument) - Since:
- 6.4
- See Also:
-
arrayAgg
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAgg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<? extends T> argument) Create aarray_aggordered set-aggregate function expression.- Parameters:
order- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionargument- The values to aggregate- Returns:
- the ordered set-aggregate expression
- Since:
- 6.4
- See Also:
-
arrayLiteral
Creates an array literal with thearrayconstructor function.- Since:
- 6.4
-
arrayLength
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Integer> arrayLength(@Nonnull Expression<T[]> arrayExpression) Determines the length of an array.- Since:
- 6.4
-
arrayPosition
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Integer> arrayPosition(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Determines the 1-based position of an element in an array.- Since:
- 6.4
-
arrayPosition
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Integer> arrayPosition(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Determines the 1-based position of an element in an array.- Since:
- 6.4
-
arrayPositions
@Nonnull @Incubating(since="6.3") <T> JpaExpression<int[]> arrayPositions(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositions
@Nonnull @Incubating(since="6.3") <T> JpaExpression<int[]> arrayPositions(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositionsList
@Nonnull @Incubating(since="6.3") <T> JpaExpression<List<Integer>> arrayPositionsList(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositionsList
@Nonnull @Incubating(since="6.3") <T> JpaExpression<List<Integer>> arrayPositionsList(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayConcat
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayConcat(@Nonnull Expression<T[]> arrayExpression1, @Nonnull Expression<T[]> arrayExpression2) Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayConcat
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayConcat(@Nonnull Expression<T[]> arrayExpression1, @Nullable T[] array2) Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayConcat
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayConcat(@Nullable T[] array1, @Nonnull Expression<T[]> arrayExpression2) Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayAppend
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAppend(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Appends element to array.- Since:
- 6.4
-
arrayAppend
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayAppend(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Appends element to array.- Since:
- 6.4
-
arrayPrepend
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayPrepend(@Nonnull Expression<T> elementExpression, @Nonnull Expression<T[]> arrayExpression) Prepends element to array.- Since:
- 6.4
-
arrayPrepend
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayPrepend(@Nullable T element, @Nonnull Expression<T[]> arrayExpression) Prepends element to array.- Since:
- 6.4
-
arrayGet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> arrayGet(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> indexExpression) Accesses the element of an array by 1-based index.- Since:
- 6.4
-
arrayGet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> arrayGet(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer index) Accesses the element of an array by 1-based index.- Since:
- 6.4
-
arraySet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySet(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> indexExpression, @Nonnull Expression<T> elementExpression) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySet(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> indexExpression, @Nullable T element) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySet(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer index, @Nonnull Expression<T> elementExpression) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySet(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer index, @Nullable T element) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arrayRemove
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayRemove(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Creates array copy with given element removed.- Since:
- 6.4
-
arrayRemove
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayRemove(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Creates array copy with given element removed.- Since:
- 6.4
-
arrayRemoveIndex
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayRemoveIndex(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> indexExpression) Creates array copy with the element at the given 1-based index removed.- Since:
- 6.4
-
arrayRemoveIndex
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayRemoveIndex(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer index) Creates array copy with the element at the given 1-based index removed.- Since:
- 6.4
-
arraySlice
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySlice(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> lowerIndexExpression, @Nonnull Expression<Integer> upperIndexExpression) Creates a sub-array of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySlice(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> lowerIndexExpression, @Nullable Integer upperIndex) Creates a sub-array of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySlice(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer lowerIndex, @Nonnull Expression<Integer> upperIndexExpression) Creates a sub-array of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySlice(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer lowerIndex, @Nullable Integer upperIndex) Creates a sub-array of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
arrayReplace
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayReplace(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> oldElementExpression, @Nonnull Expression<T> newElementExpression) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayReplace(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> oldElementExpression, @Nullable T newElement) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayReplace(@Nonnull Expression<T[]> arrayExpression, @Nullable T oldElement, @Nonnull Expression<T> newElementExpression) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayReplace(@Nonnull Expression<T[]> arrayExpression, @Nullable T oldElement, @Nullable T newElement) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayTrim
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayTrim(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Integer> elementCountExpression) Creates array copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
arrayTrim
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayTrim(@Nonnull Expression<T[]> arrayExpression, @Nullable Integer elementCount) Creates array copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
arrayReverse
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayReverse(@Nonnull Expression<T[]> arrayExpression) Reverses the order of elements in an array.- Since:
- 7.2
-
arraySort
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySort(@Nonnull Expression<T[]> arrayExpression) Sorts the elements of an array in ascending order.- Since:
- 7.2
-
arraySort
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySort(@Nonnull Expression<T[]> arrayExpression, boolean descending) Sorts the elements of an array in the specified order.- Since:
- 7.2
-
arraySort
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySort(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Boolean> descendingExpression) Sorts the elements of an array in the specified order.- Since:
- 7.2
-
arraySort
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySort(@Nonnull Expression<T[]> arrayExpression, boolean descending, boolean nullsFirst) Create an expression that sorts the given array with explicit null ordering.- Since:
- 7.2
-
arraySort
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arraySort(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<Boolean> descendingExpression, @Nonnull Expression<Boolean> nullsFirstExpression) Create an expression that sorts the given array with explicit null ordering.- Since:
- 7.2
-
arrayFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayFill(@Nonnull Expression<T> elementExpression, @Nonnull Expression<Integer> elementCountExpression) Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayFill(@Nonnull Expression<T> elementExpression, @Nullable Integer elementCount) Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayFill(@Nullable T element, @Nonnull Expression<Integer> elementCountExpression) Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T[]> arrayFill(@Nullable T element, @Nullable Integer elementCount) Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nonnull Expression<String> separatorExpression) Concatenates the non-null array elements with a separator, as specified by the arguments.- Since:
- 6.4
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nullable String separator) Concatenates the non-null array elements with a separator, as specified by the arguments.- Since:
- 6.4
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nonnull Expression<String> separatorExpression, @Nonnull Expression<String> defaultExpression) Concatenates the array elements with a separator, as specified by the arguments. Null array elements are replaced with the given default element.- Since:
- 7.1
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nonnull Expression<String> separatorExpression, @Nullable String defaultValue) Concatenates the array elements with a separator, as specified by the arguments. Null array elements are replaced with the given default element.- Since:
- 7.1
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nullable String separator, @Nonnull Expression<String> defaultExpression) Concatenates the array elements with a separator, as specified by the arguments. Null array elements are replaced with the given default element.- Since:
- 7.1
-
arrayToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> arrayToString(@Nonnull Expression<? extends Object[]> arrayExpression, @Nullable String separator, @Nullable String defaultValue) Concatenates the array elements with a separator, as specified by the arguments. Null array elements are replaced with the given default element.- Since:
- 7.1
-
arrayContains
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContains(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Whether an array contains an element.- Since:
- 6.4
-
arrayContains
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContains(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Whether an array contains an element.- Since:
- 6.4
-
arrayContains
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContains(@Nullable T[] array, @Nonnull Expression<T> elementExpression) Whether an array contains an element.- Since:
- 6.4
-
arrayContainsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContainsNullable(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T> elementExpression) Whether an array contains a nullable element.- Since:
- 6.4
-
arrayContainsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContainsNullable(@Nonnull Expression<T[]> arrayExpression, @Nullable T element) Whether an array contains a nullable element.- Since:
- 6.4
-
arrayContainsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayContainsNullable(@Nullable T[] array, @Nonnull Expression<T> elementExpression) Whether an array contains a nullable element.- Since:
- 6.4
-
arrayIncludes
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludes(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T[]> subArrayExpression) Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludes
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludes(@Nonnull Expression<T[]> arrayExpression, @Nullable T[] subArray) Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludes
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludes(@Nullable T[] array, @Nonnull Expression<T[]> subArrayExpression) Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludesNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludesNullable(@Nonnull Expression<T[]> arrayExpression, @Nonnull Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayIncludesNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludesNullable(@Nonnull Expression<T[]> arrayExpression, @Nullable T[] subArray) Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayIncludesNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIncludesNullable(@Nullable T[] array, @Nonnull Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayIntersects
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersects(@Nonnull Expression<T[]> arrayExpression1, @Nonnull Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersects
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersects(@Nonnull Expression<T[]> arrayExpression1, @Nullable T[] array2) Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersects
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersects(@Nullable T[] array1, @Nonnull Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersectsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersectsNullable(@Nonnull Expression<T[]> arrayExpression1, @Nonnull Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
arrayIntersectsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersectsNullable(@Nonnull Expression<T[]> arrayExpression1, @Nullable T[] array2) Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
arrayIntersectsNullable
@Nonnull @Incubating(since="6.3") <T> JpaPredicate arrayIntersectsNullable(@Nullable T[] array1, @Nonnull Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
collectionLiteral
@Nonnull @Incubating(since="6.3") <E, C extends Collection<E>> JpaExpression<C> collectionLiteral(@Nullable E... elements) Creates a basic collection literal with thearrayconstructor function.- Since:
- 6.4
-
collectionLength
@Nonnull @Incubating(since="6.3") JpaExpression<Integer> collectionLength(@Nonnull Expression<? extends Collection<?>> collectionExpression) Determines the length of a basic collection.- Since:
- 6.4
-
collectionPosition
@Nonnull @Incubating(since="6.3") <E> JpaExpression<Integer> collectionPosition(@Nonnull Expression<? extends Collection<? extends E>> collectionExpression, @Nullable E element) Determines the 1-based position of an element in a basic collection.- Since:
- 6.4
-
collectionPosition
@Nonnull @Incubating(since="6.3") <E> JpaExpression<Integer> collectionPosition(@Nonnull Expression<? extends Collection<? extends E>> collectionExpression, @Nonnull Expression<E> elementExpression) Determines the 1-based position of an element in a basic collection.- Since:
- 6.4
-
collectionPositions
@Nonnull @Incubating(since="6.3") <T> JpaExpression<int[]> collectionPositions(@Nonnull Expression<? extends Collection<? super T>> collectionExpression, @Nonnull Expression<T> elementExpression) Determines all 1-based positions of an element in a basic collection.- Since:
- 6.4
-
collectionPositions
@Nonnull @Incubating(since="6.3") <T> JpaExpression<int[]> collectionPositions(@Nonnull Expression<? extends Collection<? super T>> collectionExpression, @Nullable T element) Determines all 1-based positions of an element in a basic collection.- Since:
- 6.4
-
collectionPositionsList
@Nonnull @Incubating(since="6.3") <T> JpaExpression<List<Integer>> collectionPositionsList(@Nonnull Expression<? extends Collection<? super T>> collectionExpression, @Nonnull Expression<T> elementExpression) Determines all 1-based positions of an element in a basic collection.- Since:
- 6.4
-
collectionPositionsList
@Nonnull @Incubating(since="6.3") <T> JpaExpression<List<Integer>> collectionPositionsList(@Nonnull Expression<? extends Collection<? super T>> collectionExpression, @Nullable T element) Determines all 1-based positions of an element in a basic collection.- Since:
- 6.4
-
collectionConcat
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionConcat(@Nonnull Expression<C> collectionExpression1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Concatenates basic collections with each other in order.- Since:
- 6.4
-
collectionConcat
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionConcat(@Nonnull Expression<C> collectionExpression1, @Nullable Collection<? extends E> collection2) Concatenates basic collections with each other in order.- Since:
- 6.4
-
collectionConcat
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionConcat(@Nullable C collection1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Concatenates basic collections with each other in order.- Since:
- 6.4
-
collectionAppend
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionAppend(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<? extends E> elementExpression) Appends element to basic collection.- Since:
- 6.4
-
collectionAppend
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionAppend(@Nonnull Expression<C> collectionExpression, @Nullable E element) Appends element to basic collection.- Since:
- 6.4
-
collectionPrepend
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionPrepend(@Nonnull Expression<? extends E> elementExpression, @Nonnull Expression<C> collectionExpression) Prepends element to basic collection.- Since:
- 6.4
-
collectionPrepend
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionPrepend(@Nullable E element, @Nonnull Expression<C> collectionExpression) Prepends element to basic collection.- Since:
- 6.4
-
collectionGet
@Nonnull @Incubating(since="6.3") <E> JpaExpression<E> collectionGet(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nonnull Expression<Integer> indexExpression) Accesses the element of the basic collection by 1-based index.- Since:
- 6.4
-
collectionGet
@Nonnull @Incubating(since="6.3") <E> JpaExpression<E> collectionGet(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nullable Integer index) Accesses the element of the basic collection by 1-based index.- Since:
- 6.4
-
collectionSet
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionSet(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Integer> indexExpression, @Nonnull Expression<? extends E> elementExpression) Creates basic collection copy with given element at given 1-based index.- Since:
- 6.4
-
collectionSet
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionSet(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Integer> indexExpression, @Nullable E element) Creates basic collection copy with given element at given 1-based index.- Since:
- 6.4
-
collectionSet
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionSet(@Nonnull Expression<C> collectionExpression, @Nullable Integer index, @Nonnull Expression<? extends E> elementExpression) Creates basic collection copy with given element at given 1-based index.- Since:
- 6.4
-
collectionSet
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionSet(@Nonnull Expression<C> collectionExpression, @Nullable Integer index, @Nullable E element) Creates basic collection copy with given element at given 1-based index.- Since:
- 6.4
-
collectionRemove
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionRemove(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<? extends E> elementExpression) Creates basic collection copy with given element removed.- Since:
- 6.4
-
collectionRemove
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionRemove(@Nonnull Expression<C> collectionExpression, @Nullable E element) Creates basic collection copy with given element removed.- Since:
- 6.4
-
collectionRemoveIndex
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionRemoveIndex(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Integer> indexExpression) Creates basic collection copy with the element at the given 1-based index removed.- Since:
- 6.4
-
collectionRemoveIndex
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionRemoveIndex(@Nonnull Expression<C> collectionExpression, @Nullable Integer index) Creates basic collection copy with the element at the given 1-based index removed.- Since:
- 6.4
-
collectionSlice
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSlice(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Integer> lowerIndexExpression, @Nonnull Expression<Integer> upperIndexExpression) Creates a sub-collection of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSlice(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Integer> lowerIndexExpression, @Nullable Integer upperIndex) Creates a sub-collection of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSlice(@Nonnull Expression<C> collectionExpression, @Nullable Integer lowerIndex, @Nonnull Expression<Integer> upperIndexExpression) Creates a sub-collection of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSlice(@Nonnull Expression<C> collectionExpression, @Nullable Integer lowerIndex, @Nullable Integer upperIndex) Creates a sub-collection of the based on 1-based lower and upper index. Both indexes are inclusive.- Since:
- 6.4
-
collectionReplace
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionReplace(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<? extends E> oldElementExpression, @Nonnull Expression<? extends E> newElementExpression) Creates basic collection copy replacing a given element with another.- Since:
- 6.4
-
collectionReplace
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionReplace(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<? extends E> oldElementExpression, @Nullable E newElement) Creates basic collection copy replacing a given element with another.- Since:
- 6.4
-
collectionReplace
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionReplace(@Nonnull Expression<C> collectionExpression, @Nullable E oldElement, @Nonnull Expression<? extends E> newElementExpression) Creates basic collection copy replacing a given element with another.- Since:
- 6.4
-
collectionReplace
@Nonnull @Incubating(since="6.3") <E, C extends Collection<? super E>> JpaExpression<C> collectionReplace(@Nonnull Expression<C> collectionExpression, @Nullable E oldElement, @Nullable E newElement) Creates basic collection copy replacing a given element with another.- Since:
- 6.4
-
collectionTrim
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionTrim(@Nonnull Expression<C> arrayExpression, @Nonnull Expression<Integer> elementCountExpression) Creates basic collection copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
collectionTrim
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionTrim(@Nonnull Expression<C> arrayExpression, @Nullable Integer elementCount) Creates basic collection copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
collectionReverse
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionReverse(@Nonnull Expression<C> collectionExpression) Create an expression that reverses the order of the elements of a collection.- Since:
- 7.2
-
collectionSort
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSort(@Nonnull Expression<C> collectionExpression) Create an expression that sorts the elements of a collection.- Since:
- 7.2
-
collectionSort
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSort(@Nonnull Expression<C> collectionExpression, boolean descending) Create an expression that sorts the given collection in specified order.- Since:
- 7.2
-
collectionSort
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSort(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Boolean> descendingExpression) Create an expression that sorts the given collection in specified order.- Since:
- 7.2
-
collectionSort
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSort(@Nonnull Expression<C> collectionExpression, boolean descending, boolean nullsFirst) Create an expression that sorts the given collection with explicit null ordering.- Since:
- 7.2
-
collectionSort
@Nonnull @Incubating(since="6.3") <C extends Collection<?>> JpaExpression<C> collectionSort(@Nonnull Expression<C> collectionExpression, @Nonnull Expression<Boolean> descendingExpression, @Nonnull Expression<Boolean> nullsFirstExpression) Create an expression that sorts the given collection with explicit null ordering.- Since:
- 7.2
-
collectionFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Collection<T>> collectionFill(@Nonnull Expression<T> elementExpression, @Nonnull Expression<Integer> elementCountExpression) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Collection<T>> collectionFill(@Nonnull Expression<T> elementExpression, @Nullable Integer elementCount) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Collection<T>> collectionFill(@Nullable T element, @Nonnull Expression<Integer> elementCountExpression) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionFill
@Nonnull @Incubating(since="6.3") <T> JpaExpression<Collection<T>> collectionFill(@Nullable T element, @Nullable Integer elementCount) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nonnull Expression<String> separatorExpression) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.- Since:
- 6.4
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nullable String separator) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.- Since:
- 6.4
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nonnull Expression<String> separatorExpression, @Nonnull Expression<String> defaultExpression) Concatenates the collection elements with a separator, as specified by the arguments. Null collection elements are replaced with the given default element.- Since:
- 7.1
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nonnull Expression<String> separatorExpression, @Nullable String defaultValue) Concatenates the collection elements with a separator, as specified by the arguments. Null collection elements are replaced with the given default element.- Since:
- 7.1
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nullable String separator, @Nonnull Expression<String> defaultExpression) Concatenates the collection elements with a separator, as specified by the arguments. Null collection elements are replaced with the given default element.- Since:
- 7.1
-
collectionToString
@Nonnull @Incubating(since="6.3") JpaExpression<String> collectionToString(@Nonnull Expression<? extends Collection<?>> collectionExpression, @Nullable String separator, @Nullable String defaultValue) Concatenates the collection elements with a separator, as specified by the arguments. Null collection elements are replaced with the given default element.- Since:
- 7.1
-
collectionContains
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContains(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nonnull Expression<? extends E> elementExpression) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContains
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContains(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nullable E element) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContains
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContains(@Nonnull Collection<E> collection, @Nonnull Expression<E> elementExpression) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContainsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContainsNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nonnull Expression<? extends E> elementExpression) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionContainsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContainsNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nullable E element) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionContainsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionContainsNullable(@Nonnull Collection<E> collection, @Nonnull Expression<E> elementExpression) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionIncludes
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludes(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nonnull Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludes
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludes(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nullable Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludes
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludes(@Nullable Collection<E> collection, @Nonnull Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludesNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludesNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nonnull Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionIncludesNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludesNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression, @Nullable Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionIncludesNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIncludesNullable(@Nullable Collection<E> collection, @Nonnull Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionIntersects
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersects(@Nonnull Expression<? extends Collection<E>> collectionExpression1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersects
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersects(@Nonnull Expression<? extends Collection<E>> collectionExpression1, @Nullable Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersects
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersects(@Nullable Collection<E> collection1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersectsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersectsNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
collectionIntersectsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersectsNullable(@Nonnull Expression<? extends Collection<E>> collectionExpression1, @Nullable Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
collectionIntersectsNullable
@Nonnull @Incubating(since="6.3") <E> JpaPredicate collectionIntersectsNullable(@Nullable Collection<E> collection1, @Nonnull Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
jsonValue
@Nonnull @Incubating(since="6.3") JpaJsonValueExpression<String> jsonValue(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath) - Since:
- 7.0
- See Also:
-
jsonValue
@Nonnull @Incubating(since="6.3") <T> JpaJsonValueExpression<T> jsonValue(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nullable Class<T> returningType) Extracts a value by JSON path from a JSON document.- Since:
- 7.0
-
jsonValue
@Nonnull @Incubating(since="6.3") JpaJsonValueExpression<String> jsonValue(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath) - Since:
- 7.0
- See Also:
-
jsonValue
@Nonnull @Incubating(since="6.3") <T> JpaJsonValueExpression<T> jsonValue(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nullable Class<T> returningType) Extracts a value by JSON path from a JSON document.- Since:
- 7.0
-
jsonQuery
@Nonnull @Incubating(since="6.3") JpaJsonQueryExpression jsonQuery(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath) - Since:
- 7.0
- See Also:
-
jsonQuery
@Nonnull @Incubating(since="6.3") JpaJsonQueryExpression jsonQuery(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath) Queries values by JSON path from a JSON document.- Since:
- 7.0
-
jsonExists
@Nonnull @Incubating(since="6.3") JpaJsonExistsExpression jsonExists(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath) Checks if a JSON document contains a node for the given JSON path.- Since:
- 7.0
-
jsonExists
@Nonnull @Incubating(since="6.3") JpaJsonExistsExpression jsonExists(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath) Checks if a JSON document contains a node for the given JSON path.- Since:
- 7.0
-
jsonObject
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObject(@Nonnull Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values.- Since:
- 7.0
-
jsonObjectWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectWithNulls(@Nonnull Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values, retainingnullvalues in the JSON.- Since:
- 7.0
-
jsonArray
Create a JSON array from the array of values.- Since:
- 7.0
-
jsonArrayWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayWithNulls(@Nonnull Expression<?>... values) Create a JSON object from the given array of values, retainingnullvalues in the JSON array.- Since:
- 7.0
-
jsonArrayAgg
Aggregates the given value into a JSON array.- Since:
- 7.0
-
jsonArrayAgg
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAgg(@Nonnull Expression<?> value, @Nonnull JpaOrder... orderBy) Aggregates the given value into a JSON array. Ordering values based on the given order by items.- Since:
- 7.0
-
jsonArrayAgg
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAgg(@Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value into a JSON array. Filtering rows that don't match the given filter predicate.- Since:
- 7.0
-
jsonArrayAgg
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAgg(@Nonnull Expression<?> value, @Nullable Predicate filter, @Nonnull JpaOrder... orderBy) Aggregates the given value into a JSON array. Filtering rows that don't match the given filter predicate. Ordering values based on the given order by items.- Since:
- 7.0
-
jsonArrayAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAggWithNulls(@Nonnull Expression<?> value) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array.- Since:
- 7.0
-
jsonArrayAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAggWithNulls(@Nonnull Expression<?> value, @Nonnull JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array. Ordering values based on the given order by items.- Since:
- 7.0
-
jsonArrayAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAggWithNulls(@Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array. Filtering rows that don't match the given filter predicate.- Since:
- 7.0
-
jsonArrayAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonArrayAggWithNulls(@Nonnull Expression<?> value, @Nullable Predicate filter, @Nonnull JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnullvalues in the JSON array. Filtering rows that don't match the given filter predicate. Ordering values based on the given order by items.- Since:
- 7.0
-
jsonObjectAgg
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAgg(@Nonnull Expression<?> key, @Nonnull Expression<?> value) Aggregates the given value under the given key into a JSON object.- Since:
- 7.0
-
jsonObjectAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithNulls(@Nonnull Expression<?> key, @Nonnull Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.- Since:
- 7.0
-
jsonObjectAggWithUniqueKeys
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithUniqueKeys(@Nonnull Expression<?> key, @Nonnull Expression<?> value) Aggregates the given value under the given key into a JSON object.- Since:
- 7.0
-
jsonObjectAggWithUniqueKeysAndNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithUniqueKeysAndNulls(@Nonnull Expression<?> key, @Nonnull Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.- Since:
- 7.0
-
jsonObjectAgg
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAgg(@Nonnull Expression<?> key, @Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value under the given key into a JSON object.- Since:
- 7.0
-
jsonObjectAggWithNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithNulls(@Nonnull Expression<?> key, @Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.- Since:
- 7.0
-
jsonObjectAggWithUniqueKeys
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithUniqueKeys(@Nonnull Expression<?> key, @Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value under the given key into a JSON object.- Since:
- 7.0
-
jsonObjectAggWithUniqueKeysAndNulls
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonObjectAggWithUniqueKeysAndNulls(@Nonnull Expression<?> key, @Nonnull Expression<?> value, @Nullable Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnullvalues in the JSON object.- Since:
- 7.0
-
jsonSet
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonSet(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nonnull Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonSet
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonSet(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nonnull Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonSet
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonSet(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nullable Object value) Inserts/Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonSet
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonSet(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nullable Object value) Inserts/Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonRemove
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonRemove(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath) Removes a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonRemove
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonRemove(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath) Removes a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonInsert
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonInsert(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nonnull Expression<?> value) Inserts a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonInsert
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonInsert(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nonnull Expression<?> value) Inserts a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonInsert
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonInsert(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nullable Object value) Inserts a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonInsert
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonInsert(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nullable Object value) Inserts a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonReplace
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonReplace(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nonnull Expression<?> value) Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonReplace
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonReplace(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nonnull Expression<?> value) Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonReplace
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonReplace(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath, @Nullable Object value) Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonReplace
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonReplace(@Nonnull Expression<?> jsonDocument, @Nonnull Expression<String> jsonPath, @Nullable Object value) Replaces a value by JSON path within a JSON document.- Since:
- 7.0
-
jsonMergepatch
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonMergepatch(@Nonnull Expression<?> document, @Nonnull Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.- Since:
- 7.0
-
jsonMergepatch
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonMergepatch(@Nonnull Expression<?> document, @Nullable String patch) Applies the patch JSON document onto the other JSON document and returns that.- Since:
- 7.0
-
jsonMergepatch
@Nonnull @Incubating(since="6.3") JpaExpression<String> jsonMergepatch(@Nullable String document, @Nonnull Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.- Since:
- 7.0
-
xmlelement
Creates an XML element with the given element name.- Since:
- 7.0
-
xmlcomment
Creates an XML comment with the given argument as content.- Since:
- 7.0
-
xmlforest
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlforest(@Nonnull Expression<?>... elements) Creates an XML forest from the given XML element expressions.- Since:
- 7.0
- See Also:
-
xmlforest
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlforest(@Nonnull List<? extends Expression<?>> elements) Creates an XML forest from the given XML element expressions.- Since:
- 7.0
- See Also:
-
xmlconcat
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlconcat(@Nonnull Expression<?>... elements) Concatenates the given XML element expressions.- Since:
- 7.0
-
xmlconcat
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlconcat(@Nonnull List<? extends Expression<?>> elements) Concatenates the given XML element expressions.- Since:
- 7.0
-
xmlpi
Creates an XML processing with the given name.- Since:
- 7.0
-
xmlpi
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlpi(@Nonnull String elementName, @Nonnull Expression<String> content) Creates an XML processing with the given name and content.- Since:
- 7.0
-
xmlquery
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlquery(@Nullable String query, @Nonnull Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.- Since:
- 7.0
-
xmlquery
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlquery(@Nonnull Expression<String> query, @Nonnull Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.- Since:
- 7.0
-
xmlexists
@Nonnull @Incubating(since="6.3") JpaExpression<Boolean> xmlexists(@Nullable String query, @Nonnull Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.- Since:
- 7.0
-
xmlexists
@Nonnull @Incubating(since="6.3") JpaExpression<Boolean> xmlexists(@Nonnull Expression<String> query, @Nonnull Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.- Since:
- 7.0
-
xmlagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlagg(@Nullable JpaOrder order, @Nonnull Expression<?> argument) - See Also:
-
xmlagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nonnull Expression<?> argument) - See Also:
-
xmlagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlagg(@Nullable JpaOrder order, @Nullable JpaWindow window, @Nonnull Expression<?> argument) - See Also:
-
xmlagg
@Nonnull @Incubating(since="6.3") JpaExpression<String> xmlagg(@Nullable JpaOrder order, @Nullable JpaPredicate filter, @Nullable JpaWindow window, @Nonnull Expression<?> argument) Create axmlaggordered set-aggregate function expression.- Parameters:
order- The order-by clause used in the within groupfilter- The optional filter clausewindow- The optional window over which to apply the functionargument- The values to join- Returns:
- the ordered set-aggregate expression
- See Also:
-
named
@Nonnull @Incubating(since="6.3") <T> JpaExpression<T> named(@Nonnull Expression<T> expression, @Nonnull String name) Creates a named expression. The name is important for the result of the expression, e.g. when building anxmlforest, the name acts as the XML element name.- Since:
- 7.0
- See Also:
-
setReturningFunction
@Nonnull @Incubating(since="6.3") <E> JpaSetReturningFunction<E> setReturningFunction(@Nonnull String name, @Nonnull Expression<?>... args) Create a new set-returning function expression.- Since:
- 7.0
- See Also:
-
unnestArray
@Nonnull @Incubating(since="6.3") <E> JpaSetReturningFunction<E> unnestArray(@Nonnull Expression<E[]> array) Creates an unnest function expression to turn an array into a set of rows.- Since:
- 7.0
- See Also:
-
unnestCollection
@Nonnull @Incubating(since="6.3") <E> JpaSetReturningFunction<E> unnestCollection(@Nonnull Expression<? extends Collection<E>> collection) Creates an unnest function expression to turn an array into a set of rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nullable E stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nonnull Expression<E> stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nullable E stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nonnull Expression<E> stop) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nonnull Expression<E> stop, @Nonnull Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nullable E stop, @Nonnull Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nonnull Expression<E> stop, @Nullable E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nonnull Expression<E> stop, @Nullable E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nullable E stop, @Nullable E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nullable E stop, @Nonnull Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nullable E start, @Nullable E stop, @Nullable E step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateSeries
@Nonnull @Incubating(since="6.3") <E extends Number> JpaSetReturningFunction<E> generateSeries(@Nonnull Expression<E> start, @Nonnull Expression<E> stop, @Nonnull Expression<E> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nullable E start, @Nonnull Expression<E> stop, @Nonnull Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nonnull Expression<E> start, @Nullable E stop, @Nonnull Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nullable E start, @Nullable E stop, @Nonnull Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nonnull Expression<E> start, @Nonnull Expression<E> stop, @Nullable TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nonnull Expression<E> start, @Nullable E stop, @Nullable TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nullable E start, @Nonnull Expression<E> stop, @Nullable TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nullable E start, @Nullable E stop, @Nullable TemporalAmount step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
generateTimeSeries
@Nonnull @Incubating(since="6.3") <E extends Temporal> JpaSetReturningFunction<E> generateTimeSeries(@Nonnull Expression<E> start, @Nonnull Expression<E> stop, @Nonnull Expression<? extends TemporalAmount> step) Creates agenerate_seriesfunction expression to generate a set of values as rows.- Since:
- 7.0
- See Also:
-
jsonTable
@Nonnull @Incubating(since="6.3") JpaJsonTableFunction jsonTable(@Nonnull Expression<?> jsonDocument) Creates ajson_tablefunction expression to generate rows from JSON array elements.- Since:
- 7.0
- See Also:
-
jsonTable
@Nonnull @Incubating(since="6.3") JpaJsonTableFunction jsonTable(@Nonnull Expression<?> jsonDocument, @Nullable String jsonPath) Creates ajson_tablefunction expression to generate rows from JSON array elements.- Since:
- 7.0
- See Also:
-
jsonTable
@Nonnull @Incubating(since="6.3") JpaJsonTableFunction jsonTable(@Nonnull Expression<?> jsonDocument, @Nullable Expression<String> jsonPath) Creates ajson_tablefunction expression to generate rows from JSON array elements.- Since:
- 7.0
- See Also:
-
xmlTable
@Nonnull @Incubating(since="6.3") JpaXmlTableFunction xmlTable(@Nullable String xpath, @Nonnull Expression<?> xmlDocument) Creates axmltablefunction expression to generate rows from XML elements.- Since:
- 7.0
- See Also:
-
xmlTable
@Nonnull @Incubating(since="6.3") JpaXmlTableFunction xmlTable(@Nonnull Expression<String> xpath, @Nonnull Expression<?> xmlDocument) Creates axmltablefunction expression to generate rows from XML elements.- Since:
- 7.0
- See Also:
-
concat
Create a string concatenation expression from a list of expressions.- Specified by:
concatin interfaceCriteriaBuilder
-
extract
@Nonnull <N, T extends Temporal> JpaExpression<N> extract(@Nonnull TemporalField<N, T> field, @Nonnull Expression<T> temporal) Create an expression extracting the given temporal field from a temporal expression.- Specified by:
extractin interfaceCriteriaBuilder
-