Interface HibernateCriteriaBuilder
- All Superinterfaces:
CriteriaBuilder
- All Known Subinterfaces:
NodeBuilder
- All Known Implementing Classes:
CriteriaDefinition,HibernateCriteriaBuilderDelegate,SqmCriteriaNodeBuilder
CriteriaBuilder is a source of objects which may be composed
to express a criteria query. The JPA-standard API defines all the operations
needed 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
- Author:
- Steve Ebersole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.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 that returns 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 an all expression over the subquery results.and(Expression<Boolean> x, Expression<Boolean> y) Create a conjunction of the given boolean expressions.Create a conjunction of the given restriction predicates.<Y> JpaExpression<Y>Create an any expression over the subquery results.Create an array-valued selection item.<Y> JpaCompoundSelection<Y><Y> JpaCompoundSelection<Y>array(Class<Y> resultClass, List<? extends JpaSelection<?>> selections) array(List<? extends JpaSelection<?>> 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.default <T> JpaPredicatearrayContainsAll(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.default <T> JpaPredicatearrayContainsAll(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludes(Expression, T[])default <T> JpaPredicatearrayContainsAll(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludes(T[], Expression)default <T> JpaPredicatearrayContainsAllNullable(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludesNullable(Expression, Expression)default <T> JpaPredicatearrayContainsAllNullable(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludesNullable(Expression, T[])default <T> JpaPredicatearrayContainsAllNullable(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludesNullable(T[], Expression)<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.default <T> JpaPredicatearrayOverlaps(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersects(Expression, Expression)default <T> JpaPredicatearrayOverlaps(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersects(Expression, T[])default <T> JpaPredicatearrayOverlaps(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersects(T[], Expression)default <T> JpaPredicatearrayOverlapsNullable(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersectsNullable(Expression, Expression)default <T> JpaPredicatearrayOverlapsNullable(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersectsNullable(Expression, T[])default <T> JpaPredicatearrayOverlapsNullable(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersectsNullable(T[], Expression)<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[]>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.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, String separator) Concatenates the non-null 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 ordering by the ascending value of the 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 applying the avg operation.<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 for testing whether the first argument is between the second and third arguments in value.<Y extends Comparable<? super Y>>
JpaPredicatebetween(Expression<? extends Y> value, Y lower, Y upper) Create a predicate for testing whether the first argument is between the second and third arguments in value.<X,T> JpaExpression<X> cast(JpaExpression<T> expression, Class<X> castTargetJavaType) <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 an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.<Y> JpaCoalesce<Y>coalesce(Expression<? extends Y> x, Y y) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.collate(Expression<String> x, String collation) <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.default <E> JpaPredicatecollectionContainsAll(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Expression, Expression)default <E> JpaPredicatecollectionContainsAll(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Expression, Collection)default <E> JpaPredicatecollectionContainsAll(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Collection, Expression)default <E> JpaPredicatecollectionContainsAllNullable(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Expression, Expression)default <E> JpaPredicatecollectionContainsAllNullable(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Expression, Collection)default <E> JpaPredicatecollectionContainsAllNullable(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Collection, Expression)<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.default <E> JpaPredicatecollectionOverlaps(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Expression, Expression)default <E> JpaPredicatecollectionOverlaps(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Expression, Collection)default <E> JpaPredicatecollectionOverlaps(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Collection, Expression)default <E> JpaPredicatecollectionOverlapsNullable(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Expression, Expression)default <E> JpaPredicatecollectionOverlapsNullable(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Expression, Collection)default <E> JpaPredicatecollectionOverlapsNullable(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Collection, Expression)<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.<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.<T> JpaExpression<String>collectionToString(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.<T> JpaExpression<String>collectionToString(Expression<? extends Collection<?>> collectionExpression, String separator) Concatenates the non-null basic 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 an expression for string concatenation.concat(Expression<String> x, String y) Create an expression for string concatenation.concat(String x, Expression<String> y) Create an expression for string concatenation.Create a conjunction (with zero conjuncts).<Y> JpaCompoundSelection<Y>Create a selection item corresponding to a constructor.<Y> JpaCompoundSelection<Y>construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments) 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 applying the count operation.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 applying the count distinct operation.<T> JpaCriteriaDelete<T>createCriteriaDelete(Class<T> targetEntity) Create aCriteriaDeletequery object to perform a bulk delete operation.<T> JpaCriteriaInsertSelect<T>createCriteriaInsertSelect(Class<T> targetEntity) <T> JpaCriteriaInsertValues<T>createCriteriaInsertValues(Class<T> targetEntity) <T> JpaCriteriaUpdate<T>createCriteriaUpdate(Class<T> targetEntity) Create aCriteriaUpdatequery object to perform a bulk update operation.Create aCriteriaQueryobject.<T> JpaCriteriaQuery<T>createQuery(Class<T> resultClass) Create aCriteriaQueryobject with the specified result type.<T> JpaCriteriaQuery<T>createQuery(String hql, Class<T> resultClass) Transform the given HQLselectquery to an equivalent criteria query.Create aCriteriaQueryobject that returns a tuple of objects as its result.Create an emptyJpaWindowto use with window and aggregate functions.Create acume_distwindow function expression.Create expression to return current date.Create expression to return current time.Create expression to return current 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 an ordering by the descending value of the 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 that returns the difference between its arguments.<N extends Number>
JpaExpression<N>diff(Expression<? extends N> x, N y) Create an expression that returns the difference between its arguments.<N extends Number>
JpaExpression<N>diff(N x, Expression<? extends N> y) Create an expression that returns the difference between its arguments.Create a disjunction (with zero disjuncts).distinctFrom(Expression<?> x, Expression<?> y) distinctFrom(Expression<?> x, Object y) 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 a predicate for testing the arguments for equality.equal(Expression<?> x, Object y) Create a predicate for testing the arguments for equality.<T> JpaCriteriaQuery<T>except(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>except(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>exceptAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T>Create a predicate testing the existence of a subquery result.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.<T> JpaExpression<T>firstValue(Expression<T> argument, JpaWindow window) Create afirst_valuewindow function expression.<P,F> JpaExpression<F> <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 for the execution of 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 predicate for testing whether the first argument is greater than or equal to the second.ge(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than or equal to the second.<Y extends Comparable<? super Y>>
JpaPredicategreaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than the second.<Y extends Comparable<? super Y>>
JpaPredicategreaterThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than the second.<Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than or equal to the second.<Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than or equal to the second.<X extends Comparable<? super X>>
JpaExpression<X>greatest(Expression<X> argument) Create an aggregate expression for finding the greatest of the values (strings, dates, etc).gt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is greater than the second.gt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than the second.hour(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.HOURof a date, time, or datetime expression.ilike(Expression<String> x, Expression<String> pattern) ilike(Expression<String> x, Expression<String> pattern, char escapeChar) ilike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) ilike(Expression<String> x, String pattern) ilike(Expression<String> x, String pattern, char escapeChar) ilike(Expression<String> x, String pattern, Expression<Character> escapeChar) <T> JpaInPredicate<T>in(Expression<? extends T> expression) Create predicate to test whether given expression is contained in a list of values.<T> JpaInPredicate<T>in(Expression<? extends T> expression, Expression<? extends T>... values) <T> JpaInPredicate<T>in(Expression<? extends T> expression, Collection<T> values) <T> JpaInPredicate<T>in(Expression<? extends T> expression, T... values) <K,L extends List<?>>
JpaExpression<Set<K>>indexes(L list) <T> JpaCriteriaQuery<T>intersect(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>intersect(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>intersectAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T>intersectAll(Subquery<? extends T> query1, Subquery<?>... queries) <C extends Collection<?>>
JpaPredicateisEmpty(Expression<C> collection) Create a predicate that tests whether a collection is empty.isFalse(Expression<Boolean> x) Create a predicate testing for a false value.<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 that tests whether an element is a member of a collection.<E,C extends Collection<E>>
JpaPredicateisMember(Expression<E> elem, Expression<C> collection) Create a predicate that tests whether an element is a member of a collection.<C extends Collection<?>>
JpaPredicateisNotEmpty(Expression<C> collection) Create a predicate that tests whether a collection is not empty.<E,C extends Collection<E>>
JpaPredicateisNotMember(E elem, Expression<C> collection) Create a predicate that tests 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 that tests whether an element is not a member of a collection.isNotNull(Expression<?> x) Create a predicate to test whether the expression is not null.isNull(Expression<?> x) Create a predicate to test whether the expression is null.isTrue(Expression<Boolean> x) Create a predicate testing for a true value.<K,M extends Map<K, ?>>
JpaExpression<Set<K>>keys(M map) Create an expression that returns the keys of a map.<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 predicate for testing whether the first argument is less than or equal to the second.le(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than or equal to the second.<X extends Comparable<? super X>>
JpaExpression<X>least(Expression<X> argument) Create an aggregate expression for finding the least of the values (strings, dates, etc).left(Expression<String> x, int length) left(Expression<String> x, Expression<Integer> length) Extract thelengthleftmost characters of a string.length(Expression<String> x) Create expression to return length of a string.<Y extends Comparable<? super Y>>
JpaPredicatelessThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than the second.<Y extends Comparable<? super Y>>
JpaPredicatelessThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than the second.<Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than or equal to the second.<Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than or equal to the second.like(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.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> JpaExpression<T>literal(T value) Create an expression for a literal.<T> List<? extends JpaExpression<T>><T> List<? extends JpaExpression<T>>literals(T... 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 expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) Create expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, String pattern) Create expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, String pattern, int from) Create expression to locate the position of one string within another, returning position of first character if found.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 expression for converting a string to lowercase.lt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is less than the second.lt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than the second.<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 applying the numerical max operation.<N extends Number>
JpaExpression<N>min(Expression<N> argument) Create an aggregate expression applying the numerical min operation.minute(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MINUTEof a date, time, or datetime expression.mod(Expression<Integer> x, Expression<Integer> y) Create an expression that returns the modulus (remainder under integer division) of its arguments.mod(Expression<Integer> x, Integer y) Create an expression that returns the modulus (remainder under integer division) of its arguments.mod(Integer x, Expression<Integer> y) Create an expression that returns the modulus (remainder under integer division) of its arguments.<T> JpaExpression<T>mode(Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>mode(JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>mode(JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create amodeordered set-aggregate function expression.<T> JpaExpression<T>mode(JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) month(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MONTHof a date, time, or datetime expression.<N extends Number>
JpaExpression<N>neg(Expression<N> x) Create an expression that returns the arithmetic negation of its argument.not(Expression<Boolean> restriction) Create a negation of the given restriction.notDistinctFrom(Expression<?> x, Expression<?> y) notDistinctFrom(Expression<?> x, Object y) notEqual(Expression<?> x, Expression<?> y) Create a predicate for testing the arguments for inequality.notEqual(Expression<?> x, Object y) Create a predicate for testing the arguments for inequality.notIlike(Expression<String> x, Expression<String> pattern) notIlike(Expression<String> x, Expression<String> pattern, char escapeChar) notIlike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) notIlike(Expression<String> x, String pattern) notIlike(Expression<String> x, String pattern, char escapeChar) notIlike(Expression<String> x, String pattern, Expression<Character> escapeChar) notLike(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.<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 an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.<Y> JpaExpression<Y>nullif(Expression<Y> x, Y y) Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.<T> JpaExpression<T>nullLiteral(Class<T> resultClass) Create an expression for a null literal with the given type.or(Expression<Boolean> x, Expression<Boolean> y) Create a disjunction of the given boolean expressions.Create a disjunction of the given restriction predicates.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 with the given name.<T> JpaExpression<T>percentileCont(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>percentileCont(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>percentileCont(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create apercentile_contordered set-aggregate function expression.<T> JpaExpression<T>percentileCont(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>percentileDisc(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) <T> JpaExpression<T>percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create apercentile_discordered set-aggregate function expression.<T> JpaExpression<T>percentileDisc(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence 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 that returns the product of its arguments.<N extends Number>
JpaExpression<N>prod(Expression<? extends N> x, N y) Create an expression that returns the product of its arguments.<N extends Number>
JpaExpression<N>prod(N x, Expression<? extends N> y) Create an expression that returns the product of its arguments.quot(Expression<? extends Number> x, Expression<? extends Number> y) Create an expression that returns the quotient of its arguments.quot(Expression<? extends Number> x, Number y) Create an expression that returns the quotient of its arguments.quot(Number x, Expression<? extends Number> y) Create an expression that returns the quotient of its arguments.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, NullPrecedence 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 general case expression.<C,R> JpaSimpleCase<C, R> selectCase(Expression<? extends C> expression) Create a simple case 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 that tests the size of a collection.<C extends Collection<?>>
JpaExpression<Integer>size(Expression<C> collection) Create an expression that tests the size of a collection.<Y> JpaExpression<Y>Create a some expression over the subquery results.sort(JpaExpression<?> sortExpression) sort(JpaExpression<?> sortExpression, SortDirection sortOrder) sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence, boolean ignoreCase) <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 that returns the square root of its argument.substring(Expression<String> x, int from) Create an expression for substring extraction.substring(Expression<String> x, int from, int len) Create an expression for substring extraction.substring(Expression<String> x, Expression<Integer> from) Create an expression for substring extraction.substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) Create an expression for substring extraction.<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 that returns the sum of its arguments.<N extends Number>
JpaExpression<N>sum(Expression<? extends N> x, N y) Create an expression that returns the sum of its arguments.<N extends Number>
JpaExpression<N>sum(Expression<N> argument) Create an aggregate expression applying the sum operation.<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 that returns the sum of its arguments.sumAsDouble(Expression<Float> argument) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.sumAsLong(Expression<Integer> argument) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.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) Typecast.toBigInteger(Expression<? extends Number> number) Typecast.toDouble(Expression<? extends Number> number) Typecast.toFloat(Expression<? extends Number> number) Typecast.toInteger(Expression<? extends Number> number) Typecast.toLong(Expression<? extends Number> number) Typecast.toString(Expression<Character> character) Typecast.<X,T, E extends T>
JpaCollectionJoin<X,E> treat(CollectionJoin<X, T> join, Class<E> type) Downcast CollectionJoin object to the specified type.<X,T, V extends T>
JpaJoin<X,V> Downcast Join object to the specified type.<X,T, E extends T>
JpaListJoin<X,E> Downcast ListJoin object to the specified type.<X,K, T, V extends T>
JpaMapJoin<X,K, V> Downcast MapJoin object to the specified type.<X,T extends X>
JpaPath<T>Downcast Path object to the specified type.<X,T extends X>
JpaRoot<T>Downcast Root object to the specified type.<X,T, E extends T>
JpaSetJoin<X,E> Downcast SetJoin object to the specified type.trim(char t, Expression<String> x) Create expression to trim character from both ends of a string.trim(CriteriaBuilder.Trimspec ts, char t, Expression<String> x) Create expression to trim character from a string.trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) Create expression to trim character from a string.trim(CriteriaBuilder.Trimspec ts, Expression<String> x) Create expression to trim blanks from a string.trim(Expression<Character> t, Expression<String> x) Create expression to trim character from both ends of a string.trim(Expression<String> x) Create expression to trim blanks from both ends of a string.<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 selection item.tuple(List<? extends JpaSelection<?>> selections) <T> JpaCriteriaQuery<T>union(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>union(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T>default <T> JpaCriteriaQuery<T>unionAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) default <T> JpaSubQuery<T><T extends HibernateCriteriaBuilder>
Tupper(Expression<String> x) Create expression for converting a string to uppercase.<T> JpaExpression<T>value(T value) values(Expression<?>... expressions) values(List<? extends Expression<?>> expressions) <V,M extends Map<?, V>>
Expression<Collection<V>>values(M map) Create an expression that returns the values of a map.<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(Expression<Boolean> expression) wrap(Expression<Boolean>... expressions) year(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.YEARof a date, time, or datetime expression.
-
Method Details
-
cast
-
wrap
-
wrap
-
unwrap
-
createQuery
JpaCriteriaQuery<Object> createQuery()Description copied from interface:CriteriaBuilderCreate aCriteriaQueryobject.- Specified by:
createQueryin interfaceCriteriaBuilder- Returns:
- criteria query object
-
createQuery
Description copied from interface:CriteriaBuilderCreate aCriteriaQueryobject with the specified result type.- Specified by:
createQueryin interfaceCriteriaBuilder- Parameters:
resultClass- type of the query result- Returns:
- criteria query object
-
createTupleQuery
JpaCriteriaQuery<Tuple> createTupleQuery()Description copied from interface:CriteriaBuilderCreate aCriteriaQueryobject that returns a tuple of objects as its result.- Specified by:
createTupleQueryin interfaceCriteriaBuilder- Returns:
- criteria query object
-
createCriteriaUpdate
Description copied from interface:CriteriaBuilderCreate aCriteriaUpdatequery object to perform a bulk update operation.- Specified by:
createCriteriaUpdatein interfaceCriteriaBuilder- Parameters:
targetEntity- target type for update operation- Returns:
- the query object
-
createCriteriaDelete
Description copied from interface:CriteriaBuilderCreate aCriteriaDeletequery object to perform a bulk delete operation.- Specified by:
createCriteriaDeletein interfaceCriteriaBuilder- Parameters:
targetEntity- target type for delete operation- Returns:
- the query object
-
createCriteriaInsertValues
-
createCriteriaInsertSelect
-
values
-
values
-
createQuery
Transform the given HQLselectquery to an equivalent criteria query.- Parameters:
hql- The HQLselectqueryresultClass- The result type of the query- Returns:
- The equivalent criteria query
- Since:
- 6.3
-
unionAll
default <T> JpaCriteriaQuery<T> unionAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
union
default <T> JpaCriteriaQuery<T> union(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
union
<T> JpaCriteriaQuery<T> union(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
intersectAll
default <T> JpaCriteriaQuery<T> intersectAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
intersect
default <T> JpaCriteriaQuery<T> intersect(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
intersect
<T> JpaCriteriaQuery<T> intersect(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
exceptAll
default <T> JpaCriteriaQuery<T> exceptAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
except
default <T> JpaCriteriaQuery<T> except(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
except
<T> JpaCriteriaQuery<T> except(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) -
unionAll
-
union
-
union
-
intersectAll
-
intersect
-
intersect
-
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- expression- Returns:
- 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- expression- Returns:
- 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- expression- Returns:
- 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- expression- Returns:
- exponential
-
ln
Create an expression that returns the natural logarithm of its argument.- Specified by:
lnin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- natural logarithm
-
power
Create an expression that returns the first argument raised to the power of its second argument.- Specified by:
powerin interfaceCriteriaBuilder- Parameters:
x- basey- 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- basey- 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- basen- number of decimal places- Returns:
- the rounded value
-
truncate
Create an expression that returns the first argument truncated to the number of decimal places given by the second argument.- Parameters:
x- basen- number of decimal places- Returns:
- the truncated value
-
localDate
JpaExpression<LocalDate> localDate()Create expression to return current local date.- Specified by:
localDatein interfaceCriteriaBuilder- Returns:
- expression for current date
-
localDateTime
JpaExpression<LocalDateTime> localDateTime()Create expression to return current local datetime.- Specified by:
localDateTimein interfaceCriteriaBuilder- Returns:
- expression for current timestamp
-
localTime
JpaExpression<LocalTime> localTime()Create expression to return current local time.- Specified by:
localTimein interfaceCriteriaBuilder- Returns:
- expression for current time
-
fk
-
treat
Description copied from interface:CriteriaBuilderDowncast Path object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
path- pathtype- type to be downcast to- Returns:
- Path object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast Root object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
root- roottype- type to be downcast to- Returns:
- Root object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast Join object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
join- Join objecttype- type to be downcast to- Returns:
- Join object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast CollectionJoin object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
join- CollectionJoin objecttype- type to be downcast to- Returns:
- CollectionJoin object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast SetJoin object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
join- SetJoin objecttype- type to be downcast to- Returns:
- SetJoin object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast ListJoin object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
join- ListJoin objecttype- type to be downcast to- Returns:
- ListJoin object of the specified type
-
treat
Description copied from interface:CriteriaBuilderDowncast MapJoin object to the specified type.- Specified by:
treatin interfaceCriteriaBuilder- Parameters:
join- MapJoin objecttype- type to be downcast to- Returns:
- MapJoin object of the specified type
-
construct
Description copied from interface:CriteriaBuilderCreate a selection item corresponding to a constructor. This method is used to specify a constructor that will be applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state after the query is executed.- Specified by:
constructin interfaceCriteriaBuilder- Parameters:
resultClass- class whose instance is to be constructedselections- arguments to the constructor- Returns:
- compound selection item
-
construct
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments) -
tuple
Description copied from interface:CriteriaBuilderCreate a tuple-valued selection item.- Specified by:
tuplein interfaceCriteriaBuilder- Parameters:
selections- selection items- Returns:
- tuple-valued compound selection
-
tuple
-
array
Description copied from interface:CriteriaBuilderCreate an array-valued selection item.- Specified by:
arrayin interfaceCriteriaBuilder- Parameters:
selections- selection items- Returns:
- array-valued compound selection
-
array
-
array
-
array
-
avg
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the avg operation.- Specified by:
avgin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to avg operation- Returns:
- avg expression
-
sum
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the sum operation.- Specified by:
sumin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to sum operation- Returns:
- sum expression
-
sumAsLong
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.- Specified by:
sumAsLongin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to sum operation- Returns:
- sum expression
-
sumAsDouble
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.- Specified by:
sumAsDoublein interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to sum operation- Returns:
- sum expression
-
max
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the numerical max operation.- Specified by:
maxin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to max operation- Returns:
- max expression
-
min
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the numerical min operation.- Specified by:
minin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to min operation- Returns:
- min expression
-
greatest
Description copied from interface:CriteriaBuilderCreate an aggregate expression for finding the greatest of the values (strings, dates, etc).- Specified by:
greatestin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to greatest operation- Returns:
- greatest expression
-
least
Description copied from interface:CriteriaBuilderCreate an aggregate expression for finding the least of the values (strings, dates, etc).- Specified by:
leastin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to least operation- Returns:
- least expression
-
count
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the count operation.- Specified by:
countin interfaceCriteriaBuilder- Parameters:
argument- expression representing input value to count operation- Returns:
- count expression
-
countDistinct
Description copied from interface:CriteriaBuilderCreate an aggregate expression applying the count distinct operation.- Specified by:
countDistinctin interfaceCriteriaBuilder- Parameters:
x- expression representing input value to count distinct operation- Returns:
- count distinct expression
-
count
JpaExpression<Long> count()Equivalent to HQLcount(*). -
neg
Description copied from interface:CriteriaBuilderCreate an expression that returns the arithmetic negation of its argument.- Specified by:
negin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- arithmetic negation
-
abs
Description copied from interface:CriteriaBuilderCreate an expression that returns the absolute value of its argument.- Specified by:
absin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- absolute value
-
sum
Description copied from interface:CriteriaBuilderCreate an expression that returns the sum of its arguments.- Specified by:
sumin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- sum
-
sum
Description copied from interface:CriteriaBuilderCreate an expression that returns the sum of its arguments.- Specified by:
sumin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- sum
-
sum
Description copied from interface:CriteriaBuilderCreate an expression that returns the sum of its arguments.- Specified by:
sumin interfaceCriteriaBuilder- Parameters:
x- valuey- expression- Returns:
- sum
-
prod
Description copied from interface:CriteriaBuilderCreate an expression that returns the product of its arguments.- Specified by:
prodin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- product
-
prod
Description copied from interface:CriteriaBuilderCreate an expression that returns the product of its arguments.- Specified by:
prodin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- product
-
prod
Description copied from interface:CriteriaBuilderCreate an expression that returns the product of its arguments.- Specified by:
prodin interfaceCriteriaBuilder- Parameters:
x- valuey- expression- Returns:
- product
-
diff
Description copied from interface:CriteriaBuilderCreate an expression that returns the difference between its arguments.- Specified by:
diffin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- difference
-
diff
Description copied from interface:CriteriaBuilderCreate an expression that returns the difference between its arguments.- Specified by:
diffin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- difference
-
diff
Description copied from interface:CriteriaBuilderCreate an expression that returns the difference between its arguments.- Specified by:
diffin interfaceCriteriaBuilder- Parameters:
x- valuey- expression- Returns:
- difference
-
quot
Description copied from interface:CriteriaBuilderCreate an expression that returns the quotient of its arguments.- Specified by:
quotin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- quotient
-
quot
Description copied from interface:CriteriaBuilderCreate an expression that returns the quotient of its arguments.- Specified by:
quotin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- quotient
-
quot
Description copied from interface:CriteriaBuilderCreate an expression that returns the quotient of its arguments.- Specified by:
quotin interfaceCriteriaBuilder- Parameters:
x- valuey- expression- Returns:
- quotient
-
mod
Description copied from interface:CriteriaBuilderCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Specified by:
modin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- modulus
-
mod
Description copied from interface:CriteriaBuilderCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Specified by:
modin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- modulus
-
mod
Description copied from interface:CriteriaBuilderCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Specified by:
modin interfaceCriteriaBuilder- Parameters:
x- valuey- expression- Returns:
- modulus
-
sqrt
Description copied from interface:CriteriaBuilderCreate an expression that returns the square root of its argument.- Specified by:
sqrtin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- square root
-
durationSum
Add two durations.- Since:
- 6.3
-
durationSum
Add two durations.- Since:
- 6.3
-
durationDiff
Subtract one duration from another.- Since:
- 6.3
-
durationDiff
Subtract one duration from another.- Since:
- 6.3
-
durationScaled
JpaExpression<Duration> durationScaled(Expression<? extends Number> number, Expression<Duration> duration) Scale a duration by a number.- Since:
- 6.3
-
durationScaled
Scale a duration by a number.- Since:
- 6.3
-
durationScaled
Scale a duration by a number.- Since:
- 6.3
-
duration
A literalDuration, for example, "five days" or "30 minutes".- Since:
- 6.3
-
durationByUnit
Convert aDurationto a numeric magnitude in the given units.- Parameters:
unit- a choice of temporal granularityduration- the duration in a "unit-free" form- Returns:
- the magnitude of the duration measured in the given units
- Since:
- 6.3
-
durationBetween
Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.- Since:
- 6.3
-
durationBetween
Subtract two dates or two datetimes, returning the duration between the two dates or between two datetimes.- Since:
- 6.3
-
addDuration
<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.- Since:
- 6.3
-
addDuration
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
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
<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.- Since:
- 6.3
-
subtractDuration
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
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
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toLongin interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<Long>
-
toInteger
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toIntegerin interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<Integer>
-
toFloat
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toFloatin interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<Float>
-
toDouble
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toDoublein interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<Double>
-
toBigDecimal
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toBigDecimalin interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<BigDecimal>
-
toBigInteger
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toBigIntegerin interfaceCriteriaBuilder- Parameters:
number- numeric expression- Returns:
- Expression<BigInteger>
-
toString
Description copied from interface:CriteriaBuilderTypecast. Returns same expression object.- Specified by:
toStringin interfaceCriteriaBuilder- Parameters:
character- expression- Returns:
- Expression<String>
-
literal
Description copied from interface:CriteriaBuilderCreate an expression for a literal.- Specified by:
literalin interfaceCriteriaBuilder- Parameters:
value- value represented by the expression- Returns:
- expression literal
-
literals
-
literals
-
nullLiteral
Description copied from interface:CriteriaBuilderCreate an expression for a null literal with the given type.- Specified by:
nullLiteralin interfaceCriteriaBuilder- Parameters:
resultClass- type of the null literal- Returns:
- null expression literal
-
parameter
Description copied from interface:CriteriaBuilderCreate a parameter expression.- Specified by:
parameterin interfaceCriteriaBuilder- Parameters:
paramClass- parameter class- Returns:
- parameter expression
-
parameter
Description copied from interface:CriteriaBuilderCreate a parameter expression with the given name.- Specified by:
parameterin interfaceCriteriaBuilder- Parameters:
paramClass- parameter classname- name that can be used to refer to the parameter- Returns:
- parameter expression
-
concat
Description copied from interface:CriteriaBuilderCreate an expression for string concatenation.- Specified by:
concatin interfaceCriteriaBuilder- Parameters:
x- string expressiony- string expression- Returns:
- expression corresponding to concatenation
-
concat
Description copied from interface:CriteriaBuilderCreate an expression for string concatenation.- Specified by:
concatin interfaceCriteriaBuilder- Parameters:
x- string expressiony- string- Returns:
- expression corresponding to concatenation
-
concat
Description copied from interface:CriteriaBuilderCreate an expression for string concatenation.- Specified by:
concatin interfaceCriteriaBuilder- Parameters:
x- stringy- string expression- Returns:
- expression corresponding to concatenation
-
concat
-
substring
Description copied from interface:CriteriaBuilderCreate an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.- Specified by:
substringin interfaceCriteriaBuilder- Parameters:
x- string expressionfrom- start position expression- Returns:
- expression corresponding to substring extraction
-
substring
Description copied from interface:CriteriaBuilderCreate an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.- Specified by:
substringin interfaceCriteriaBuilder- Parameters:
x- string expressionfrom- start position- Returns:
- expression corresponding to substring extraction
-
substring
JpaFunction<String> substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) Description copied from interface:CriteriaBuilderCreate an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.- Specified by:
substringin interfaceCriteriaBuilder- Parameters:
x- string expressionfrom- start position expressionlen- length expression- Returns:
- expression corresponding to substring extraction
-
substring
Description copied from interface:CriteriaBuilderCreate an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.- Specified by:
substringin interfaceCriteriaBuilder- Parameters:
x- string expressionfrom- start positionlen- length- Returns:
- expression corresponding to substring extraction
-
trim
Description copied from interface:CriteriaBuilderCreate expression to trim blanks from both ends of a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
x- expression for string to trim- Returns:
- trim expression
-
trim
Description copied from interface:CriteriaBuilderCreate expression to trim blanks from a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
ts- trim specificationx- expression for string to trim- Returns:
- trim expression
-
trim
Description copied from interface:CriteriaBuilderCreate expression to trim character from both ends of a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
t- expression for character to be trimmedx- expression for string to trim- Returns:
- trim expression
-
trim
JpaFunction<String> trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) Description copied from interface:CriteriaBuilderCreate expression to trim character from a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
ts- trim specificationt- expression for character to be trimmedx- expression for string to trim- Returns:
- trim expression
-
trim
Description copied from interface:CriteriaBuilderCreate expression to trim character from both ends of a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
t- character to be trimmedx- expression for string to trim- Returns:
- trim expression
-
trim
Description copied from interface:CriteriaBuilderCreate expression to trim character from a string.- Specified by:
trimin interfaceCriteriaBuilder- Parameters:
ts- trim specificationt- character to be trimmedx- expression for string to trim- Returns:
- trim expression
-
lower
Description copied from interface:CriteriaBuilderCreate expression for converting a string to lowercase.- Specified by:
lowerin interfaceCriteriaBuilder- Parameters:
x- string expression- Returns:
- expression to convert to lowercase
-
upper
Description copied from interface:CriteriaBuilderCreate expression for converting a string to uppercase.- Specified by:
upperin interfaceCriteriaBuilder- Parameters:
x- string expression- Returns:
- expression to convert to uppercase
-
length
Description copied from interface:CriteriaBuilderCreate expression to return length of a string.- Specified by:
lengthin interfaceCriteriaBuilder- Parameters:
x- string expression- Returns:
- length expression
-
locate
Description copied from interface:CriteriaBuilderCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL.
- Specified by:
locatein interfaceCriteriaBuilder- Parameters:
x- expression for string to be searchedpattern- expression for string to be located- Returns:
- expression corresponding to position
-
locate
Description copied from interface:CriteriaBuilderCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL.
- Specified by:
locatein interfaceCriteriaBuilder- Parameters:
x- expression for string to be searchedpattern- string to be located- Returns:
- expression corresponding to position
-
locate
JpaFunction<Integer> locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) Description copied from interface:CriteriaBuilderCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the first two parameters of this method is reversed compared to the corresponding function in JPQL.
- Specified by:
locatein interfaceCriteriaBuilder- Parameters:
x- expression for string to be searchedpattern- expression for string to be locatedfrom- expression for position at which to start search- Returns:
- expression corresponding to position
-
locate
Description copied from interface:CriteriaBuilderCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the first two parameters of this method is reversed compared to the corresponding function in JPQL.
- Specified by:
locatein interfaceCriteriaBuilder- Parameters:
x- expression for string to be searchedpattern- string to be locatedfrom- position at which to start search- Returns:
- expression corresponding to position
-
currentDate
JpaFunction<Date> currentDate()Description copied from interface:CriteriaBuilderCreate expression to return current date.- Specified by:
currentDatein interfaceCriteriaBuilder- Returns:
- expression for current date
-
currentTime
JpaFunction<Time> currentTime()Description copied from interface:CriteriaBuilderCreate expression to return current time.- Specified by:
currentTimein interfaceCriteriaBuilder- Returns:
- expression for current time
-
currentTimestamp
JpaFunction<Timestamp> currentTimestamp()Description copied from interface:CriteriaBuilderCreate expression to return current timestamp.- Specified by:
currentTimestampin interfaceCriteriaBuilder- Returns:
- expression for current timestamp
-
currentInstant
JpaFunction<Instant> currentInstant() -
function
Description copied from interface:CriteriaBuilderCreate an expression for the execution of a database function.- Specified by:
functionin interfaceCriteriaBuilder- Parameters:
name- function nametype- expected result typeargs- function arguments- Returns:
- expression
-
all
Description copied from interface:CriteriaBuilderCreate an all expression over the subquery results.- Specified by:
allin interfaceCriteriaBuilder- Parameters:
subquery- subquery- Returns:
- all expression
-
some
Description copied from interface:CriteriaBuilderCreate a some expression over the subquery results. This expression is equivalent to ananyexpression.- Specified by:
somein interfaceCriteriaBuilder- Parameters:
subquery- subquery- Returns:
- some expression
-
any
Description copied from interface:CriteriaBuilderCreate an any expression over the subquery results. This expression is equivalent to asomeexpression.- Specified by:
anyin interfaceCriteriaBuilder- Parameters:
subquery- subquery- Returns:
- any expression
-
keys
Description copied from interface:CriteriaBuilderCreate an expression that returns the keys of a map.- Specified by:
keysin interfaceCriteriaBuilder- Parameters:
map- map- Returns:
- set expression
-
indexes
-
value
-
values
Description copied from interface:CriteriaBuilderCreate an expression that returns the values of a map.- Specified by:
valuesin interfaceCriteriaBuilder- Parameters:
map- map- Returns:
- collection expression
-
size
Description copied from interface:CriteriaBuilderCreate an expression that tests the size of a collection.- Specified by:
sizein interfaceCriteriaBuilder- Parameters:
collection- expression- Returns:
- size expression
-
size
Description copied from interface:CriteriaBuilderCreate an expression that tests the size of a collection.- Specified by:
sizein interfaceCriteriaBuilder- Parameters:
collection- collection- Returns:
- size expression
-
coalesce
Description copied from interface:CriteriaBuilderCreate a coalesce expression.- Specified by:
coalescein interfaceCriteriaBuilder- Returns:
- coalesce expression
-
coalesce
Description copied from interface:CriteriaBuilderCreate an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.- Specified by:
coalescein interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- coalesce expression
-
coalesce
Description copied from interface:CriteriaBuilderCreate an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.- Specified by:
coalescein interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- coalesce expression
-
nullif
Description copied from interface:CriteriaBuilderCreate an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullifin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- nullif expression
-
nullif
Description copied from interface:CriteriaBuilderCreate an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.- Specified by:
nullifin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- nullif expression
-
selectCase
Description copied from interface:CriteriaBuilderCreate a simple case expression.- Specified by:
selectCasein interfaceCriteriaBuilder- Parameters:
expression- to be tested against the case conditions- Returns:
- simple case expression
-
selectCase
Description copied from interface:CriteriaBuilderCreate a general case expression.- Specified by:
selectCasein interfaceCriteriaBuilder- Returns:
- general case expression
-
and
Description copied from interface:CriteriaBuilderCreate a conjunction of the given boolean expressions.- Specified by:
andin interfaceCriteriaBuilder- Parameters:
x- boolean expressiony- boolean expression- Returns:
- and predicate
-
and
Description copied from interface:CriteriaBuilderCreate a conjunction of the given restriction predicates. A conjunction of zero predicates is true.- Specified by:
andin interfaceCriteriaBuilder- Parameters:
restrictions- zero or more restriction predicates- Returns:
- and predicate
-
or
Description copied from interface:CriteriaBuilderCreate a disjunction of the given boolean expressions.- Specified by:
orin interfaceCriteriaBuilder- Parameters:
x- boolean expressiony- boolean expression- Returns:
- or predicate
-
or
Description copied from interface:CriteriaBuilderCreate a disjunction of the given restriction predicates. A disjunction of zero predicates is false.- Specified by:
orin interfaceCriteriaBuilder- Parameters:
restrictions- zero or more restriction predicates- Returns:
- or predicate
-
not
Description copied from interface:CriteriaBuilderCreate a negation of the given restriction.- Specified by:
notin interfaceCriteriaBuilder- Parameters:
restriction- restriction expression- Returns:
- not predicate
-
conjunction
JpaPredicate conjunction()Description copied from interface:CriteriaBuilderCreate a conjunction (with zero conjuncts). A conjunction with zero conjuncts is true.- Specified by:
conjunctionin interfaceCriteriaBuilder- Returns:
- and predicate
-
disjunction
JpaPredicate disjunction()Description copied from interface:CriteriaBuilderCreate a disjunction (with zero disjuncts). A disjunction with zero disjuncts is false.- Specified by:
disjunctionin interfaceCriteriaBuilder- Returns:
- or predicate
-
isTrue
Description copied from interface:CriteriaBuilderCreate a predicate testing for a true value.- Specified by:
isTruein interfaceCriteriaBuilder- Parameters:
x- expression to be tested- Returns:
- predicate
-
isFalse
Description copied from interface:CriteriaBuilderCreate a predicate testing for a false value.- Specified by:
isFalsein interfaceCriteriaBuilder- Parameters:
x- expression to be tested- Returns:
- predicate
-
isNull
Description copied from interface:CriteriaBuilderCreate a predicate to test whether the expression is null.- Specified by:
isNullin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- is-null predicate
-
isNotNull
Description copied from interface:CriteriaBuilderCreate a predicate to test whether the expression is not null.- Specified by:
isNotNullin interfaceCriteriaBuilder- Parameters:
x- expression- Returns:
- is-not-null predicate
-
equal
Description copied from interface:CriteriaBuilderCreate a predicate for testing the arguments for equality.- Specified by:
equalin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- equality predicate
-
equal
Description copied from interface:CriteriaBuilderCreate a predicate for testing the arguments for equality.- Specified by:
equalin interfaceCriteriaBuilder- Parameters:
x- expressiony- object- Returns:
- equality predicate
-
notEqual
Description copied from interface:CriteriaBuilderCreate a predicate for testing the arguments for inequality.- Specified by:
notEqualin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- inequality predicate
-
notEqual
Description copied from interface:CriteriaBuilderCreate a predicate for testing the arguments for inequality.- Specified by:
notEqualin interfaceCriteriaBuilder- Parameters:
x- expressiony- object- Returns:
- inequality predicate
-
distinctFrom
-
distinctFrom
-
notDistinctFrom
-
notDistinctFrom
-
greaterThan
<Y extends Comparable<? super Y>> JpaPredicate greaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than the second.- Specified by:
greaterThanin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- greater-than predicate
-
greaterThan
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than the second.- Specified by:
greaterThanin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- greater-than predicate
-
greaterThanOrEqualTo
<Y extends Comparable<? super Y>> JpaPredicate greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than or equal to the second.- Specified by:
greaterThanOrEqualToin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- greater-than-or-equal predicate
-
greaterThanOrEqualTo
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than or equal to the second.- Specified by:
greaterThanOrEqualToin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- greater-than-or-equal predicate
-
lessThan
<Y extends Comparable<? super Y>> JpaPredicate lessThan(Expression<? extends Y> x, Expression<? extends Y> y) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than the second.- Specified by:
lessThanin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- less-than predicate
-
lessThan
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than the second.- Specified by:
lessThanin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- less-than predicate
-
lessThanOrEqualTo
<Y extends Comparable<? super Y>> JpaPredicate lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than or equal to the second.- Specified by:
lessThanOrEqualToin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- less-than-or-equal predicate
-
lessThanOrEqualTo
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than or equal to the second.- Specified by:
lessThanOrEqualToin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- less-than-or-equal predicate
-
between
<Y extends Comparable<? super Y>> JpaPredicate between(Expression<? extends Y> value, Expression<? extends Y> lower, Expression<? extends Y> upper) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is between the second and third arguments in value.- Specified by:
betweenin interfaceCriteriaBuilder- Parameters:
value- expressionlower- expressionupper- expression- Returns:
- between predicate
-
between
<Y extends Comparable<? super Y>> JpaPredicate between(Expression<? extends Y> value, Y lower, Y upper) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is between the second and third arguments in value.- Specified by:
betweenin interfaceCriteriaBuilder- Parameters:
value- expressionlower- valueupper- value- Returns:
- between predicate
-
gt
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than the second.- Specified by:
gtin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- greater-than predicate
-
gt
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than the second.- Specified by:
gtin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- greater-than predicate
-
ge
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than or equal to the second.- Specified by:
gein interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- greater-than-or-equal predicate
-
ge
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is greater than or equal to the second.- Specified by:
gein interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- greater-than-or-equal predicate
-
lt
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than the second.- Specified by:
ltin interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- less-than predicate
-
lt
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than the second.- Specified by:
ltin interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- less-than predicate
-
le
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than or equal to the second.- Specified by:
lein interfaceCriteriaBuilder- Parameters:
x- expressiony- expression- Returns:
- less-than-or-equal predicate
-
le
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the first argument is less than or equal to the second.- Specified by:
lein interfaceCriteriaBuilder- Parameters:
x- expressiony- value- Returns:
- less-than-or-equal predicate
-
isEmpty
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether a collection is empty.- Specified by:
isEmptyin interfaceCriteriaBuilder- Parameters:
collection- expression- Returns:
- is-empty predicate
-
isNotEmpty
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether a collection is not empty.- Specified by:
isNotEmptyin interfaceCriteriaBuilder- Parameters:
collection- expression- Returns:
- is-not-empty predicate
-
isMember
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.- Specified by:
isMemberin interfaceCriteriaBuilder- Parameters:
elem- element expressioncollection- expression- Returns:
- is-member predicate
-
isMember
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.- Specified by:
isMemberin interfaceCriteriaBuilder- Parameters:
elem- elementcollection- expression- Returns:
- is-member predicate
-
isNotMember
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.- Specified by:
isNotMemberin interfaceCriteriaBuilder- Parameters:
elem- element expressioncollection- expression- Returns:
- is-not-member predicate
-
isNotMember
Description copied from interface:CriteriaBuilderCreate a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.- Specified by:
isNotMemberin interfaceCriteriaBuilder- Parameters:
elem- elementcollection- expression- Returns:
- is-not-member predicate
-
like
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expression- Returns:
- like predicate
-
like
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string- Returns:
- like predicate
-
like
JpaPredicate like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expressionescapeChar- escape character expression- Returns:
- like predicate
-
like
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expressionescapeChar- escape character- Returns:
- like predicate
-
like
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- stringescapeChar- escape character expression- Returns:
- like predicate
-
like
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression satisfies the given pattern.- Specified by:
likein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- stringescapeChar- escape character- Returns:
- like predicate
-
ilike
-
ilike
-
ilike
JpaPredicate ilike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) -
ilike
-
ilike
-
ilike
-
notLike
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expression- Returns:
- not-like predicate
-
notLike
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string- Returns:
- not-like predicate
-
notLike
JpaPredicate notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expressionescapeChar- escape character expression- Returns:
- not-like predicate
-
notLike
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- string expressionescapeChar- escape character- Returns:
- not-like predicate
-
notLike
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- stringescapeChar- escape character expression- Returns:
- not-like predicate
-
notLike
Description copied from interface:CriteriaBuilderCreate a predicate for testing whether the expression does not satisfy the given pattern.- Specified by:
notLikein interfaceCriteriaBuilder- Parameters:
x- string expressionpattern- stringescapeChar- escape character- Returns:
- not-like predicate
-
notIlike
-
notIlike
-
notIlike
JpaPredicate notIlike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) -
notIlike
-
notIlike
-
notIlike
-
in
Description copied from interface:CriteriaBuilderCreate predicate to test whether given expression is contained in a list of values.- Specified by:
inin interfaceCriteriaBuilder- Parameters:
expression- to be tested against list of values- Returns:
- in predicate
-
in
-
in
-
in
-
exists
Description copied from interface:CriteriaBuilderCreate a predicate testing the existence of a subquery result.- Specified by:
existsin interfaceCriteriaBuilder- Parameters:
subquery- subquery whose result is to be tested- Returns:
- exists predicate
-
isMapEmpty
Create a predicate that tests whether a Map is empty.- Parameters:
mapExpression- The expression resolving to a Map which we want to check for emptiness- Returns:
- is-empty predicate
-
isMapNotEmpty
Create a predicate that tests whether a Map is not empty.- Parameters:
mapExpression- The expression resolving to a Map which we want to check for non-emptiness- Returns:
- is-not-empty predicate
-
mapSize
Create an expression that tests the size of a map.- Parameters:
mapExpression- The expression resolving to a Map for which we want to know the size- Returns:
- size expression
-
mapSize
Create an expression that tests the size of a map.- Parameters:
map- The Map for which we want to know the size- Returns:
- size expression
-
sort
JpaOrder sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence, boolean ignoreCase) -
sort
JpaOrder sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
sort
-
sort
-
asc
Description copied from interface:CriteriaBuilderCreate an ordering by the ascending value of the expression.- Specified by:
ascin interfaceCriteriaBuilder- Parameters:
x- expression used to define the ordering- Returns:
- ascending ordering corresponding to the expression
-
desc
Description copied from interface:CriteriaBuilderCreate an ordering by the descending value of the expression.- Specified by:
descin interfaceCriteriaBuilder- Parameters:
x- expression used to define the ordering- Returns:
- descending ordering corresponding to the expression
-
asc
Create an ordering by the ascending value of the expression.- Parameters:
x- expression used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- ascending ordering corresponding to the expression
-
desc
Create an ordering by the descending value of the expression.- Parameters:
x- expression used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- descending ordering corresponding to the expression
-
search
@Incubating JpaSearchOrder search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder, NullPrecedence nullPrecedence) Create a search ordering based on the sort order and null precedence of the value of the CTE attribute.- Parameters:
cteAttribute- CTE attribute used to define the orderingsortOrder- The sort ordernullPrecedence- The null precedence- Returns:
- ordering corresponding to the CTE attribute
-
search
Create a search ordering based on the sort order of the value of the CTE attribute.- Parameters:
cteAttribute- CTE attribute used to define the orderingsortOrder- The sort order- Returns:
- ordering corresponding to the CTE attribute
-
search
Create a search ordering based on the ascending value of the CTE attribute.- Parameters:
cteAttribute- CTE attribute used to define the ordering- Returns:
- ascending ordering corresponding to the CTE attribute
-
asc
Create a search ordering by the ascending value of the CTE attribute.- Parameters:
x- CTE attribute used to define the ordering- Returns:
- ascending ordering corresponding to the CTE attribute
-
desc
Create a search ordering by the descending value of the CTE attribute.- Parameters:
x- CTE attribute used to define the ordering- Returns:
- descending ordering corresponding to the CTE attribute
-
asc
Create a search ordering by the ascending value of the CTE attribute.- Parameters:
x- CTE attribute used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- ascending ordering corresponding to the CTE attribute
-
desc
Create a search ordering by the descending value of the CTE attribute.- Parameters:
x- CTE attribute used to define the orderingnullsFirst- Whethernullshould be sorted first- Returns:
- descending ordering corresponding to the CTE attribute
-
sql
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- type of this expression- Parameters:
pattern- native SQL patterntype- type of this expressionarguments- optional arguments to the SQL pattern- Returns:
- native SQL expression
-
format
@Incubating JpaFunction<String> format(Expression<? extends TemporalAccessor> datetime, 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
Dialect.appendDatetimeFormat(org.hibernate.sql.ast.spi.SqlAppender, java.lang.String)for a full list of pattern elements.- Parameters:
datetime- the datetime expression to formatpattern- the pattern to use for formatting- Returns:
- format expression
-
year
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
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
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
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
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
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
@Incubating <T extends TemporalAccessor> JpaFunction<T> truncate(Expression<T> datetime, 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 be truncatedtemporalUnit- the temporal unit for truncation- Returns:
- the truncated value
-
overlay
-
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, String replacement, int start, int length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start, int length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start, int length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, int length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, String replacement, int start, Expression<Integer> length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start, Expression<Integer> length) -
overlay
@Incubating JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start, Expression<Integer> length) -
overlay
@Incubating JpaFunction<String> 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.- Parameters:
string- string expression to be manipulatedreplacement- string expression to replace in originalstart- start positionlength- optional, number of characters to substitute- Returns:
- overlay expression
-
pad
-
pad
-
pad
-
pad
@Incubating JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length) -
pad
-
pad
@Incubating JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, char padChar) -
pad
-
pad
@Incubating JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, char padChar) -
pad
@Incubating JpaFunction<String> pad(Expression<String> x, int length, Expression<Character> padChar) -
pad
@Incubating JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, Expression<Character> padChar) -
pad
@Incubating JpaFunction<String> pad(Expression<String> x, Expression<Integer> length, Expression<Character> padChar) -
pad
@Incubating JpaFunction<String> 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. Optionally pass aCriteriaBuilder.Trimspecto pad the string expression withLEADINGorTRAILING(default) characters.- Parameters:
ts- optionalCriteriaBuilder.Trimspecx- string expression to padlength- length of the result string after paddingpadChar- optional pad character- Returns:
- pad 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:
- 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:
- 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:
- repeat expression
-
left
- See Also:
-
left
Extract thelengthleftmost characters of a string.- Parameters:
x- original stringlength- number of characters- Returns:
- left expression
-
right
- See Also:
-
right
Extract thelengthrightmost characters of a string.- Parameters:
x- original stringlength- number of characters- Returns:
- left expression
-
replace
-
replace
@Incubating JpaFunction<String> replace(Expression<String> x, String pattern, Expression<String> replacement) -
replace
@Incubating JpaFunction<String> replace(Expression<String> x, Expression<String> pattern, String replacement) -
replace
@Incubating JpaFunction<String> replace(Expression<String> x, Expression<String> pattern, Expression<String> replacement) Replace all occurrences ofpatternwithin the original string withreplacement.- Parameters:
x- original stringpattern- the string to be replacedreplacement- the new replacement string- Returns:
- replace expression
-
collate
-
log10
Create an expression that returns the base-10 logarithm of its argument.- Parameters:
x- expression- Returns:
- base-10 logarithm
-
log
- See Also:
-
log
@Incubating JpaExpression<Double> log(Expression<? extends Number> b, Expression<? extends Number> x) Create an expression that returns the logarithm ofxto the baseb.- Parameters:
b- basex- expression- Returns:
- arbitrary-base logarithm
-
pi
Literal expression corresponding to the value of pi.- Returns:
- pi expression
-
sin
Create an expression that returns the sine of its argument.- Parameters:
x- expression- Returns:
- sine
-
cos
Create an expression that returns the cosine of its argument.- Parameters:
x- expression- Returns:
- cosine
-
tan
Create an expression that returns the tangent of its argument.- Parameters:
x- expression- Returns:
- tangent
-
asin
Create an expression that returns the inverse sine of its argument.- Parameters:
x- expression- Returns:
- inverse sine
-
acos
Create an expression that returns the inverse cosine of its argument.- Parameters:
x- expression- Returns:
- inverse cosine
-
atan
Create an expression that returns the inverse tangent of its argument.- Parameters:
x- expression- Returns:
- inverse tangent
-
atan2
- See Also:
-
atan2
- See Also:
-
atan2
@Incubating JpaExpression<Double> atan2(Expression<? extends Number> y, Expression<? extends Number> x) Create an expression that returns the inverse tangent ofyoverx.- Parameters:
y- y coordinatex- x coordinate- Returns:
- 2-argument inverse tangent
-
sinh
Create an expression that returns the hyperbolic sine of its argument.- Parameters:
x- expression- Returns:
- hyperbolic sine
-
cosh
Create an expression that returns the hyperbolic cosine of its argument.- Parameters:
x- expression- Returns:
- hyperbolic cosine
-
tanh
Create an expression that returns the hyperbolic tangent of its argument.- Parameters:
x- expression- Returns:
- hyperbolic tangent
-
degrees
Create an expression that converts an angle measured in radians to an approximately equivalent angle measured in degrees.- Parameters:
x- expression- Returns:
- degrees
-
radians
Create an expression that converts an angle measured in degrees to an approximately equivalent angle measured in radians.- Parameters:
x- expression- Returns:
- 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
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
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
@Incubating <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.- Type Parameters:
T- type of this expression- Parameters:
name- name of the window functiontype- type of this expressionwindow- window over which the function will be appliedargs- arguments to the function- Returns:
- window function expression
-
rowNumber
Create arow_numberwindow function expression.- Parameters:
window- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
firstValue
Create afirst_valuewindow function expression.- Type Parameters:
T- type of the expression- Parameters:
argument- argument expression to pass tofirst_valuewindow- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
lastValue
Create alast_valuewindow function expression.- Type Parameters:
T- type of the expression- Parameters:
argument- argument expression to pass tolast_valuewindow- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
nthValue
- See Also:
-
nthValue
@Incubating <T> JpaExpression<T> nthValue(Expression<T> argument, Expression<Integer> n, JpaWindow window) Create anth_valuewindow function expression.- Type Parameters:
T- type of the expression- Parameters:
argument- argument expression to pass tonth_valuen- theNargument for the functionwindow- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
rank
Create arankwindow function expression.- Parameters:
window- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
denseRank
Create adense_rankwindow function expression.- Parameters:
window- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
percentRank
Create apercent_rankwindow function expression.- Parameters:
window- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
cumeDist
Create acume_distwindow function expression.- Parameters:
window- window over which the function will be applied- Returns:
- window function expression
- See Also:
-
functionAggregate
@Incubating <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, Expression<?>... args) -
functionAggregate
@Incubating <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaWindow window, Expression<?>... args) -
functionAggregate
@Incubating <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, JpaWindow window, Expression<?>... args) Create a generic aggregate function expression.- Type Parameters:
T- type of this expression- Parameters:
name- name of the ordered set-aggregate functiontype- type of this expressionfilter- optional filter clausewindow- optional window over which to apply the functionargs- optional arguments to the function- Returns:
- aggregate function expression
-
sum
@Incubating <N extends Number> JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter) - See Also:
-
sum
- See Also:
-
sum
@Incubating <N extends Number> JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter, JpaWindow window) Create asumaggregate function expression.- Type Parameters:
N- type of the input expression- Parameters:
argument- argument to the functionfilter- optional filter clausewindow- optional window over which to apply the function- Returns:
- aggregate function expression
- See Also:
-
avg
@Incubating <N extends Number> JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter) - See Also:
-
avg
- See Also:
-
avg
@Incubating <N extends Number> JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter, JpaWindow window) Create anavgaggregate function expression.- Type Parameters:
N- type of the input expression- Parameters:
argument- argument to the functionfilter- optional filter clausewindow- optional window over which to apply the function- Returns:
- aggregate function expression
- See Also:
-
count
-
count
-
count
@Incubating JpaExpression<Long> count(Expression<?> argument, JpaPredicate filter, JpaWindow window) Create acountaggregate function expression.- Parameters:
argument- argument to the functionfilter- optional filter clausewindow- optional window over which to apply the function- Returns:
- aggregate function expression
- See Also:
-
functionWithinGroup
@Incubating <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, Expression<?>... args) -
functionWithinGroup
@Incubating <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaPredicate filter, Expression<?>... args) -
functionWithinGroup
@Incubating <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaWindow window, Expression<?>... args) -
functionWithinGroup
@Incubating <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.- Type Parameters:
T- type of this expression- Parameters:
name- name of the ordered set-aggregate functiontype- type of this expressionorder- order by clause used in within groupfilter- optional filter clausewindow- optional window over which to apply the functionargs- optional arguments to the function- Returns:
- ordered set-aggregate function expression
-
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, Expression<String> argument, String separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, Expression<String> argument, Expression<String> separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, String separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, Expression<String> separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaWindow window, Expression<String> argument, String separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaWindow window, Expression<String> argument, Expression<String> separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, String separator) -
listagg
@Incubating JpaExpression<String> listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, Expression<String> separator) Create alistaggordered set-aggregate function expression.- Parameters:
order- order by clause used in within groupfilter- optional filter clausewindow- optional window over which to apply the functionargument- values to joinseparator- the separator used to join the values- Returns:
- ordered set-aggregate expression
- See Also:
-
mode
@Incubating <T> JpaExpression<T> mode(Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
mode
@Incubating <T> JpaExpression<T> mode(JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
mode
@Incubating <T> JpaExpression<T> mode(JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
mode
@Incubating <T> JpaExpression<T> mode(JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create amodeordered set-aggregate function expression.- Type Parameters:
T- type of this expression- Parameters:
filter- optional filter clausewindow- optional window over which to apply the functionsortExpression- the sort expressionsortOrder- the sort ordernullPrecedence- the null precedence- Returns:
- ordered set-aggregate expression
- See Also:
-
percentileCont
@Incubating <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileCont
@Incubating <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileCont
@Incubating <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileCont
@Incubating <T> JpaExpression<T> percentileCont(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create apercentile_contordered set-aggregate function expression.- Parameters:
argument- argument to the functionfilter- optional filter clausewindow- optional window over which to apply the functionsortExpression- the sort expressionsortOrder- the sort ordernullPrecedence- the null precedence- Returns:
- ordered set-aggregate expression
- See Also:
-
percentileDisc
@Incubating <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileDisc
@Incubating <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileDisc
@Incubating <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) -
percentileDisc
@Incubating <T> JpaExpression<T> percentileDisc(Expression<? extends Number> argument, JpaPredicate filter, JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Create apercentile_discordered set-aggregate function expression.- Parameters:
argument- argument to the functionfilter- optional filter clausewindow- optional window over which to apply the functionsortExpression- the sort expressionsortOrder- the sort ordernullPrecedence- the null precedence- Returns:
- ordered set-aggregate expression
- See Also:
-
rank
-
rank
@Incubating JpaExpression<Long> rank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments) -
rank
-
rank
@Incubating JpaExpression<Long> rank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments) Create arankordered set-aggregate function expression.- Parameters:
order- order by clause used in within groupfilter- optional filter clausewindow- optional window over which to apply the functionarguments- arguments to the function- Returns:
- ordered set-aggregate expression
- See Also:
-
percentRank
-
percentRank
@Incubating JpaExpression<Double> percentRank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments) -
percentRank
@Incubating JpaExpression<Double> percentRank(JpaOrder order, JpaWindow window, Expression<?>... arguments) -
percentRank
@Incubating JpaExpression<Double> percentRank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments) Create apercent_rankordered set-aggregate function expression.- Parameters:
order- order by clause used in within groupfilter- optional filter clausewindow- optional window over which to apply the functionarguments- arguments to the function- Returns:
- ordered set-aggregate expression
- See Also:
-
arrayAgg
- Since:
- 6.4
- See Also:
-
arrayAgg
@Incubating <T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaPredicate filter, Expression<? extends T> argument) - Since:
- 6.4
- See Also:
-
arrayAgg
@Incubating <T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaWindow window, Expression<? extends T> argument) - Since:
- 6.4
- See Also:
-
arrayAgg
@Incubating <T> JpaExpression<T[]> arrayAgg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<? extends T> argument) Create aarray_aggordered set-aggregate function expression.- Parameters:
order- order by clause used in within groupfilter- optional filter clausewindow- optional window over which to apply the functionargument- values to aggregate- Returns:
- ordered set-aggregate expression
- Since:
- 6.4
- See Also:
-
arrayLiteral
Creates an array literal with thearrayconstructor function.- Since:
- 6.4
-
arrayLength
Determines the length of an array.- Since:
- 6.4
-
arrayPosition
Determines the 1-based position of an element in an array.- Since:
- 6.4
-
arrayPosition
@Incubating <T> JpaExpression<Integer> arrayPosition(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines the 1-based position of an element in an array.- Since:
- 6.4
-
arrayPositions
@Incubating <T> JpaExpression<int[]> arrayPositions(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositions
Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositionsList
@Incubating <T> JpaExpression<List<Integer>> arrayPositionsList(Expression<T[]> arrayExpression, Expression<T> elementExpression) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayPositionsList
@Incubating <T> JpaExpression<List<Integer>> arrayPositionsList(Expression<T[]> arrayExpression, T element) Determines all 1-based positions of an element in an array.- Since:
- 6.4
-
arrayConcat
@Incubating <T> JpaExpression<T[]> arrayConcat(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayConcat
Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayConcat
Concatenates arrays with each other in order.- Since:
- 6.4
-
arrayAppend
@Incubating <T> JpaExpression<T[]> arrayAppend(Expression<T[]> arrayExpression, Expression<T> elementExpression) Appends element to array.- Since:
- 6.4
-
arrayAppend
Appends element to array.- Since:
- 6.4
-
arrayPrepend
@Incubating <T> JpaExpression<T[]> arrayPrepend(Expression<T> elementExpression, Expression<T[]> arrayExpression) Prepends element to array.- Since:
- 6.4
-
arrayPrepend
Prepends element to array.- Since:
- 6.4
-
arrayGet
@Incubating <T> JpaExpression<T> arrayGet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression) Accesses the element of an array by 1-based index.- Since:
- 6.4
-
arrayGet
Accesses the element of an array by 1-based index.- Since:
- 6.4
-
arraySet
@Incubating <T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression, Expression<T> elementExpression) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Incubating <T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Expression<Integer> indexExpression, T element) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Incubating <T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Integer index, Expression<T> elementExpression) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arraySet
@Incubating <T> JpaExpression<T[]> arraySet(Expression<T[]> arrayExpression, Integer index, T element) Creates array copy with given element at given 1-based index.- Since:
- 6.4
-
arrayRemove
@Incubating <T> JpaExpression<T[]> arrayRemove(Expression<T[]> arrayExpression, Expression<T> elementExpression) Creates array copy with given element removed.- Since:
- 6.4
-
arrayRemove
Creates array copy with given element removed.- Since:
- 6.4
-
arrayRemoveIndex
@Incubating <T> JpaExpression<T[]> arrayRemoveIndex(Expression<T[]> arrayExpression, Expression<Integer> indexExpression) Creates array copy with the element at the given 1-based index removed.- Since:
- 6.4
-
arrayRemoveIndex
Creates array copy with the element at the given 1-based index removed.- Since:
- 6.4
-
arraySlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
arraySlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
arrayReplace
@Incubating <T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, Expression<T> oldElementExpression, Expression<T> newElementExpression) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Incubating <T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, Expression<T> oldElementExpression, T newElement) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Incubating <T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, T oldElement, Expression<T> newElementExpression) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayReplace
@Incubating <T> JpaExpression<T[]> arrayReplace(Expression<T[]> arrayExpression, T oldElement, T newElement) Creates array copy replacing a given element with another.- Since:
- 6.4
-
arrayTrim
@Incubating <T> JpaExpression<T[]> arrayTrim(Expression<T[]> arrayExpression, Expression<Integer> elementCountExpression) Creates array copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
arrayTrim
Creates array copy without the last N elements, specified by the second argument.- Since:
- 6.4
-
arrayFill
@Incubating <T> JpaExpression<T[]> arrayFill(Expression<T> elementExpression, Expression<Integer> elementCountExpression) Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayFill
Creates array with the same element N times, as specified by the arguments.- Since:
- 6.4
-
arrayToString
@Incubating JpaExpression<String> arrayToString(Expression<? extends Object[]> arrayExpression, Expression<String> separatorExpression) Concatenates the non-null array elements with a separator, as specified by the arguments.- Since:
- 6.4
-
arrayToString
@Incubating JpaExpression<String> arrayToString(Expression<? extends Object[]> arrayExpression, String separator) Concatenates the non-null array elements with a separator, as specified by the arguments.- Since:
- 6.4
-
arrayContains
@Incubating <T> JpaPredicate arrayContains(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains an element.- Since:
- 6.4
-
arrayContains
Whether an array contains an element.- Since:
- 6.4
-
arrayContains
Whether an array contains an element.- Since:
- 6.4
-
arrayContainsNullable
@Incubating <T> JpaPredicate arrayContainsNullable(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains a nullable element.- Since:
- 6.4
-
arrayContainsNullable
Whether an array contains a nullable element.- Since:
- 6.4
-
arrayContainsNullable
Whether an array contains a nullable element.- Since:
- 6.4
-
arrayContainsAll
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAll(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludes(Expression, Expression)Whether an array is a subset of another array.- Since:
- 6.4
-
arrayContainsAll
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAll(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludes(Expression, T[])Whether an array is a subset of another array.- Since:
- 6.4
-
arrayContainsAll
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAll(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludes(T[], Expression)Whether an array is a subset of another array.- Since:
- 6.4
-
arrayContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAllNullable(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludesNullable(Expression, Expression)Whether an array is a subset of another array with nullable elements.- Since:
- 6.4
-
arrayContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAllNullable(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludesNullable(Expression, T[])Whether an array is a subset of another array with nullable elements.- Since:
- 6.4
-
arrayContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayContainsAllNullable(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIncludesNullable(T[], Expression)Whether an array is a subset of another array with nullable elements.- Since:
- 6.4
-
arrayIncludes
@Incubating <T> JpaPredicate arrayIncludes(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludes
Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludes
Whether an array is a subset of another array.- Since:
- 6.6
-
arrayIncludesNullable
@Incubating <T> JpaPredicate arrayIncludesNullable(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayIncludesNullable
Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayIncludesNullable
Whether an array is a subset of another array with nullable elements.- Since:
- 6.6
-
arrayOverlaps
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlaps(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersects(Expression, Expression)Whether one array has any elements common with another array.- Since:
- 6.4
-
arrayOverlaps
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlaps(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersects(Expression, T[])Whether one array has any elements common with another array.- Since:
- 6.4
-
arrayOverlaps
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlaps(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersects(T[], Expression)Whether one array has any elements common with another array.- Since:
- 6.4
-
arrayOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlapsNullable(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersectsNullable(Expression, Expression)Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.4
-
arrayOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlapsNullable(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersectsNullable(Expression, T[])Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.4
-
arrayOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <T> JpaPredicate arrayOverlapsNullable(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced with#arrayIntersectsNullable(T[], Expression)Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.4
-
arrayIntersects
@Incubating <T> JpaPredicate arrayIntersects(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersects
Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersects
Whether one array has any elements common with another array.- Since:
- 6.6
-
arrayIntersectsNullable
@Incubating <T> JpaPredicate arrayIntersectsNullable(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
arrayIntersectsNullable
Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
arrayIntersectsNullable
Whether one array has any elements common with another array, supportingnullelements.- Since:
- 6.6
-
collectionLiteral
Creates a basic collection literal with thearrayconstructor function.- Since:
- 6.4
-
collectionLength
@Incubating JpaExpression<Integer> collectionLength(Expression<? extends Collection<?>> collectionExpression) Determines the length of a basic collection.- Since:
- 6.4
-
collectionPosition
@Incubating <E> JpaExpression<Integer> collectionPosition(Expression<? extends Collection<? extends E>> collectionExpression, E element) Determines the 1-based position of an element in a basic collection.- Since:
- 6.4
-
collectionPosition
@Incubating <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.- Since:
- 6.4
-
collectionPositions
@Incubating <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.- Since:
- 6.4
-
collectionPositions
@Incubating <T> JpaExpression<int[]> collectionPositions(Expression<? extends Collection<? super T>> collectionExpression, T element) Determines all 1-based positions of an element in a basic collection.- Since:
- 6.4
-
collectionPositionsList
@Incubating <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.- Since:
- 6.4
-
collectionPositionsList
@Incubating <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.- Since:
- 6.4
-
collectionConcat
@Incubating <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.- Since:
- 6.4
-
collectionConcat
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionConcat(Expression<C> collectionExpression1, Collection<? extends E> collection2) Concatenates basic collections with each other in order.- Since:
- 6.4
-
collectionConcat
@Incubating <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.- Since:
- 6.4
-
collectionAppend
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionAppend(Expression<C> collectionExpression, Expression<? extends E> elementExpression) Appends element to basic collection.- Since:
- 6.4
-
collectionAppend
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionAppend(Expression<C> collectionExpression, E element) Appends element to basic collection.- Since:
- 6.4
-
collectionPrepend
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionPrepend(Expression<? extends E> elementExpression, Expression<C> collectionExpression) Prepends element to basic collection.- Since:
- 6.4
-
collectionPrepend
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionPrepend(E element, Expression<C> collectionExpression) Prepends element to basic collection.- Since:
- 6.4
-
collectionGet
@Incubating <E> JpaExpression<E> collectionGet(Expression<? extends Collection<E>> collectionExpression, Expression<Integer> indexExpression) Accesses the element of the basic collection by 1-based index.- Since:
- 6.4
-
collectionGet
@Incubating <E> JpaExpression<E> collectionGet(Expression<? extends Collection<E>> collectionExpression, Integer index) Accesses the element of the basic collection by 1-based index.- Since:
- 6.4
-
collectionSet
@Incubating <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.- Since:
- 6.4
-
collectionSet
@Incubating <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.- Since:
- 6.4
-
collectionSet
@Incubating <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.- Since:
- 6.4
-
collectionSet
@Incubating <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.- Since:
- 6.4
-
collectionRemove
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionRemove(Expression<C> collectionExpression, Expression<? extends E> elementExpression) Creates basic collection copy with given element removed.- Since:
- 6.4
-
collectionRemove
@Incubating <E,C extends Collection<? super E>> JpaExpression<C> collectionRemove(Expression<C> collectionExpression, E element) Creates basic collection copy with given element removed.- Since:
- 6.4
-
collectionRemoveIndex
@Incubating <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.- Since:
- 6.4
-
collectionRemoveIndex
@Incubating <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.- Since:
- 6.4
-
collectionSlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
collectionSlice
@Incubating <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. Both indexes are inclusive.- Since:
- 6.4
-
collectionReplace
@Incubating <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.- Since:
- 6.4
-
collectionReplace
@Incubating <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.- Since:
- 6.4
-
collectionReplace
@Incubating <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.- Since:
- 6.4
-
collectionReplace
@Incubating <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.- Since:
- 6.4
-
collectionTrim
@Incubating <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.- Since:
- 6.4
-
collectionTrim
@Incubating <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.- Since:
- 6.4
-
collectionFill
@Incubating <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.- Since:
- 6.4
-
collectionFill
@Incubating <T> JpaExpression<Collection<T>> collectionFill(Expression<T> elementExpression, Integer elementCount) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionFill
@Incubating <T> JpaExpression<Collection<T>> collectionFill(T element, Expression<Integer> elementCountExpression) Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionFill
Creates basic collection with the same element N times, as specified by the arguments.- Since:
- 6.4
-
collectionToString
@Incubating <T> JpaExpression<String> collectionToString(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.- Since:
- 6.4
-
collectionToString
@Incubating <T> JpaExpression<String> collectionToString(Expression<? extends Collection<?>> collectionExpression, String separator) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.- Since:
- 6.4
-
collectionContains
@Incubating <E> JpaPredicate collectionContains(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContains
@Incubating <E> JpaPredicate collectionContains(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContains
@Incubating <E> JpaPredicate collectionContains(Collection<E> collection, Expression<E> elementExpression) Whether a basic collection contains an element.- Since:
- 6.4
-
collectionContainsNullable
@Incubating <E> JpaPredicate collectionContainsNullable(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionContainsNullable
@Incubating <E> JpaPredicate collectionContainsNullable(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionContainsNullable
@Incubating <E> JpaPredicate collectionContainsNullable(Collection<E> collection, Expression<E> elementExpression) Whether a basic collection contains a nullable element.- Since:
- 6.4
-
collectionContainsAll
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAll(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Expression, Expression)Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionContainsAll
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAll(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Expression, Collection)Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionContainsAll
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAll(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludes(Collection, Expression)Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAllNullable(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Expression, Expression)Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAllNullable(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Expression, Collection)Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionContainsAllNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionContainsAllNullable(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIncludesNullable(Collection, Expression)Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionIncludes
@Incubating <E> JpaPredicate collectionIncludes(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludes
@Incubating <E> JpaPredicate collectionIncludes(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludes
@Incubating <E> JpaPredicate collectionIncludes(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.- Since:
- 6.4
-
collectionIncludesNullable
@Incubating <E> JpaPredicate collectionIncludesNullable(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.- Since:
- 6.4
-
collectionIncludesNullable
@Incubating <E> JpaPredicate collectionIncludesNullable(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionIncludesNullable
@Incubating <E> JpaPredicate collectionIncludesNullable(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection with nullable elements.- Since:
- 6.4
-
collectionOverlaps
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlaps(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Expression, Expression)Whether one basic collection has any elements common with another basic collection.- Since:
- 6.4
-
collectionOverlaps
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlaps(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Expression, Collection)Whether one basic collection has any elements common with another basic collection.- Since:
- 6.4
-
collectionOverlaps
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlaps(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersects(Collection, Expression)Whether one basic collection has any elements common with another basic collection.- Since:
- 6.4
-
collectionOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlapsNullable(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Expression, Expression)Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.4
-
collectionOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlapsNullable(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Expression, Collection)Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.4
-
collectionOverlapsNullable
@Incubating @Deprecated(forRemoval=true) default <E> JpaPredicate collectionOverlapsNullable(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withcollectionIntersectsNullable(Collection, Expression)Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.4
-
collectionIntersects
@Incubating <E> JpaPredicate collectionIntersects(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersects
@Incubating <E> JpaPredicate collectionIntersects(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersects
@Incubating <E> JpaPredicate collectionIntersects(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.- Since:
- 6.6
-
collectionIntersectsNullable
@Incubating <E> JpaPredicate collectionIntersectsNullable(Expression<? extends Collection<E>> collectionExpression1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
collectionIntersectsNullable
@Incubating <E> JpaPredicate collectionIntersectsNullable(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
collectionIntersectsNullable
@Incubating <E> JpaPredicate collectionIntersectsNullable(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnullelements.- Since:
- 6.6
-
arrayIncludes(Expression, Expression)