Package org.hibernate.query.criteria
Interface HibernateCriteriaBuilder
- All Superinterfaces:
CriteriaBuilder
- All Known Subinterfaces:
GeolatteSpatialCriteriaBuilder
,JTSSpatialCriteriaBuilder
,NodeBuilder
,SpatialCriteriaBuilder<T>
- All Known Implementing Classes:
CriteriaDefinition
,GeolatteSpatialCriteriaBuilderImpl
,HibernateCriteriaBuilderDelegate
,JTSSpatialCriteriaBuilderImpl
,SpatialCriteriaBuilderImpl
,SqmCriteriaNodeBuilder
A JPA
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
insert
statements, 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 thefrom
clause 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()
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder
CriteriaBuilder.Case<R extends Object>, CriteriaBuilder.Coalesce<T extends Object>, CriteriaBuilder.In<T extends Object>, CriteriaBuilder.SimpleCase<C extends Object,
R extends Object>, CriteriaBuilder.Trimspec -
Method Summary
Modifier and TypeMethodDescription<N extends Number>
JpaExpression<N>abs
(Expression<N> x) 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>
and
(Expression<Boolean> x, Expression<Boolean> y) <Y> JpaExpression<Y>
<Y> JpaCompoundSelection<Y>
<Y> JpaCompoundSelection<Y>
array
(Class<Y> resultClass, 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_agg
ordered 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> JpaPredicate
arrayContains
(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains an element.<T> JpaPredicate
arrayContains
(Expression<T[]> arrayExpression, T element) Whether an array contains an element.<T> JpaPredicate
arrayContains
(T[] array, Expression<T> elementExpression) Whether an array contains an element.default <T> JpaPredicate
arrayContainsAll
(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.default <T> JpaPredicate
arrayContainsAll
(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludes(Expression, Object[])
default <T> JpaPredicate
arrayContainsAll
(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludes(Object[], Expression)
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)
default <T> JpaPredicate
arrayContainsAllNullable
(Expression<T[]> arrayExpression, T[] subArray) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludesNullable(Expression, Object[])
default <T> JpaPredicate
arrayContainsAllNullable
(T[] array, Expression<T[]> subArrayExpression) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIncludesNullable(Object[], Expression)
<T> JpaPredicate
arrayContainsNullable
(Expression<T[]> arrayExpression, Expression<T> elementExpression) Whether an array contains a nullable element.<T> JpaPredicate
arrayContainsNullable
(Expression<T[]> arrayExpression, T element) Whether an array contains a nullable element.<T> JpaPredicate
arrayContainsNullable
(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> JpaPredicate
arrayIncludes
(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array.<T> JpaPredicate
arrayIncludes
(Expression<T[]> arrayExpression, T[] subArray) Whether an array is a subset of another array.<T> JpaPredicate
arrayIncludes
(T[] array, Expression<T[]> subArrayExpression) Whether an array is a subset of another array.<T> JpaPredicate
arrayIncludesNullable
(Expression<T[]> arrayExpression, Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.<T> JpaPredicate
arrayIncludesNullable
(Expression<T[]> arrayExpression, T[] subArray) Whether an array is a subset of another array with nullable elements.<T> JpaPredicate
arrayIncludesNullable
(T[] array, Expression<T[]> subArrayExpression) Whether an array is a subset of another array with nullable elements.<T> JpaPredicate
arrayIntersects
(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.<T> JpaPredicate
arrayIntersects
(Expression<T[]> arrayExpression1, T[] array2) Whether one array has any elements common with another array.<T> JpaPredicate
arrayIntersects
(T[] array1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array.<T> JpaPredicate
arrayIntersectsNullable
(Expression<T[]> arrayExpression1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnull
elements.<T> JpaPredicate
arrayIntersectsNullable
(Expression<T[]> arrayExpression1, T[] array2) Whether one array has any elements common with another array, supportingnull
elements.<T> JpaPredicate
arrayIntersectsNullable
(T[] array1, Expression<T[]> arrayExpression2) Whether one array has any elements common with another array, supportingnull
elements.<T> JpaExpression<Integer>
arrayLength
(Expression<T[]> arrayExpression) Determines the length of an array.<T> JpaExpression<T[]>
arrayLiteral
(T... elements) Creates an array literal with thearray
constructor function.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)
default <T> JpaPredicate
arrayOverlaps
(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersects(Expression, Object[])
default <T> JpaPredicate
arrayOverlaps
(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersects(Object[], Expression)
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)
default <T> JpaPredicate
arrayOverlapsNullable
(Expression<T[]> arrayExpression1, T[] array2) Deprecated, for removal: This API element is subject to removal in a future version.Replaced witharrayIntersectsNullable(Expression, Object[])
default <T> JpaPredicate
arrayOverlapsNullable
(T[] array1, Expression<T[]> arrayExpression2) Deprecated, for removal: This API element is subject to removal in a future version.<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) 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 ofy
overx
.atan2
(Expression<? extends Number> y, Number x) atan2
(Number y, Expression<? extends Number> x) <N extends Number>
JpaExpression<Double>avg
(Expression<N> argument) <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 anavg
aggregate 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) <Y extends Comparable<? super Y>>
JpaPredicatebetween
(Expression<? extends Y> value, Y lower, Y upper) <X,
T> JpaExpression<X> cast
(JpaExpression<T> expression, Class<X> castTargetJavaType) <X,
T> JpaExpression<X> cast
(JpaExpression<T> expression, JpaCastTarget<X> castTarget) <X> JpaCastTarget<X>
castTarget
(Class<X> castTargetJavaType) <X> JpaCastTarget<X>
castTarget
(Class<X> castTargetJavaType, int precision, int scale) <X> JpaCastTarget<X>
castTarget
(Class<X> castTargetJavaType, long length) <N extends Number>
JpaExpression<N>ceiling
(Expression<N> x) Create an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument.<T> JpaCoalesce<T>
coalesce()
<Y> JpaCoalesce<Y>
coalesce
(Expression<? extends Y> x, Expression<? extends Y> y) <Y> JpaCoalesce<Y>
coalesce
(Expression<? extends Y> x, Y y) 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> JpaPredicate
collectionContains
(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains an element.<E> JpaPredicate
collectionContains
(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains an element.<E> JpaPredicate
collectionContains
(Collection<E> collection, Expression<E> elementExpression) Whether a basic collection contains an element.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)
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)
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)
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)
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)
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)
<E> JpaPredicate
collectionContainsNullable
(Expression<? extends Collection<E>> collectionExpression, E element) Whether a basic collection contains a nullable element.<E> JpaPredicate
collectionContainsNullable
(Expression<? extends Collection<E>> collectionExpression, Expression<? extends E> elementExpression) Whether a basic collection contains a nullable element.<E> JpaPredicate
collectionContainsNullable
(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> JpaPredicate
collectionIncludes
(Expression<? extends Collection<E>> collectionExpression, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.<E> JpaPredicate
collectionIncludes
(Expression<? extends Collection<E>> collectionExpression, Collection<? extends E> subCollection) Whether a basic collection is a subset of another basic collection.<E> JpaPredicate
collectionIncludes
(Collection<E> collection, Expression<? extends Collection<? extends E>> subCollectionExpression) Whether a basic collection is a subset of another basic collection.<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.<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.<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.<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.<E> JpaPredicate
collectionIntersects
(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection.<E> JpaPredicate
collectionIntersects
(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection.<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, supportingnull
elements.<E> JpaPredicate
collectionIntersectsNullable
(Expression<? extends Collection<E>> collectionExpression1, Collection<? extends E> collection2) Whether one basic collection has any elements common with another basic collection, supportingnull
elements.<E> JpaPredicate
collectionIntersectsNullable
(Collection<E> collection1, Expression<? extends Collection<? extends E>> collectionExpression2) Whether one basic collection has any elements common with another basic collection, supportingnull
elements.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 thearray
constructor function.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)
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)
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)
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)
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)
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)
<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.collectionToString
(Expression<? extends Collection<?>> collectionExpression, Expression<String> separatorExpression) Concatenates the non-null basic collection elements with a separator, as specified by the arguments.collectionToString
(Expression<? extends Collection<?>> collectionExpression, 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) concat
(Expression<String> x, String y) concat
(String x, Expression<String> y) concat
(List<Expression<String>> expressions) <Y> JpaCompoundSelection<Y>
<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) count
(Expression<?> argument, JpaPredicate filter) count
(Expression<?> argument, JpaPredicate filter, JpaWindow window) Create acount
aggregate function expression.count
(Expression<?> argument, JpaWindow window) countDistinct
(Expression<?> x) <T> JpaCriteriaDelete<T>
createCriteriaDelete
(Class<T> targetEntity) <T> JpaCriteriaInsertSelect<T>
createCriteriaInsertSelect
(Class<T> targetEntity) <T> JpaCriteriaInsertValues<T>
createCriteriaInsertValues
(Class<T> targetEntity) <T> JpaCriteriaUpdate<T>
createCriteriaUpdate
(Class<T> targetEntity) <T> JpaCriteriaQuery<T>
createQuery
(Class<T> resultClass) <T> JpaCriteriaQuery<T>
createQuery
(String hql, Class<T> resultClass) Transform the given HQLselect
query to an equivalent criteria query.Create an emptyJpaWindow
to use with window and aggregate functions.Create acume_dist
window function expression.day
(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.DAY
of 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_rank
window function expression.desc
(Expression<?> x) 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) <N extends Number>
JpaExpression<N>diff
(Expression<? extends N> x, N y) <N extends Number>
JpaExpression<N>diff
(N x, Expression<? extends N> y) 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 aDuration
to 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) equal
(Expression<?> x, Object y) <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) <T> JpaCriteriaQuery<T>
except
(CriteriaQuery<T> left, CriteriaQuery<?> right) <T> CriteriaSelect<T>
except
(CriteriaSelect<T> left, CriteriaSelect<?> right) default <T> JpaSubQuery<T>
default <T> JpaCriteriaQuery<T>
exceptAll
(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaCriteriaQuery<T>
exceptAll
(CriteriaQuery<T> left, CriteriaQuery<?> right) <T> CriteriaSelect<T>
exceptAll
(CriteriaSelect<T> left, CriteriaSelect<?> right) default <T> JpaSubQuery<T>
exp
(Expression<? extends Number> x) Create an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument.<N,
T extends Temporal>
JpaExpression<N>extract
(TemporalField<N, T> field, Expression<T> temporal) <T> JpaExpression<T>
firstValue
(Expression<T> argument, JpaWindow window) Create afirst_value
window 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_FOLLOWING
to use withJpaWindow
s.frameBetweenPreceding
(int offset) frameBetweenPreceding
(Expression<?> offset) Create window frame of typeFrameKind.OFFSET_PRECEDING
to use withJpaWindow
s.Create a window frame of typeFrameKind.CURRENT_ROW
to use withJpaWindow
s.Create a window frame of typeFrameKind.UNBOUNDED_FOLLOWING
to use withJpaWindow
s.Create a window frame of typeFrameKind.UNBOUNDED_PRECEDING
to use withJpaWindow
s.<T> JpaFunction<T>
function
(String name, Class<T> type, Expression<?>... args) <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) ge
(Expression<? extends Number> x, Number y) <E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, E stop) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, E stop, E step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, E stop, Expression<E> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, Expression<E> stop) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, Expression<E> stop, E step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(E start, Expression<E> stop, Expression<E> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, E stop) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, E stop, E step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, E stop, Expression<E> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, Expression<E> stop) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, Expression<E> stop, E step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Number>
JpaSetReturningFunction<E>generateSeries
(Expression<E> start, Expression<E> stop, Expression<E> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(E start, E stop, Expression<? extends TemporalAmount> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(E start, E stop, TemporalAmount step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(E start, Expression<E> stop, Expression<? extends TemporalAmount> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(E start, Expression<E> stop, TemporalAmount step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(Expression<E> start, E stop, Expression<? extends TemporalAmount> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(Expression<E> start, E stop, TemporalAmount step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(Expression<E> start, Expression<E> stop, Expression<? extends TemporalAmount> step) Creates agenerate_series
function expression to generate a set of values as rows.<E extends Temporal>
JpaSetReturningFunction<E>generateTimeSeries
(Expression<E> start, Expression<E> stop, TemporalAmount step) Creates agenerate_series
function expression to generate a set of values as rows.<Y extends Comparable<? super Y>>
JpaPredicategreaterThan
(Expression<? extends Y> x, Expression<? extends Y> y) <Y extends Comparable<? super Y>>
JpaPredicategreaterThan
(Expression<? extends Y> x, Y y) <Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo
(Expression<? extends Y> x, Expression<? extends Y> y) <Y extends Comparable<? super Y>>
JpaPredicategreaterThanOrEqualTo
(Expression<? extends Y> x, Y y) <X extends Comparable<? super X>>
JpaExpression<X>greatest
(Expression<X> argument) gt
(Expression<? extends Number> x, Expression<? extends Number> y) gt
(Expression<? extends Number> x, Number y) hour
(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.HOUR
of 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) <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) <T> JpaCriteriaQuery<T>
intersect
(CriteriaQuery<? super T> left, CriteriaQuery<? super T> right) <T> CriteriaSelect<T>
intersect
(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) default <T> JpaSubQuery<T>
default <T> JpaCriteriaQuery<T>
intersectAll
(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaCriteriaQuery<T>
intersectAll
(CriteriaQuery<? super T> left, CriteriaQuery<? super T> right) <T> CriteriaSelect<T>
intersectAll
(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) default <T> JpaSubQuery<T>
intersectAll
(Subquery<? extends T> query1, Subquery<?>... queries) <C extends Collection<?>>
JpaPredicateisEmpty
(Expression<C> collection) isFalse
(Expression<Boolean> x) <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) <E,
C extends Collection<E>>
JpaPredicateisMember
(Expression<E> elem, Expression<C> collection) <C extends Collection<?>>
JpaPredicateisNotEmpty
(Expression<C> collection) <E,
C extends Collection<E>>
JpaPredicateisNotMember
(E elem, Expression<C> collection) <E,
C extends Collection<E>>
JpaPredicateisNotMember
(Expression<E> elem, Expression<C> collection) isNotNull
(Expression<?> x) isNull
(Expression<?> x) isTrue
(Expression<Boolean> x) jsonArray
(Expression<?>... values) Create a JSON array from the array of values.jsonArrayAgg
(Expression<?> value) Aggregates the given value into a JSON array.jsonArrayAgg
(Expression<?> value, Predicate filter) Aggregates the given value into a JSON array.jsonArrayAgg
(Expression<?> value, Predicate filter, JpaOrder... orderBy) Aggregates the given value into a JSON array.jsonArrayAgg
(Expression<?> value, JpaOrder... orderBy) Aggregates the given value into a JSON array.jsonArrayAggWithNulls
(Expression<?> value) Aggregates the given value into a JSON array, retainingnull
values in the JSON array.jsonArrayAggWithNulls
(Expression<?> value, Predicate filter) Aggregates the given value into a JSON array, retainingnull
values in the JSON array.jsonArrayAggWithNulls
(Expression<?> value, Predicate filter, JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnull
values in the JSON array.jsonArrayAggWithNulls
(Expression<?> value, JpaOrder... orderBy) Aggregates the given value into a JSON array, retainingnull
values in the JSON array.jsonArrayWithNulls
(Expression<?>... values) Create a JSON object from the given array of values, retainingnull
values in the JSON array.jsonExists
(Expression<?> jsonDocument, Expression<String> jsonPath) Checks if a JSON document contains a node for the given JSON path.jsonExists
(Expression<?> jsonDocument, String jsonPath) Checks if a JSON document contains a node for the given JSON path.jsonInsert
(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Inserts a value by JSON path within a JSON document.jsonInsert
(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Inserts a value by JSON path within a JSON document.jsonInsert
(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Inserts a value by JSON path within a JSON document.jsonInsert
(Expression<?> jsonDocument, String jsonPath, Object value) Inserts a value by JSON path within a JSON document.jsonMergepatch
(Expression<?> document, Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.jsonMergepatch
(Expression<?> document, String patch) Applies the patch JSON document onto the other JSON document and returns that.jsonMergepatch
(String document, Expression<?> patch) Applies the patch JSON document onto the other JSON document and returns that.jsonObject
(Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values.jsonObjectAgg
(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object.jsonObjectAgg
(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithNulls
(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnull
values in the JSON object.jsonObjectAggWithNulls
(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnull
values in the JSON object.jsonObjectAggWithUniqueKeys
(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithUniqueKeys
(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object.jsonObjectAggWithUniqueKeysAndNulls
(Expression<?> key, Expression<?> value) Aggregates the given value under the given key into a JSON object, retainingnull
values in the JSON object.jsonObjectAggWithUniqueKeysAndNulls
(Expression<?> key, Expression<?> value, Predicate filter) Aggregates the given value under the given key into a JSON object, retainingnull
values in the JSON object.jsonObjectWithNulls
(Map<?, ? extends Expression<?>> keyValues) Create a JSON object from the given map of key values, retainingnull
values in the JSON.jsonQuery
(Expression<?> jsonDocument, Expression<String> jsonPath) Queries values by JSON path from a JSON document.jsonQuery
(Expression<?> jsonDocument, String jsonPath) jsonRemove
(Expression<?> jsonDocument, Expression<String> jsonPath) Removes a value by JSON path within a JSON document.jsonRemove
(Expression<?> jsonDocument, String jsonPath) Removes a value by JSON path within a JSON document.jsonReplace
(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Replaces a value by JSON path within a JSON document.jsonReplace
(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Replaces a value by JSON path within a JSON document.jsonReplace
(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Replaces a value by JSON path within a JSON document.jsonReplace
(Expression<?> jsonDocument, String jsonPath, Object value) Replaces a value by JSON path within a JSON document.jsonSet
(Expression<?> jsonDocument, Expression<String> jsonPath, Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet
(Expression<?> jsonDocument, Expression<String> jsonPath, Object value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet
(Expression<?> jsonDocument, String jsonPath, Expression<?> value) Inserts/Replaces a value by JSON path within a JSON document.jsonSet
(Expression<?> jsonDocument, String jsonPath, Object value) Inserts/Replaces a value by JSON path within a JSON document.jsonTable
(Expression<?> jsonDocument) Creates ajson_table
function expression to generate rows from JSON array elements.jsonTable
(Expression<?> jsonDocument, Expression<String> jsonPath) Creates ajson_table
function expression to generate rows from JSON array elements.jsonTable
(Expression<?> jsonDocument, String jsonPath) Creates ajson_table
function expression to generate rows from JSON array elements.jsonValue
(Expression<?> jsonDocument, Expression<String> jsonPath) <T> JpaJsonValueExpression<T>
jsonValue
(Expression<?> jsonDocument, Expression<String> jsonPath, Class<T> returningType) Extracts a value by JSON path from a JSON document.jsonValue
(Expression<?> jsonDocument, String jsonPath) <T> JpaJsonValueExpression<T>
jsonValue
(Expression<?> jsonDocument, String jsonPath, Class<T> returningType) Extracts a value by JSON path from a JSON document.<K,
M extends Map<K, ?>>
JpaExpression<Set<K>>keys
(M map) <T> JpaExpression<T>
lastValue
(Expression<T> argument, JpaWindow window) Create alast_value
window function expression.le
(Expression<? extends Number> x, Expression<? extends Number> y) le
(Expression<? extends Number> x, Number y) <X extends Comparable<? super X>>
JpaExpression<X>least
(Expression<X> argument) left
(Expression<String> x, int length) left
(Expression<String> x, Expression<Integer> length) Extract thelength
leftmost characters of a string.length
(Expression<String> x) <Y extends Comparable<? super Y>>
JpaPredicatelessThan
(Expression<? extends Y> x, Expression<? extends Y> y) <Y extends Comparable<? super Y>>
JpaPredicatelessThan
(Expression<? extends Y> x, Y y) <Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo
(Expression<? extends Y> x, Expression<? extends Y> y) <Y extends Comparable<? super Y>>
JpaPredicatelessThanOrEqualTo
(Expression<? extends Y> x, Y y) like
(Expression<String> x, Expression<String> pattern) like
(Expression<String> x, Expression<String> pattern, char escapeChar) like
(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) like
(Expression<String> x, String pattern) like
(Expression<String> x, String pattern, char escapeChar) like
(Expression<String> x, String pattern, Expression<Character> escapeChar) 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 alistagg
ordered set-aggregate function expression.listagg
(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, String separator) listagg
(JpaOrder order, JpaWindow window, Expression<String> argument, Expression<String> separator) <T> JpaParameterExpression<List<T>>
listParameter
(Class<T> paramClass) Create a multivalued parameter accepting multiple arguments packaged together as aList
.<T> JpaParameterExpression<List<T>>
listParameter
(Class<T> paramClass, String name) Create a multivalued parameter accepting multiple arguments packaged together as aList
.<T> JpaExpression<T>
literal
(T value) <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) locate
(Expression<String> x, Expression<String> pattern, Expression<Integer> from) locate
(Expression<String> x, String pattern) locate
(Expression<String> x, String pattern, int from) log
(Expression<? extends Number> b, Expression<? extends Number> x) Create an expression that returns the logarithm ofx
to 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) lt
(Expression<? extends Number> x, Expression<? extends Number> y) lt
(Expression<? extends Number> x, Number y) <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) <N extends Number>
JpaExpression<N>min
(Expression<N> argument) minute
(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MINUTE
of a date, time, or datetime expression.mod
(Expression<Integer> x, Expression<Integer> y) mod
(Expression<Integer> x, Integer y) mod
(Integer x, Expression<Integer> y) <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 amode
ordered set-aggregate function expression.<T> JpaExpression<T>
mode
(JpaWindow window, Expression<T> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) month
(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.MONTH
of a date, time, or datetime expression.<T> JpaExpression<T>
named
(Expression<T> expression, String name) Creates a named expression.<N extends Number>
JpaExpression<N>neg
(Expression<N> x) not
(Expression<Boolean> restriction) notDistinctFrom
(Expression<?> x, Expression<?> y) notDistinctFrom
(Expression<?> x, Object y) notEqual
(Expression<?> x, Expression<?> y) notEqual
(Expression<?> x, Object y) 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) notLike
(Expression<String> x, Expression<String> pattern, char escapeChar) notLike
(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) notLike
(Expression<String> x, String pattern) notLike
(Expression<String> x, String pattern, char escapeChar) notLike
(Expression<String> x, String pattern, Expression<Character> escapeChar) <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_value
window function expression.<Y> JpaExpression<Y>
nullif
(Expression<Y> x, Expression<?> y) <Y> JpaExpression<Y>
nullif
(Expression<Y> x, Y y) <T> JpaExpression<T>
nullLiteral
(Class<T> resultClass) or
(Expression<Boolean> x, Expression<Boolean> y) 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 thestring
expression with thereplacement
expression, starting from indexstart
and substituting a number of characters corresponding to the length of thereplacement
expression or thelength
parameter 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 thepadChar
character 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>
<T> JpaParameterExpression<T>
<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_cont
ordered 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_disc
ordered 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_rank
ordered set-aggregate function expression.percentRank
(JpaOrder order, JpaWindow window, Expression<?>... arguments) percentRank
(JpaWindow window) Create apercent_rank
window 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) <N extends Number>
JpaExpression<N>prod
(Expression<? extends N> x, N y) <N extends Number>
JpaExpression<N>prod
(N x, Expression<? extends N> y) quot
(Expression<? extends Number> x, Expression<? extends Number> y) quot
(Expression<? extends Number> x, Number y) quot
(Number x, Expression<? extends Number> y) 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 arank
ordered set-aggregate function expression.rank
(JpaOrder order, JpaWindow window, Expression<?>... arguments) Create arank
window 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 ofpattern
within 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 thelength
rightmost 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_number
window 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.SECOND
of a date, time, or datetime expression.<R> JpaSearchedCase<R>
<C,
R> JpaSimpleCase<C, R> selectCase
(Expression<? extends C> expression) <E> JpaSetReturningFunction<E>
setReturningFunction
(String name, Expression<?>... args) Create a new set-returning function expression.sign
(Expression<? extends Number> x) Create an expression that returns the sign of its argument, that is,1
if its argument is positive,-1
if its argument is negative, or0
if 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) <C extends Collection<?>>
JpaExpression<Integer>size
(Expression<C> collection) <Y> JpaExpression<Y>
sort
(JpaExpression<?> sortExpression) sort
(JpaExpression<?> sortExpression, SortDirection sortOrder) sort
(JpaExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence) sort
(JpaExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence, boolean ignoreCase) default JpaOrder
sort
(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Deprecated.Use sort(JpaExpression, SortDirection, Nulls) insteaddefault JpaOrder
sort
(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence, boolean ignoreCase) Deprecated.<T> JpaExpression<T>
sql
(String pattern, Class<T> type, Expression<?>... arguments) Embed nativepattern
that will be unquoted and embedded in the generated SQL.sqrt
(Expression<? extends Number> x) substring
(Expression<String> x, int from) substring
(Expression<String> x, int from, int len) substring
(Expression<String> x, Expression<Integer> from) substring
(Expression<String> x, Expression<Integer> from, Expression<Integer> len) <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) <N extends Number>
JpaExpression<N>sum
(Expression<? extends N> x, N y) <N extends Number>
JpaExpression<N>sum
(Expression<N> argument) <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 asum
aggregate 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) sumAsDouble
(Expression<Float> argument) sumAsLong
(Expression<Integer> argument) 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) toBigInteger
(Expression<? extends Number> number) toDouble
(Expression<? extends Number> number) toFloat
(Expression<? extends Number> number) toInteger
(Expression<? extends Number> number) toLong
(Expression<? extends Number> number) toString
(Expression<Character> character) <X,
T, E extends T>
JpaCollectionJoin<X,E> treat
(CollectionJoin<X, T> join, Class<E> type) <X,
T, V extends T>
JpaJoin<X,V> <X,
T, E extends T>
JpaListJoin<X,E> <X,
K, T, V extends T>
JpaMapJoin<X,K, V> <X,
T extends X>
JpaPath<T><X,
T extends X>
JpaRoot<T><X,
T, E extends T>
JpaSetJoin<X,E> trim
(char t, Expression<String> x) trim
(CriteriaBuilder.Trimspec ts, char t, Expression<String> x) trim
(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) trim
(CriteriaBuilder.Trimspec ts, Expression<String> x) trim
(Expression<Character> t, Expression<String> x) trim
(Expression<String> x) <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
.<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) <T> JpaCriteriaQuery<T>
union
(CriteriaQuery<? extends T> left, CriteriaQuery<? extends T> right) <T> CriteriaSelect<T>
union
(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) default <T> JpaSubQuery<T>
default <T> JpaCriteriaQuery<T>
unionAll
(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries) <T> JpaCriteriaQuery<T>
unionAll
(CriteriaQuery<? extends T> left, CriteriaQuery<? extends T> right) <T> CriteriaSelect<T>
unionAll
(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) default <T> JpaSubQuery<T>
unionAll
(JpaSubQuery<? extends T> query1, JpaSubQuery<? extends T> query2) <E> JpaSetReturningFunction<E>
unnestArray
(Expression<E[]> array) Creates an unnest function expression to turn an array into a set of rows.<E> JpaSetReturningFunction<E>
unnestCollection
(Expression<? extends Collection<E>> collection) Creates an unnest function expression to turn an array into a set of rows.<T extends HibernateCriteriaBuilder>
Tupper
(Expression<String> x) <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) <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) xmlagg
(JpaOrder order, Expression<?> argument) xmlagg
(JpaOrder order, JpaPredicate filter, Expression<?> argument) xmlagg
(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?> argument) Create axmlagg
ordered set-aggregate function expression.xmlagg
(JpaOrder order, JpaWindow window, Expression<?> argument) xmlcomment
(String comment) Creates an XML comment with the given argument as content.xmlconcat
(Expression<?>... elements) Concatenates the given XML element expressions.xmlconcat
(List<? extends Expression<?>> elements) Concatenates the given XML element expressions.xmlelement
(String elementName) Creates an XML element with the given element name.xmlexists
(Expression<String> query, Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.xmlexists
(String query, Expression<?> xmlDocument) Checks if the given XPath or XQuery query exists in the given XML document.xmlforest
(Expression<?>... elements) Creates an XML forest from the given XML element expressions.xmlforest
(List<? extends Expression<?>> elements) Creates an XML forest from the given XML element expressions.Creates an XML processing with the given name.xmlpi
(String elementName, Expression<String> content) Creates an XML processing with the given name and content.xmlquery
(Expression<String> query, Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.xmlquery
(String query, Expression<?> xmlDocument) Queries the given XML document with the given XPath or XQuery query.xmlTable
(Expression<String> xpath, Expression<?> xmlDocument) Creates axmltable
function expression to generate rows from XML elements.xmlTable
(String xpath, Expression<?> xmlDocument) Creates axmltable
function expression to generate rows from XML elements.year
(Expression<? extends TemporalAccessor> datetime) Extracts theTemporalUnit.YEAR
of a date, time, or datetime expression.Methods inherited from interface jakarta.persistence.criteria.CriteriaBuilder
asc, desc
-
Method Details
-
cast
-
cast
-
castTarget
-
castTarget
-
castTarget
-
wrap
-
wrap
-
unwrap
-
createQuery
JpaCriteriaQuery<Object> createQuery()- Specified by:
createQuery
in interfaceCriteriaBuilder
-
createQuery
- Specified by:
createQuery
in interfaceCriteriaBuilder
-
createTupleQuery
JpaCriteriaQuery<Tuple> createTupleQuery()- Specified by:
createTupleQuery
in interfaceCriteriaBuilder
-
createCriteriaUpdate
- Specified by:
createCriteriaUpdate
in interfaceCriteriaBuilder
-
createCriteriaDelete
- Specified by:
createCriteriaDelete
in interfaceCriteriaBuilder
-
createCriteriaInsertValues
-
createCriteriaInsertSelect
-
values
-
values
-
createQuery
Transform the given HQLselect
query to an equivalent criteria query.- Parameters:
hql
- The HQLselect
queryresultClass
- 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) -
union
- Specified by:
union
in interfaceCriteriaBuilder
-
union
-
union
-
union
-
unionAll
default <T> JpaSubQuery<T> unionAll(JpaSubQuery<? extends T> query1, JpaSubQuery<? extends T> query2) -
unionAll
- Specified by:
unionAll
in interfaceCriteriaBuilder
-
unionAll
-
intersect
- Specified by:
intersect
in interfaceCriteriaBuilder
-
intersectAll
- Specified by:
intersectAll
in interfaceCriteriaBuilder
-
intersect
-
intersectAll
-
intersectAll
-
intersect
-
intersect
-
except
- Specified by:
except
in interfaceCriteriaBuilder
-
exceptAll
- Specified by:
exceptAll
in interfaceCriteriaBuilder
-
except
-
exceptAll
-
exceptAll
-
except
-
except
-
sign
Create an expression that returns the sign of its argument, that is,1
if its argument is positive,-1
if its argument is negative, or0
if its argument is exactly zero.- Specified by:
sign
in 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:
ceiling
in 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:
floor
in 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:
exp
in interfaceCriteriaBuilder
- Parameters:
x
- expression- Returns:
- exponential
-
ln
Create an expression that returns the natural logarithm of its argument.- Specified by:
ln
in 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:
power
in 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:
power
in 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:
round
in 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:
localDate
in interfaceCriteriaBuilder
- Returns:
- expression for current date
-
localDateTime
JpaExpression<LocalDateTime> localDateTime()Create expression to return current local datetime.- Specified by:
localDateTime
in interfaceCriteriaBuilder
- Returns:
- expression for current timestamp
-
localTime
JpaExpression<LocalTime> localTime()Create expression to return current local time.- Specified by:
localTime
in interfaceCriteriaBuilder
- Returns:
- expression for current time
-
fk
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
treat
- Specified by:
treat
in interfaceCriteriaBuilder
-
construct
- Specified by:
construct
in interfaceCriteriaBuilder
-
construct
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments) -
tuple
- Specified by:
tuple
in interfaceCriteriaBuilder
-
tuple
- Specified by:
tuple
in interfaceCriteriaBuilder
-
array
- Specified by:
array
in interfaceCriteriaBuilder
-
array
- Specified by:
array
in interfaceCriteriaBuilder
-
array
-
array
-
avg
- Specified by:
avg
in interfaceCriteriaBuilder
-
sum
- Specified by:
sum
in interfaceCriteriaBuilder
-
sumAsLong
- Specified by:
sumAsLong
in interfaceCriteriaBuilder
-
sumAsDouble
- Specified by:
sumAsDouble
in interfaceCriteriaBuilder
-
max
- Specified by:
max
in interfaceCriteriaBuilder
-
min
- Specified by:
min
in interfaceCriteriaBuilder
-
greatest
- Specified by:
greatest
in interfaceCriteriaBuilder
-
least
- Specified by:
least
in interfaceCriteriaBuilder
-
count
- Specified by:
count
in interfaceCriteriaBuilder
-
countDistinct
- Specified by:
countDistinct
in interfaceCriteriaBuilder
-
count
JpaExpression<Long> count()Equivalent to HQLcount(*)
. -
neg
- Specified by:
neg
in interfaceCriteriaBuilder
-
abs
- Specified by:
abs
in interfaceCriteriaBuilder
-
sum
- Specified by:
sum
in interfaceCriteriaBuilder
-
sum
- Specified by:
sum
in interfaceCriteriaBuilder
-
sum
- Specified by:
sum
in interfaceCriteriaBuilder
-
prod
- Specified by:
prod
in interfaceCriteriaBuilder
-
prod
- Specified by:
prod
in interfaceCriteriaBuilder
-
prod
- Specified by:
prod
in interfaceCriteriaBuilder
-
diff
- Specified by:
diff
in interfaceCriteriaBuilder
-
diff
- Specified by:
diff
in interfaceCriteriaBuilder
-
diff
- Specified by:
diff
in interfaceCriteriaBuilder
-
quot
- Specified by:
quot
in interfaceCriteriaBuilder
-
quot
- Specified by:
quot
in interfaceCriteriaBuilder
-
quot
- Specified by:
quot
in interfaceCriteriaBuilder
-
mod
- Specified by:
mod
in interfaceCriteriaBuilder
-
mod
- Specified by:
mod
in interfaceCriteriaBuilder
-
mod
- Specified by:
mod
in interfaceCriteriaBuilder
-
sqrt
- Specified by:
sqrt
in interfaceCriteriaBuilder
-
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 aDuration
to 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
- Specified by:
toLong
in interfaceCriteriaBuilder
-
toInteger
- Specified by:
toInteger
in interfaceCriteriaBuilder
-
toFloat
- Specified by:
toFloat
in interfaceCriteriaBuilder
-
toDouble
- Specified by:
toDouble
in interfaceCriteriaBuilder
-
toBigDecimal
- Specified by:
toBigDecimal
in interfaceCriteriaBuilder
-
toBigInteger
- Specified by:
toBigInteger
in interfaceCriteriaBuilder
-
toString
- Specified by:
toString
in interfaceCriteriaBuilder
-
literal
- Specified by:
literal
in interfaceCriteriaBuilder
-
literals
-
literals
-
nullLiteral
- Specified by:
nullLiteral
in interfaceCriteriaBuilder
-
parameter
- Specified by:
parameter
in interfaceCriteriaBuilder
-
parameter
- Specified by:
parameter
in interfaceCriteriaBuilder
-
listParameter
Create a multivalued parameter accepting multiple arguments packaged together as aList
.- Type Parameters:
T
- the type of each argument to the parameter- Parameters:
paramClass
- the type of each argument to the parameter- Since:
- 7.0
-
listParameter
Create a multivalued parameter accepting multiple arguments packaged together as aList
.- Type Parameters:
T
- the type of each argument to the parameter- Parameters:
paramClass
- the type of each argument to the parametername
- the parameter name- Since:
- 7.0
-
concat
- Specified by:
concat
in interfaceCriteriaBuilder
-
concat
- Specified by:
concat
in interfaceCriteriaBuilder
-
concat
- Specified by:
concat
in interfaceCriteriaBuilder
-
concat
-
substring
- Specified by:
substring
in interfaceCriteriaBuilder
-
substring
- Specified by:
substring
in interfaceCriteriaBuilder
-
substring
JpaFunction<String> substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) - Specified by:
substring
in interfaceCriteriaBuilder
-
substring
- Specified by:
substring
in interfaceCriteriaBuilder
-
trim
- Specified by:
trim
in interfaceCriteriaBuilder
-
trim
- Specified by:
trim
in interfaceCriteriaBuilder
-
trim
- Specified by:
trim
in interfaceCriteriaBuilder
-
trim
JpaFunction<String> trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) - Specified by:
trim
in interfaceCriteriaBuilder
-
trim
- Specified by:
trim
in interfaceCriteriaBuilder
-
trim
- Specified by:
trim
in interfaceCriteriaBuilder
-
lower
- Specified by:
lower
in interfaceCriteriaBuilder
-
upper
- Specified by:
upper
in interfaceCriteriaBuilder
-
length
- Specified by:
length
in interfaceCriteriaBuilder
-
locate
- Specified by:
locate
in interfaceCriteriaBuilder
-
locate
- Specified by:
locate
in interfaceCriteriaBuilder
-
locate
JpaFunction<Integer> locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) - Specified by:
locate
in interfaceCriteriaBuilder
-
locate
- Specified by:
locate
in interfaceCriteriaBuilder
-
currentDate
JpaFunction<Date> currentDate()- Specified by:
currentDate
in interfaceCriteriaBuilder
-
currentTime
JpaFunction<Time> currentTime()- Specified by:
currentTime
in interfaceCriteriaBuilder
-
currentTimestamp
JpaFunction<Timestamp> currentTimestamp()- Specified by:
currentTimestamp
in interfaceCriteriaBuilder
-
currentInstant
-
arrayIncludes(Expression, Expression)