Package org.hibernate.query.criteria.spi
Class HibernateCriteriaBuilderDelegate
- java.lang.Object
-
- org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate
-
- All Implemented Interfaces:
CriteriaBuilder
,HibernateCriteriaBuilder
- Direct Known Subclasses:
CriteriaDefinition
,SpatialCriteriaBuilderImpl
public class HibernateCriteriaBuilderDelegate extends Object implements HibernateCriteriaBuilder
-
-
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
-
-
Constructor Summary
Constructors Constructor Description HibernateCriteriaBuilderDelegate(CriteriaBuilder criteriaBuilder)
HibernateCriteriaBuilderDelegate(HibernateCriteriaBuilder criteriaBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <N extends Number>
JpaExpression<N>abs(Expression<N> x)
JpaExpression<Double>
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>
all(Subquery<Y> subquery)
JpaPredicate
and(Expression<Boolean> x, Expression<Boolean> y)
JpaPredicate
and(Predicate... restrictions)
<Y> JpaExpression<Y>
any(Subquery<Y> subquery)
JpaCompoundSelection<Object[]>
array(Selection<?>... selections)
<Y> JpaCompoundSelection<Y>
array(Class<Y> resultClass, Selection<?>... selections)
<Y> JpaCompoundSelection<Y>
array(Class<Y> resultClass, List<? extends JpaSelection<?>> selections)
JpaCompoundSelection<Object[]>
array(List<? extends JpaSelection<?>> selections)
JpaOrder
asc(Expression<?> x)
JpaOrder
asc(Expression<?> x, boolean nullsFirst)
Create an ordering by the ascending value of the expression.JpaSearchOrder
asc(JpaCteCriteriaAttribute x)
Create a search ordering by the ascending value of the CTE attribute.JpaSearchOrder
asc(JpaCteCriteriaAttribute x, boolean nullsFirst)
Create a search ordering by the ascending value of the CTE attribute.JpaExpression<Double>
asin(Expression<? extends Number> x)
Create an expression that returns the inverse sine of its argument.JpaExpression<Double>
atan(Expression<? extends Number> x)
Create an expression that returns the inverse tangent of its argument.JpaExpression<Double>
atan2(Expression<? extends Number> y, Expression<? extends Number> x)
Create an expression that returns the inverse tangent ofy
overx
.JpaExpression<Double>
atan2(Expression<? extends Number> y, Number x)
JpaExpression<Double>
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)
<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)
JpaFunction<String>
collate(Expression<String> x, String collation)
JpaExpression<String>
concat(Expression<String> x, Expression<String> y)
JpaExpression<String>
concat(Expression<String> x, String y)
JpaExpression<String>
concat(String x, Expression<String> y)
JpaExpression<String>
concat(String x, String y)
JpaPredicate
conjunction()
<Y> JpaCompoundSelection<Y>
construct(Class<Y> resultClass, Selection<?>... selections)
<Y> JpaCompoundSelection<Y>
construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments)
JpaExpression<Double>
cos(Expression<? extends Number> x)
Create an expression that returns the cosine of its argument.JpaExpression<Double>
cosh(Expression<? extends Number> x)
Create an expression that returns the hyperbolic cosine of its argument.JpaExpression<Long>
count(Expression<?> argument)
JpaExpression<Long>
count(Expression<?> argument, JpaPredicate filter)
JpaExpression<Long>
count(Expression<?> argument, JpaPredicate filter, JpaWindow window)
Create acount
aggregate function expression.JpaExpression<Long>
count(Expression<?> argument, JpaWindow window)
JpaExpression<Long>
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)
JpaCriteriaQuery<Object>
createQuery()
<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.JpaCriteriaQuery<Tuple>
createTupleQuery()
JpaWindow
createWindow()
Create an emptyJpaWindow
to use with window and aggregate functions.JpaExpression<Double>
cumeDist(JpaWindow window)
Create acume_dist
window function expression.JpaFunction<Date>
currentDate()
JpaFunction<Instant>
currentInstant()
JpaFunction<Time>
currentTime()
JpaFunction<Timestamp>
currentTimestamp()
JpaFunction<Integer>
day(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.DAY
of a date, time, or datetime expression.JpaExpression<Double>
degrees(Expression<? extends Number> x)
Create an expression that converts an angle measured in radians to an approximately equivalent angle measured in degrees.JpaExpression<Long>
denseRank(JpaWindow window)
Create adense_rank
window function expression.JpaOrder
desc(Expression<?> x)
JpaOrder
desc(Expression<?> x, boolean nullsFirst)
Create an ordering by the descending value of the expression.JpaSearchOrder
desc(JpaCteCriteriaAttribute x)
Create a search ordering by the descending value of the CTE attribute.JpaSearchOrder
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)
JpaPredicate
disjunction()
JpaPredicate
distinctFrom(Expression<?> x, Expression<?> y)
JpaPredicate
distinctFrom(Expression<?> x, Object y)
JpaExpression<Duration>
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.JpaExpression<Long>
durationByUnit(TemporalUnit unit, Expression<Duration> duration)
Convert aDuration
to a numeric magnitude in the given units.JpaExpression<Duration>
durationDiff(Expression<Duration> x, Expression<Duration> y)
Subtract one duration from another.JpaExpression<Duration>
durationDiff(Expression<Duration> x, Duration y)
Subtract one duration from another.JpaExpression<Duration>
durationScaled(Expression<? extends Number> number, Expression<Duration> duration)
Scale a duration by a number.JpaExpression<Duration>
durationScaled(Expression<? extends Number> number, Duration duration)
Scale a duration by a number.JpaExpression<Duration>
durationScaled(Number number, Expression<Duration> duration)
Scale a duration by a number.JpaExpression<Duration>
durationSum(Expression<Duration> x, Expression<Duration> y)
Add two durations.JpaExpression<Duration>
durationSum(Expression<Duration> x, Duration y)
Add two durations.JpaPredicate
equal(Expression<?> x, Expression<?> y)
JpaPredicate
equal(Expression<?> x, Object y)
<T> JpaCriteriaQuery<T>
except(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
except(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
except(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
except(Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
exceptAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
exceptAll(Subquery<? extends T> query1, Subquery<?>... queries)
JpaPredicate
exists(Subquery<?> subquery)
JpaExpression<Double>
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_value
window function expression.<P,F>
JpaExpression<F>fk(Path<P> path)
<N extends Number>
JpaExpression<N>floor(Expression<N> x)
Create an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument.JpaFunction<String>
format(Expression<? extends TemporalAccessor> datetime, String pattern)
Format a date, time, or datetime according to a pattern.JpaWindowFrame
frameBetweenFollowing(int offset)
JpaWindowFrame
frameBetweenFollowing(Expression<?> offset)
Create a window frame of typeFrameKind.OFFSET_FOLLOWING
to use withJpaWindow
s.JpaWindowFrame
frameBetweenPreceding(int offset)
JpaWindowFrame
frameBetweenPreceding(Expression<?> offset)
Create window frame of typeFrameKind.OFFSET_PRECEDING
to use withJpaWindow
s.JpaWindowFrame
frameCurrentRow()
Create a window frame of typeFrameKind.CURRENT_ROW
to use withJpaWindow
s.JpaWindowFrame
frameUnboundedFollowing()
Create a window frame of typeFrameKind.UNBOUNDED_FOLLOWING
to use withJpaWindow
s.JpaWindowFrame
frameUnboundedPreceding()
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)
JpaPredicate
ge(Expression<? extends Number> x, Expression<? extends Number> y)
JpaPredicate
ge(Expression<? extends Number> x, Number y)
protected HibernateCriteriaBuilder
getCriteriaBuilder()
<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)
JpaPredicate
gt(Expression<? extends Number> x, Expression<? extends Number> y)
JpaPredicate
gt(Expression<? extends Number> x, Number y)
JpaFunction<Integer>
hour(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.HOUR
of a date, time, or datetime expression.JpaPredicate
ilike(Expression<String> x, Expression<String> pattern)
JpaPredicate
ilike(Expression<String> x, Expression<String> pattern, char escapeChar)
JpaPredicate
ilike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
JpaPredicate
ilike(Expression<String> x, String pattern)
JpaPredicate
ilike(Expression<String> x, String pattern, char escapeChar)
JpaPredicate
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>
intersect(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
intersect(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
intersect(Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
intersectAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
intersectAll(Subquery<? extends T> query1, Subquery<?>... queries)
<C extends Collection<?>>
JpaPredicateisEmpty(Expression<C> collection)
JpaPredicate
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)
JpaPredicate
isNotNull(Expression<?> x)
JpaPredicate
isNull(Expression<?> x)
JpaPredicate
isTrue(Expression<Boolean> x)
<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.JpaPredicate
le(Expression<? extends Number> x, Expression<? extends Number> y)
JpaPredicate
le(Expression<? extends Number> x, Number y)
<X extends Comparable<? super X>>
JpaExpression<X>least(Expression<X> argument)
JpaFunction<String>
left(Expression<String> x, int length)
JpaFunction<String>
left(Expression<String> x, Expression<Integer> length)
Extract thelength
leftmost characters of a string.JpaFunction<Integer>
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)
JpaPredicate
like(Expression<String> x, Expression<String> pattern)
JpaPredicate
like(Expression<String> x, Expression<String> pattern, char escapeChar)
JpaPredicate
like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
JpaPredicate
like(Expression<String> x, String pattern)
JpaPredicate
like(Expression<String> x, String pattern, char escapeChar)
JpaPredicate
like(Expression<String> x, String pattern, Expression<Character> escapeChar)
JpaExpression<String>
listagg(JpaOrder order, Expression<String> argument, Expression<String> separator)
JpaExpression<String>
listagg(JpaOrder order, Expression<String> argument, String separator)
JpaExpression<String>
listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, Expression<String> separator)
JpaExpression<String>
listagg(JpaOrder order, JpaPredicate filter, Expression<String> argument, String separator)
JpaExpression<String>
listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, Expression<String> separator)
Create alistagg
ordered set-aggregate function expression.JpaExpression<String>
listagg(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<String> argument, String separator)
JpaExpression<String>
listagg(JpaOrder order, JpaWindow window, Expression<String> argument, Expression<String> separator)
JpaExpression<String>
listagg(JpaOrder order, JpaWindow window, Expression<String> argument, String separator)
<T> JpaExpression<T>
literal(T value)
<T> List<? extends JpaExpression<T>>
literals(List<T> values)
<T> List<? extends JpaExpression<T>>
literals(T... values)
JpaExpression<Double>
ln(Expression<? extends Number> x)
Create an expression that returns the natural logarithm of its argument.JpaExpression<LocalDate>
localDate()
Create expression to return current local date.JpaExpression<LocalDateTime>
localDateTime()
Create expression to return current local datetime.JpaExpression<LocalTime>
localTime()
Create expression to return current local time.JpaFunction<Integer>
locate(Expression<String> x, Expression<String> pattern)
JpaFunction<Integer>
locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from)
JpaFunction<Integer>
locate(Expression<String> x, String pattern)
JpaFunction<Integer>
locate(Expression<String> x, String pattern, int from)
JpaExpression<Double>
log(Expression<? extends Number> b, Expression<? extends Number> x)
Create an expression that returns the logarithm ofx
to the baseb
.JpaExpression<Double>
log(Number b, Expression<? extends Number> x)
JpaExpression<Double>
log10(Expression<? extends Number> x)
Create an expression that returns the base-10 logarithm of its argument.JpaFunction<String>
lower(Expression<String> x)
JpaPredicate
lt(Expression<? extends Number> x, Expression<? extends Number> y)
JpaPredicate
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)
JpaFunction<Integer>
minute(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.MINUTE
of a date, time, or datetime expression.JpaExpression<Integer>
mod(Expression<Integer> x, Expression<Integer> y)
JpaExpression<Integer>
mod(Expression<Integer> x, Integer y)
JpaExpression<Integer>
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)
JpaFunction<Integer>
month(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.MONTH
of a date, time, or datetime expression.<N extends Number>
JpaExpression<N>neg(Expression<N> x)
JpaPredicate
not(Expression<Boolean> restriction)
JpaPredicate
notDistinctFrom(Expression<?> x, Expression<?> y)
JpaPredicate
notDistinctFrom(Expression<?> x, Object y)
JpaPredicate
notEqual(Expression<?> x, Expression<?> y)
JpaPredicate
notEqual(Expression<?> x, Object y)
JpaPredicate
notIlike(Expression<String> x, Expression<String> pattern)
JpaPredicate
notIlike(Expression<String> x, Expression<String> pattern, char escapeChar)
JpaPredicate
notIlike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
JpaPredicate
notIlike(Expression<String> x, String pattern)
JpaPredicate
notIlike(Expression<String> x, String pattern, char escapeChar)
JpaPredicate
notIlike(Expression<String> x, String pattern, Expression<Character> escapeChar)
JpaPredicate
notLike(Expression<String> x, Expression<String> pattern)
JpaPredicate
notLike(Expression<String> x, Expression<String> pattern, char escapeChar)
JpaPredicate
notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
JpaPredicate
notLike(Expression<String> x, String pattern)
JpaPredicate
notLike(Expression<String> x, String pattern, char escapeChar)
JpaPredicate
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)
JpaPredicate
or(Expression<Boolean> x, Expression<Boolean> y)
JpaPredicate
or(Predicate... restrictions)
JpaFunction<String>
overlay(Expression<String> string, Expression<String> replacement, int start)
JpaFunction<String>
overlay(Expression<String> string, Expression<String> replacement, int start, int length)
JpaFunction<String>
overlay(Expression<String> string, Expression<String> replacement, int start, Expression<Integer> length)
JpaFunction<String>
overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start)
JpaFunction<String>
overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, int length)
JpaFunction<String>
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.JpaFunction<String>
overlay(Expression<String> string, String replacement, int start)
JpaFunction<String>
overlay(Expression<String> string, String replacement, int start, int length)
JpaFunction<String>
overlay(Expression<String> string, String replacement, int start, Expression<Integer> length)
JpaFunction<String>
overlay(Expression<String> string, String replacement, Expression<Integer> start)
JpaFunction<String>
overlay(Expression<String> string, String replacement, Expression<Integer> start, int length)
JpaFunction<String>
overlay(Expression<String> string, String replacement, Expression<Integer> start, Expression<Integer> length)
JpaFunction<String>
pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length)
JpaFunction<String>
pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, char padChar)
JpaFunction<String>
pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, Expression<Character> padChar)
JpaFunction<String>
pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length)
JpaFunction<String>
pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, char padChar)
JpaFunction<String>
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.JpaFunction<String>
pad(Expression<String> x, int length)
JpaFunction<String>
pad(Expression<String> x, int length, char padChar)
JpaFunction<String>
pad(Expression<String> x, int length, Expression<Character> padChar)
JpaFunction<String>
pad(Expression<String> x, Expression<Integer> length)
JpaFunction<String>
pad(Expression<String> x, Expression<Integer> length, char padChar)
JpaFunction<String>
pad(Expression<String> x, Expression<Integer> length, Expression<Character> padChar)
<T> JpaParameterExpression<T>
parameter(Class<T> paramClass)
<T> JpaParameterExpression<T>
parameter(Class<T> paramClass, String 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_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)
JpaExpression<Double>
percentRank(JpaOrder order, Expression<?>... arguments)
JpaExpression<Double>
percentRank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments)
JpaExpression<Double>
percentRank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments)
Create apercent_rank
ordered set-aggregate function expression.JpaExpression<Double>
percentRank(JpaOrder order, JpaWindow window, Expression<?>... arguments)
JpaExpression<Double>
percentRank(JpaWindow window)
Create apercent_rank
window function expression.JpaExpression<Double>
pi()
Literal expression corresponding to the value of pi.JpaExpression<Double>
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.JpaExpression<Double>
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)
JpaExpression<Number>
quot(Expression<? extends Number> x, Expression<? extends Number> y)
JpaExpression<Number>
quot(Expression<? extends Number> x, Number y)
JpaExpression<Number>
quot(Number x, Expression<? extends Number> y)
JpaExpression<Double>
radians(Expression<? extends Number> x)
Create an expression that converts an angle measured in degrees to an approximately equivalent angle measured in radians.JpaExpression<Long>
rank(JpaOrder order, Expression<?>... arguments)
JpaExpression<Long>
rank(JpaOrder order, JpaPredicate filter, Expression<?>... arguments)
JpaExpression<Long>
rank(JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... arguments)
Create arank
ordered set-aggregate function expression.JpaExpression<Long>
rank(JpaOrder order, JpaWindow window, Expression<?>... arguments)
JpaExpression<Long>
rank(JpaWindow window)
Create arank
window function expression.JpaFunction<String>
repeat(Expression<String> x, int times)
Concatenate the given string expression with itself the given number of times.JpaFunction<String>
repeat(Expression<String> x, Expression<Integer> times)
Concatenate the given string expression with itself the given number of times.JpaFunction<String>
repeat(String x, Expression<Integer> times)
Concatenate the given string expression with itself the given number of times.JpaFunction<String>
replace(Expression<String> x, Expression<String> pattern, Expression<String> replacement)
Replace all occurrences ofpattern
within the original string withreplacement
.JpaFunction<String>
replace(Expression<String> x, Expression<String> pattern, String replacement)
JpaFunction<String>
replace(Expression<String> x, String pattern, Expression<String> replacement)
JpaFunction<String>
replace(Expression<String> x, String pattern, String replacement)
JpaFunction<String>
right(Expression<String> x, int length)
JpaFunction<String>
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.JpaExpression<Long>
rowNumber(JpaWindow window)
Create arow_number
window function expression.JpaSearchOrder
search(JpaCteCriteriaAttribute cteAttribute)
Create a search ordering based on the ascending value of the CTE attribute.JpaSearchOrder
search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder)
Create a search ordering based on the sort order of the value of the CTE attribute.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.JpaFunction<Float>
second(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.SECOND
of a date, time, or datetime expression.<R> JpaSearchedCase<R>
selectCase()
<C,R>
JpaSimpleCase<C,R>selectCase(Expression<? extends C> expression)
JpaExpression<Integer>
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.JpaExpression<Double>
sin(Expression<? extends Number> x)
Create an expression that returns the sine of its argument.JpaExpression<Double>
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>
some(Subquery<Y> subquery)
JpaOrder
sort(JpaExpression<?> sortExpression)
JpaOrder
sort(JpaExpression<?> sortExpression, SortDirection sortOrder)
JpaOrder
sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence)
<T> JpaExpression<T>
sql(String pattern, Class<T> type, Expression<?>... arguments)
Embed nativepattern
that will be unquoted and embedded in the generated SQL.JpaExpression<Double>
sqrt(Expression<? extends Number> x)
JpaFunction<String>
substring(Expression<String> x, int from)
JpaFunction<String>
substring(Expression<String> x, int from, int len)
JpaFunction<String>
substring(Expression<String> x, Expression<Integer> from)
JpaFunction<String>
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)
JpaExpression<Double>
sumAsDouble(Expression<Float> argument)
JpaExpression<Long>
sumAsLong(Expression<Integer> argument)
JpaExpression<Double>
tan(Expression<? extends Number> x)
Create an expression that returns the tangent of its argument.JpaExpression<Double>
tanh(Expression<? extends Number> x)
Create an expression that returns the hyperbolic tangent of its argument.JpaExpression<BigDecimal>
toBigDecimal(Expression<? extends Number> number)
JpaExpression<BigInteger>
toBigInteger(Expression<? extends Number> number)
JpaExpression<Double>
toDouble(Expression<? extends Number> number)
JpaExpression<Float>
toFloat(Expression<? extends Number> number)
JpaExpression<Integer>
toInteger(Expression<? extends Number> number)
JpaExpression<Long>
toLong(Expression<? extends Number> number)
JpaExpression<String>
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>treat(Join<X,T> join, Class<V> type)
<X,T,E extends T>
JpaListJoin<X,E>treat(ListJoin<X,T> join, Class<E> type)
<X,K,T,V extends T>
JpaMapJoin<X,K,V>treat(MapJoin<X,K,T> join, Class<V> type)
<X,T extends X>
JpaPath<T>treat(Path<X> path, Class<T> type)
<X,T extends X>
JpaRoot<T>treat(Root<X> root, Class<T> type)
<X,T,E extends T>
JpaSetJoin<X,E>treat(SetJoin<X,T> join, Class<E> type)
JpaFunction<String>
trim(char t, Expression<String> x)
JpaFunction<String>
trim(CriteriaBuilder.Trimspec ts, char t, Expression<String> x)
JpaFunction<String>
trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x)
JpaFunction<String>
trim(CriteriaBuilder.Trimspec ts, Expression<String> x)
JpaFunction<String>
trim(Expression<Character> t, Expression<String> x)
JpaFunction<String>
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
.JpaCompoundSelection<Tuple>
tuple(Selection<?>... selections)
JpaCompoundSelection<Tuple>
tuple(List<? extends JpaSelection<?>> selections)
<T> JpaCriteriaQuery<T>
union(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
union(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
union(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
union(Subquery<? extends T> query1, Subquery<?>... queries)
<T> JpaCriteriaQuery<T>
unionAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
<T> JpaSubQuery<T>
unionAll(Subquery<? extends T> query1, Subquery<?>... queries)
<T extends HibernateCriteriaBuilder>
Tunwrap(Class<T> clazz)
JpaFunction<String>
upper(Expression<String> x)
<T> JpaExpression<T>
value(T value)
<V,C extends Collection<V>>
JpaExpression<Collection<V>>values(C collection)
<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
.JpaPredicate
wrap(Expression<Boolean> expression)
JpaPredicate
wrap(Expression<Boolean>... expressions)
JpaFunction<Integer>
year(Expression<? extends TemporalAccessor> datetime)
Extracts theTemporalUnit.YEAR
of a date, time, or datetime expression.
-
-
-
Constructor Detail
-
HibernateCriteriaBuilderDelegate
public HibernateCriteriaBuilderDelegate(HibernateCriteriaBuilder criteriaBuilder)
-
HibernateCriteriaBuilderDelegate
public HibernateCriteriaBuilderDelegate(CriteriaBuilder criteriaBuilder)
-
-
Method Detail
-
getCriteriaBuilder
protected HibernateCriteriaBuilder getCriteriaBuilder()
-
cast
public <X,T> JpaExpression<X> cast(JpaExpression<T> expression, Class<X> castTargetJavaType)
- Specified by:
cast
in interfaceHibernateCriteriaBuilder
-
wrap
public JpaPredicate wrap(Expression<Boolean> expression)
- Specified by:
wrap
in interfaceHibernateCriteriaBuilder
-
wrap
@SafeVarargs public final JpaPredicate wrap(Expression<Boolean>... expressions)
- Specified by:
wrap
in interfaceHibernateCriteriaBuilder
-
unwrap
public <T extends HibernateCriteriaBuilder> T unwrap(Class<T> clazz)
- Specified by:
unwrap
in interfaceHibernateCriteriaBuilder
-
createQuery
public JpaCriteriaQuery<Object> createQuery()
- Specified by:
createQuery
in interfaceCriteriaBuilder
- Specified by:
createQuery
in interfaceHibernateCriteriaBuilder
-
createQuery
public <T> JpaCriteriaQuery<T> createQuery(Class<T> resultClass)
- Specified by:
createQuery
in interfaceCriteriaBuilder
- Specified by:
createQuery
in interfaceHibernateCriteriaBuilder
-
createQuery
public <T> JpaCriteriaQuery<T> createQuery(String hql, Class<T> resultClass)
Description copied from interface:HibernateCriteriaBuilder
Transform the given HQLselect
query to an equivalent criteria query.- Specified by:
createQuery
in interfaceHibernateCriteriaBuilder
- Parameters:
hql
- The HQLselect
queryresultClass
- The result type of the query- Returns:
- The equivalent criteria query
-
createTupleQuery
public JpaCriteriaQuery<Tuple> createTupleQuery()
- Specified by:
createTupleQuery
in interfaceCriteriaBuilder
- Specified by:
createTupleQuery
in interfaceHibernateCriteriaBuilder
-
createCriteriaUpdate
public <T> JpaCriteriaUpdate<T> createCriteriaUpdate(Class<T> targetEntity)
- Specified by:
createCriteriaUpdate
in interfaceCriteriaBuilder
- Specified by:
createCriteriaUpdate
in interfaceHibernateCriteriaBuilder
-
createCriteriaDelete
public <T> JpaCriteriaDelete<T> createCriteriaDelete(Class<T> targetEntity)
- Specified by:
createCriteriaDelete
in interfaceCriteriaBuilder
- Specified by:
createCriteriaDelete
in interfaceHibernateCriteriaBuilder
-
createCriteriaInsertValues
public <T> JpaCriteriaInsertValues<T> createCriteriaInsertValues(Class<T> targetEntity)
- Specified by:
createCriteriaInsertValues
in interfaceHibernateCriteriaBuilder
-
createCriteriaInsertSelect
public <T> JpaCriteriaInsertSelect<T> createCriteriaInsertSelect(Class<T> targetEntity)
- Specified by:
createCriteriaInsertSelect
in interfaceHibernateCriteriaBuilder
-
unionAll
public <T> JpaCriteriaQuery<T> unionAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
unionAll
in interfaceHibernateCriteriaBuilder
-
union
public <T> JpaCriteriaQuery<T> union(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
union
in interfaceHibernateCriteriaBuilder
-
union
public <T> JpaCriteriaQuery<T> union(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
union
in interfaceHibernateCriteriaBuilder
-
intersectAll
public <T> JpaCriteriaQuery<T> intersectAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
intersectAll
in interfaceHibernateCriteriaBuilder
-
intersect
public <T> JpaCriteriaQuery<T> intersect(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
intersect
in interfaceHibernateCriteriaBuilder
-
intersect
public <T> JpaCriteriaQuery<T> intersect(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
intersect
in interfaceHibernateCriteriaBuilder
-
exceptAll
public <T> JpaCriteriaQuery<T> exceptAll(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
exceptAll
in interfaceHibernateCriteriaBuilder
-
except
public <T> JpaCriteriaQuery<T> except(CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
except
in interfaceHibernateCriteriaBuilder
-
except
public <T> JpaCriteriaQuery<T> except(boolean all, CriteriaQuery<? extends T> query1, CriteriaQuery<?>... queries)
- Specified by:
except
in interfaceHibernateCriteriaBuilder
-
unionAll
public <T> JpaSubQuery<T> unionAll(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
unionAll
in interfaceHibernateCriteriaBuilder
-
union
public <T> JpaSubQuery<T> union(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
union
in interfaceHibernateCriteriaBuilder
-
union
public <T> JpaSubQuery<T> union(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
union
in interfaceHibernateCriteriaBuilder
-
intersectAll
public <T> JpaSubQuery<T> intersectAll(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
intersectAll
in interfaceHibernateCriteriaBuilder
-
intersect
public <T> JpaSubQuery<T> intersect(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
intersect
in interfaceHibernateCriteriaBuilder
-
intersect
public <T> JpaSubQuery<T> intersect(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
intersect
in interfaceHibernateCriteriaBuilder
-
exceptAll
public <T> JpaSubQuery<T> exceptAll(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
exceptAll
in interfaceHibernateCriteriaBuilder
-
except
public <T> JpaSubQuery<T> except(Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
except
in interfaceHibernateCriteriaBuilder
-
except
public <T> JpaSubQuery<T> except(boolean all, Subquery<? extends T> query1, Subquery<?>... queries)
- Specified by:
except
in interfaceHibernateCriteriaBuilder
-
sign
public JpaExpression<Integer> sign(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
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
- Specified by:
sign
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- sign
-
ceiling
public <N extends Number> JpaExpression<N> ceiling(Expression<N> x)
Description copied from interface:HibernateCriteriaBuilder
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
- Specified by:
ceiling
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- ceiling
-
floor
public <N extends Number> JpaExpression<N> floor(Expression<N> x)
Description copied from interface:HibernateCriteriaBuilder
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
- Specified by:
floor
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- floor
-
exp
public JpaExpression<Double> exp(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
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
- Specified by:
exp
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- exponential
-
ln
public JpaExpression<Double> ln(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the natural logarithm of its argument.- Specified by:
ln
in interfaceCriteriaBuilder
- Specified by:
ln
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- natural logarithm
-
power
public JpaExpression<Double> power(Expression<? extends Number> x, Expression<? extends Number> y)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the first argument raised to the power of its second argument.- Specified by:
power
in interfaceCriteriaBuilder
- Specified by:
power
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- basey
- exponent- Returns:
- the base raised to the power of the exponent
-
power
public JpaExpression<Double> power(Expression<? extends Number> x, Number y)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the first argument raised to the power of its second argument.- Specified by:
power
in interfaceCriteriaBuilder
- Specified by:
power
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- basey
- exponent- Returns:
- the base raised to the power of the exponent
-
round
public <T extends Number> JpaExpression<T> round(Expression<T> x, Integer n)
Description copied from interface:HibernateCriteriaBuilder
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
- Specified by:
round
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- basen
- number of decimal places- Returns:
- the rounded value
-
truncate
public <T extends Number> JpaExpression<T> truncate(Expression<T> x, Integer n)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the first argument truncated to the number of decimal places given by the second argument.- Specified by:
truncate
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- basen
- number of decimal places- Returns:
- the truncated value
-
localDate
public JpaExpression<LocalDate> localDate()
Description copied from interface:HibernateCriteriaBuilder
Create expression to return current local date.- Specified by:
localDate
in interfaceCriteriaBuilder
- Specified by:
localDate
in interfaceHibernateCriteriaBuilder
- Returns:
- expression for current date
-
localDateTime
public JpaExpression<LocalDateTime> localDateTime()
Description copied from interface:HibernateCriteriaBuilder
Create expression to return current local datetime.- Specified by:
localDateTime
in interfaceCriteriaBuilder
- Specified by:
localDateTime
in interfaceHibernateCriteriaBuilder
- Returns:
- expression for current timestamp
-
localTime
public JpaExpression<LocalTime> localTime()
Description copied from interface:HibernateCriteriaBuilder
Create expression to return current local time.- Specified by:
localTime
in interfaceCriteriaBuilder
- Specified by:
localTime
in interfaceHibernateCriteriaBuilder
- Returns:
- expression for current time
-
fk
public <P,F> JpaExpression<F> fk(Path<P> path)
- Specified by:
fk
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T extends X> JpaPath<T> treat(Path<X> path, Class<T> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T extends X> JpaRoot<T> treat(Root<X> root, Class<T> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T,V extends T> JpaJoin<X,V> treat(Join<X,T> join, Class<V> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T,E extends T> JpaCollectionJoin<X,E> treat(CollectionJoin<X,T> join, Class<E> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T,E extends T> JpaSetJoin<X,E> treat(SetJoin<X,T> join, Class<E> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,T,E extends T> JpaListJoin<X,E> treat(ListJoin<X,T> join, Class<E> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
treat
public <X,K,T,V extends T> JpaMapJoin<X,K,V> treat(MapJoin<X,K,T> join, Class<V> type)
- Specified by:
treat
in interfaceCriteriaBuilder
- Specified by:
treat
in interfaceHibernateCriteriaBuilder
-
construct
public <Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>... selections)
- Specified by:
construct
in interfaceCriteriaBuilder
- Specified by:
construct
in interfaceHibernateCriteriaBuilder
-
construct
public <Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments)
- Specified by:
construct
in interfaceHibernateCriteriaBuilder
-
tuple
public JpaCompoundSelection<Tuple> tuple(Selection<?>... selections)
- Specified by:
tuple
in interfaceCriteriaBuilder
- Specified by:
tuple
in interfaceHibernateCriteriaBuilder
-
tuple
public JpaCompoundSelection<Tuple> tuple(List<? extends JpaSelection<?>> selections)
- Specified by:
tuple
in interfaceHibernateCriteriaBuilder
-
array
public JpaCompoundSelection<Object[]> array(Selection<?>... selections)
- Specified by:
array
in interfaceCriteriaBuilder
- Specified by:
array
in interfaceHibernateCriteriaBuilder
-
array
public JpaCompoundSelection<Object[]> array(List<? extends JpaSelection<?>> selections)
- Specified by:
array
in interfaceHibernateCriteriaBuilder
-
array
public <Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, Selection<?>... selections)
- Specified by:
array
in interfaceHibernateCriteriaBuilder
-
array
public <Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, List<? extends JpaSelection<?>> selections)
- Specified by:
array
in interfaceHibernateCriteriaBuilder
-
avg
public <N extends Number> JpaExpression<Double> avg(Expression<N> argument)
- Specified by:
avg
in interfaceCriteriaBuilder
- Specified by:
avg
in interfaceHibernateCriteriaBuilder
-
sum
public <N extends Number> JpaExpression<N> sum(Expression<N> argument)
- Specified by:
sum
in interfaceCriteriaBuilder
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
-
sumAsLong
public JpaExpression<Long> sumAsLong(Expression<Integer> argument)
- Specified by:
sumAsLong
in interfaceCriteriaBuilder
- Specified by:
sumAsLong
in interfaceHibernateCriteriaBuilder
-
sumAsDouble
public JpaExpression<Double> sumAsDouble(Expression<Float> argument)
- Specified by:
sumAsDouble
in interfaceCriteriaBuilder
- Specified by:
sumAsDouble
in interfaceHibernateCriteriaBuilder
-
max
public <N extends Number> JpaExpression<N> max(Expression<N> argument)
- Specified by:
max
in interfaceCriteriaBuilder
- Specified by:
max
in interfaceHibernateCriteriaBuilder
-
min
public <N extends Number> JpaExpression<N> min(Expression<N> argument)
- Specified by:
min
in interfaceCriteriaBuilder
- Specified by:
min
in interfaceHibernateCriteriaBuilder
-
greatest
public <X extends Comparable<? super X>> JpaExpression<X> greatest(Expression<X> argument)
- Specified by:
greatest
in interfaceCriteriaBuilder
- Specified by:
greatest
in interfaceHibernateCriteriaBuilder
-
least
public <X extends Comparable<? super X>> JpaExpression<X> least(Expression<X> argument)
- Specified by:
least
in interfaceCriteriaBuilder
- Specified by:
least
in interfaceHibernateCriteriaBuilder
-
count
public JpaExpression<Long> count(Expression<?> argument)
- Specified by:
count
in interfaceCriteriaBuilder
- Specified by:
count
in interfaceHibernateCriteriaBuilder
-
countDistinct
public JpaExpression<Long> countDistinct(Expression<?> x)
- Specified by:
countDistinct
in interfaceCriteriaBuilder
- Specified by:
countDistinct
in interfaceHibernateCriteriaBuilder
-
neg
public <N extends Number> JpaExpression<N> neg(Expression<N> x)
- Specified by:
neg
in interfaceCriteriaBuilder
- Specified by:
neg
in interfaceHibernateCriteriaBuilder
-
abs
public <N extends Number> JpaExpression<N> abs(Expression<N> x)
- Specified by:
abs
in interfaceCriteriaBuilder
- Specified by:
abs
in interfaceHibernateCriteriaBuilder
-
sum
public <N extends Number> JpaExpression<N> sum(Expression<? extends N> x, Expression<? extends N> y)
- Specified by:
sum
in interfaceCriteriaBuilder
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
-
sum
public <N extends Number> JpaExpression<N> sum(Expression<? extends N> x, N y)
- Specified by:
sum
in interfaceCriteriaBuilder
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
-
sum
public <N extends Number> JpaExpression<N> sum(N x, Expression<? extends N> y)
- Specified by:
sum
in interfaceCriteriaBuilder
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
-
prod
public <N extends Number> JpaExpression<N> prod(Expression<? extends N> x, Expression<? extends N> y)
- Specified by:
prod
in interfaceCriteriaBuilder
- Specified by:
prod
in interfaceHibernateCriteriaBuilder
-
prod
public <N extends Number> JpaExpression<N> prod(Expression<? extends N> x, N y)
- Specified by:
prod
in interfaceCriteriaBuilder
- Specified by:
prod
in interfaceHibernateCriteriaBuilder
-
prod
public <N extends Number> JpaExpression<N> prod(N x, Expression<? extends N> y)
- Specified by:
prod
in interfaceCriteriaBuilder
- Specified by:
prod
in interfaceHibernateCriteriaBuilder
-
diff
public <N extends Number> JpaExpression<N> diff(Expression<? extends N> x, Expression<? extends N> y)
- Specified by:
diff
in interfaceCriteriaBuilder
- Specified by:
diff
in interfaceHibernateCriteriaBuilder
-
diff
public <N extends Number> JpaExpression<N> diff(Expression<? extends N> x, N y)
- Specified by:
diff
in interfaceCriteriaBuilder
- Specified by:
diff
in interfaceHibernateCriteriaBuilder
-
diff
public <N extends Number> JpaExpression<N> diff(N x, Expression<? extends N> y)
- Specified by:
diff
in interfaceCriteriaBuilder
- Specified by:
diff
in interfaceHibernateCriteriaBuilder
-
quot
public JpaExpression<Number> quot(Expression<? extends Number> x, Expression<? extends Number> y)
- Specified by:
quot
in interfaceCriteriaBuilder
- Specified by:
quot
in interfaceHibernateCriteriaBuilder
-
quot
public JpaExpression<Number> quot(Expression<? extends Number> x, Number y)
- Specified by:
quot
in interfaceCriteriaBuilder
- Specified by:
quot
in interfaceHibernateCriteriaBuilder
-
quot
public JpaExpression<Number> quot(Number x, Expression<? extends Number> y)
- Specified by:
quot
in interfaceCriteriaBuilder
- Specified by:
quot
in interfaceHibernateCriteriaBuilder
-
mod
public JpaExpression<Integer> mod(Expression<Integer> x, Expression<Integer> y)
- Specified by:
mod
in interfaceCriteriaBuilder
- Specified by:
mod
in interfaceHibernateCriteriaBuilder
-
mod
public JpaExpression<Integer> mod(Expression<Integer> x, Integer y)
- Specified by:
mod
in interfaceCriteriaBuilder
- Specified by:
mod
in interfaceHibernateCriteriaBuilder
-
mod
public JpaExpression<Integer> mod(Integer x, Expression<Integer> y)
- Specified by:
mod
in interfaceCriteriaBuilder
- Specified by:
mod
in interfaceHibernateCriteriaBuilder
-
sqrt
public JpaExpression<Double> sqrt(Expression<? extends Number> x)
- Specified by:
sqrt
in interfaceCriteriaBuilder
- Specified by:
sqrt
in interfaceHibernateCriteriaBuilder
-
toLong
public JpaExpression<Long> toLong(Expression<? extends Number> number)
- Specified by:
toLong
in interfaceCriteriaBuilder
- Specified by:
toLong
in interfaceHibernateCriteriaBuilder
-
toInteger
public JpaExpression<Integer> toInteger(Expression<? extends Number> number)
- Specified by:
toInteger
in interfaceCriteriaBuilder
- Specified by:
toInteger
in interfaceHibernateCriteriaBuilder
-
toFloat
public JpaExpression<Float> toFloat(Expression<? extends Number> number)
- Specified by:
toFloat
in interfaceCriteriaBuilder
- Specified by:
toFloat
in interfaceHibernateCriteriaBuilder
-
toDouble
public JpaExpression<Double> toDouble(Expression<? extends Number> number)
- Specified by:
toDouble
in interfaceCriteriaBuilder
- Specified by:
toDouble
in interfaceHibernateCriteriaBuilder
-
toBigDecimal
public JpaExpression<BigDecimal> toBigDecimal(Expression<? extends Number> number)
- Specified by:
toBigDecimal
in interfaceCriteriaBuilder
- Specified by:
toBigDecimal
in interfaceHibernateCriteriaBuilder
-
toBigInteger
public JpaExpression<BigInteger> toBigInteger(Expression<? extends Number> number)
- Specified by:
toBigInteger
in interfaceCriteriaBuilder
- Specified by:
toBigInteger
in interfaceHibernateCriteriaBuilder
-
toString
public JpaExpression<String> toString(Expression<Character> character)
- Specified by:
toString
in interfaceCriteriaBuilder
- Specified by:
toString
in interfaceHibernateCriteriaBuilder
-
literal
public <T> JpaExpression<T> literal(T value)
- Specified by:
literal
in interfaceCriteriaBuilder
- Specified by:
literal
in interfaceHibernateCriteriaBuilder
-
literals
@SafeVarargs public final <T> List<? extends JpaExpression<T>> literals(T... values)
- Specified by:
literals
in interfaceHibernateCriteriaBuilder
-
literals
public <T> List<? extends JpaExpression<T>> literals(List<T> values)
- Specified by:
literals
in interfaceHibernateCriteriaBuilder
-
nullLiteral
public <T> JpaExpression<T> nullLiteral(Class<T> resultClass)
- Specified by:
nullLiteral
in interfaceCriteriaBuilder
- Specified by:
nullLiteral
in interfaceHibernateCriteriaBuilder
-
parameter
public <T> JpaParameterExpression<T> parameter(Class<T> paramClass)
- Specified by:
parameter
in interfaceCriteriaBuilder
- Specified by:
parameter
in interfaceHibernateCriteriaBuilder
-
parameter
public <T> JpaParameterExpression<T> parameter(Class<T> paramClass, String name)
- Specified by:
parameter
in interfaceCriteriaBuilder
- Specified by:
parameter
in interfaceHibernateCriteriaBuilder
-
concat
public JpaExpression<String> concat(Expression<String> x, Expression<String> y)
- Specified by:
concat
in interfaceCriteriaBuilder
- Specified by:
concat
in interfaceHibernateCriteriaBuilder
-
concat
public JpaExpression<String> concat(Expression<String> x, String y)
- Specified by:
concat
in interfaceCriteriaBuilder
- Specified by:
concat
in interfaceHibernateCriteriaBuilder
-
concat
public JpaExpression<String> concat(String x, Expression<String> y)
- Specified by:
concat
in interfaceCriteriaBuilder
- Specified by:
concat
in interfaceHibernateCriteriaBuilder
-
concat
public JpaExpression<String> concat(String x, String y)
- Specified by:
concat
in interfaceHibernateCriteriaBuilder
-
substring
public JpaFunction<String> substring(Expression<String> x, Expression<Integer> from)
- Specified by:
substring
in interfaceCriteriaBuilder
- Specified by:
substring
in interfaceHibernateCriteriaBuilder
-
substring
public JpaFunction<String> substring(Expression<String> x, int from)
- Specified by:
substring
in interfaceCriteriaBuilder
- Specified by:
substring
in interfaceHibernateCriteriaBuilder
-
substring
public JpaFunction<String> substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len)
- Specified by:
substring
in interfaceCriteriaBuilder
- Specified by:
substring
in interfaceHibernateCriteriaBuilder
-
substring
public JpaFunction<String> substring(Expression<String> x, int from, int len)
- Specified by:
substring
in interfaceCriteriaBuilder
- Specified by:
substring
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(CriteriaBuilder.Trimspec ts, Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(Expression<Character> t, Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(char t, Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
trim
public JpaFunction<String> trim(CriteriaBuilder.Trimspec ts, char t, Expression<String> x)
- Specified by:
trim
in interfaceCriteriaBuilder
- Specified by:
trim
in interfaceHibernateCriteriaBuilder
-
lower
public JpaFunction<String> lower(Expression<String> x)
- Specified by:
lower
in interfaceCriteriaBuilder
- Specified by:
lower
in interfaceHibernateCriteriaBuilder
-
upper
public JpaFunction<String> upper(Expression<String> x)
- Specified by:
upper
in interfaceCriteriaBuilder
- Specified by:
upper
in interfaceHibernateCriteriaBuilder
-
length
public JpaFunction<Integer> length(Expression<String> x)
- Specified by:
length
in interfaceCriteriaBuilder
- Specified by:
length
in interfaceHibernateCriteriaBuilder
-
locate
public JpaFunction<Integer> locate(Expression<String> x, Expression<String> pattern)
- Specified by:
locate
in interfaceCriteriaBuilder
- Specified by:
locate
in interfaceHibernateCriteriaBuilder
-
locate
public JpaFunction<Integer> locate(Expression<String> x, String pattern)
- Specified by:
locate
in interfaceCriteriaBuilder
- Specified by:
locate
in interfaceHibernateCriteriaBuilder
-
locate
public JpaFunction<Integer> locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from)
- Specified by:
locate
in interfaceCriteriaBuilder
- Specified by:
locate
in interfaceHibernateCriteriaBuilder
-
locate
public JpaFunction<Integer> locate(Expression<String> x, String pattern, int from)
- Specified by:
locate
in interfaceCriteriaBuilder
- Specified by:
locate
in interfaceHibernateCriteriaBuilder
-
currentDate
public JpaFunction<Date> currentDate()
- Specified by:
currentDate
in interfaceCriteriaBuilder
- Specified by:
currentDate
in interfaceHibernateCriteriaBuilder
-
currentTime
public JpaFunction<Time> currentTime()
- Specified by:
currentTime
in interfaceCriteriaBuilder
- Specified by:
currentTime
in interfaceHibernateCriteriaBuilder
-
currentTimestamp
public JpaFunction<Timestamp> currentTimestamp()
- Specified by:
currentTimestamp
in interfaceCriteriaBuilder
- Specified by:
currentTimestamp
in interfaceHibernateCriteriaBuilder
-
currentInstant
public JpaFunction<Instant> currentInstant()
- Specified by:
currentInstant
in interfaceHibernateCriteriaBuilder
-
function
public <T> JpaFunction<T> function(String name, Class<T> type, Expression<?>... args)
- Specified by:
function
in interfaceCriteriaBuilder
- Specified by:
function
in interfaceHibernateCriteriaBuilder
-
all
public <Y> JpaExpression<Y> all(Subquery<Y> subquery)
- Specified by:
all
in interfaceCriteriaBuilder
- Specified by:
all
in interfaceHibernateCriteriaBuilder
-
some
public <Y> JpaExpression<Y> some(Subquery<Y> subquery)
- Specified by:
some
in interfaceCriteriaBuilder
- Specified by:
some
in interfaceHibernateCriteriaBuilder
-
any
public <Y> JpaExpression<Y> any(Subquery<Y> subquery)
- Specified by:
any
in interfaceCriteriaBuilder
- Specified by:
any
in interfaceHibernateCriteriaBuilder
-
keys
public <K,M extends Map<K,?>> JpaExpression<Set<K>> keys(M map)
- Specified by:
keys
in interfaceCriteriaBuilder
- Specified by:
keys
in interfaceHibernateCriteriaBuilder
-
indexes
public <K,L extends List<?>> JpaExpression<Set<K>> indexes(L list)
- Specified by:
indexes
in interfaceHibernateCriteriaBuilder
-
value
public <T> JpaExpression<T> value(T value)
- Specified by:
value
in interfaceHibernateCriteriaBuilder
-
values
public <V,C extends Collection<V>> JpaExpression<Collection<V>> values(C collection)
- Specified by:
values
in interfaceHibernateCriteriaBuilder
-
values
public <V,M extends Map<?,V>> Expression<Collection<V>> values(M map)
- Specified by:
values
in interfaceCriteriaBuilder
- Specified by:
values
in interfaceHibernateCriteriaBuilder
-
size
public <C extends Collection<?>> JpaExpression<Integer> size(Expression<C> collection)
- Specified by:
size
in interfaceCriteriaBuilder
- Specified by:
size
in interfaceHibernateCriteriaBuilder
-
size
public <C extends Collection<?>> JpaExpression<Integer> size(C collection)
- Specified by:
size
in interfaceCriteriaBuilder
- Specified by:
size
in interfaceHibernateCriteriaBuilder
-
coalesce
public <T> JpaCoalesce<T> coalesce()
- Specified by:
coalesce
in interfaceCriteriaBuilder
- Specified by:
coalesce
in interfaceHibernateCriteriaBuilder
-
coalesce
public <Y> JpaCoalesce<Y> coalesce(Expression<? extends Y> x, Expression<? extends Y> y)
- Specified by:
coalesce
in interfaceCriteriaBuilder
- Specified by:
coalesce
in interfaceHibernateCriteriaBuilder
-
coalesce
public <Y> JpaCoalesce<Y> coalesce(Expression<? extends Y> x, Y y)
- Specified by:
coalesce
in interfaceCriteriaBuilder
- Specified by:
coalesce
in interfaceHibernateCriteriaBuilder
-
nullif
public <Y> JpaExpression<Y> nullif(Expression<Y> x, Expression<?> y)
- Specified by:
nullif
in interfaceCriteriaBuilder
- Specified by:
nullif
in interfaceHibernateCriteriaBuilder
-
nullif
public <Y> JpaExpression<Y> nullif(Expression<Y> x, Y y)
- Specified by:
nullif
in interfaceCriteriaBuilder
- Specified by:
nullif
in interfaceHibernateCriteriaBuilder
-
selectCase
public <C,R> JpaSimpleCase<C,R> selectCase(Expression<? extends C> expression)
- Specified by:
selectCase
in interfaceCriteriaBuilder
- Specified by:
selectCase
in interfaceHibernateCriteriaBuilder
-
selectCase
public <R> JpaSearchedCase<R> selectCase()
- Specified by:
selectCase
in interfaceCriteriaBuilder
- Specified by:
selectCase
in interfaceHibernateCriteriaBuilder
-
and
public JpaPredicate and(Expression<Boolean> x, Expression<Boolean> y)
- Specified by:
and
in interfaceCriteriaBuilder
- Specified by:
and
in interfaceHibernateCriteriaBuilder
-
and
public JpaPredicate and(Predicate... restrictions)
- Specified by:
and
in interfaceCriteriaBuilder
- Specified by:
and
in interfaceHibernateCriteriaBuilder
-
or
public JpaPredicate or(Expression<Boolean> x, Expression<Boolean> y)
- Specified by:
or
in interfaceCriteriaBuilder
- Specified by:
or
in interfaceHibernateCriteriaBuilder
-
or
public JpaPredicate or(Predicate... restrictions)
- Specified by:
or
in interfaceCriteriaBuilder
- Specified by:
or
in interfaceHibernateCriteriaBuilder
-
not
public JpaPredicate not(Expression<Boolean> restriction)
- Specified by:
not
in interfaceCriteriaBuilder
- Specified by:
not
in interfaceHibernateCriteriaBuilder
-
conjunction
public JpaPredicate conjunction()
- Specified by:
conjunction
in interfaceCriteriaBuilder
- Specified by:
conjunction
in interfaceHibernateCriteriaBuilder
-
disjunction
public JpaPredicate disjunction()
- Specified by:
disjunction
in interfaceCriteriaBuilder
- Specified by:
disjunction
in interfaceHibernateCriteriaBuilder
-
isTrue
public JpaPredicate isTrue(Expression<Boolean> x)
- Specified by:
isTrue
in interfaceCriteriaBuilder
- Specified by:
isTrue
in interfaceHibernateCriteriaBuilder
-
isFalse
public JpaPredicate isFalse(Expression<Boolean> x)
- Specified by:
isFalse
in interfaceCriteriaBuilder
- Specified by:
isFalse
in interfaceHibernateCriteriaBuilder
-
isNull
public JpaPredicate isNull(Expression<?> x)
- Specified by:
isNull
in interfaceCriteriaBuilder
- Specified by:
isNull
in interfaceHibernateCriteriaBuilder
-
isNotNull
public JpaPredicate isNotNull(Expression<?> x)
- Specified by:
isNotNull
in interfaceCriteriaBuilder
- Specified by:
isNotNull
in interfaceHibernateCriteriaBuilder
-
equal
public JpaPredicate equal(Expression<?> x, Expression<?> y)
- Specified by:
equal
in interfaceCriteriaBuilder
- Specified by:
equal
in interfaceHibernateCriteriaBuilder
-
equal
public JpaPredicate equal(Expression<?> x, Object y)
- Specified by:
equal
in interfaceCriteriaBuilder
- Specified by:
equal
in interfaceHibernateCriteriaBuilder
-
notEqual
public JpaPredicate notEqual(Expression<?> x, Expression<?> y)
- Specified by:
notEqual
in interfaceCriteriaBuilder
- Specified by:
notEqual
in interfaceHibernateCriteriaBuilder
-
notEqual
public JpaPredicate notEqual(Expression<?> x, Object y)
- Specified by:
notEqual
in interfaceCriteriaBuilder
- Specified by:
notEqual
in interfaceHibernateCriteriaBuilder
-
distinctFrom
public JpaPredicate distinctFrom(Expression<?> x, Expression<?> y)
- Specified by:
distinctFrom
in interfaceHibernateCriteriaBuilder
-
distinctFrom
public JpaPredicate distinctFrom(Expression<?> x, Object y)
- Specified by:
distinctFrom
in interfaceHibernateCriteriaBuilder
-
notDistinctFrom
public JpaPredicate notDistinctFrom(Expression<?> x, Expression<?> y)
- Specified by:
notDistinctFrom
in interfaceHibernateCriteriaBuilder
-
notDistinctFrom
public JpaPredicate notDistinctFrom(Expression<?> x, Object y)
- Specified by:
notDistinctFrom
in interfaceHibernateCriteriaBuilder
-
greaterThan
public <Y extends Comparable<? super Y>> JpaPredicate greaterThan(Expression<? extends Y> x, Expression<? extends Y> y)
- Specified by:
greaterThan
in interfaceCriteriaBuilder
- Specified by:
greaterThan
in interfaceHibernateCriteriaBuilder
-
greaterThan
public <Y extends Comparable<? super Y>> JpaPredicate greaterThan(Expression<? extends Y> x, Y y)
- Specified by:
greaterThan
in interfaceCriteriaBuilder
- Specified by:
greaterThan
in interfaceHibernateCriteriaBuilder
-
greaterThanOrEqualTo
public <Y extends Comparable<? super Y>> JpaPredicate greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
- Specified by:
greaterThanOrEqualTo
in interfaceCriteriaBuilder
- Specified by:
greaterThanOrEqualTo
in interfaceHibernateCriteriaBuilder
-
greaterThanOrEqualTo
public <Y extends Comparable<? super Y>> JpaPredicate greaterThanOrEqualTo(Expression<? extends Y> x, Y y)
- Specified by:
greaterThanOrEqualTo
in interfaceCriteriaBuilder
- Specified by:
greaterThanOrEqualTo
in interfaceHibernateCriteriaBuilder
-
lessThan
public <Y extends Comparable<? super Y>> JpaPredicate lessThan(Expression<? extends Y> x, Expression<? extends Y> y)
- Specified by:
lessThan
in interfaceCriteriaBuilder
- Specified by:
lessThan
in interfaceHibernateCriteriaBuilder
-
lessThan
public <Y extends Comparable<? super Y>> JpaPredicate lessThan(Expression<? extends Y> x, Y y)
- Specified by:
lessThan
in interfaceCriteriaBuilder
- Specified by:
lessThan
in interfaceHibernateCriteriaBuilder
-
lessThanOrEqualTo
public <Y extends Comparable<? super Y>> JpaPredicate lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
- Specified by:
lessThanOrEqualTo
in interfaceCriteriaBuilder
- Specified by:
lessThanOrEqualTo
in interfaceHibernateCriteriaBuilder
-
lessThanOrEqualTo
public <Y extends Comparable<? super Y>> JpaPredicate lessThanOrEqualTo(Expression<? extends Y> x, Y y)
- Specified by:
lessThanOrEqualTo
in interfaceCriteriaBuilder
- Specified by:
lessThanOrEqualTo
in interfaceHibernateCriteriaBuilder
-
between
public <Y extends Comparable<? super Y>> JpaPredicate between(Expression<? extends Y> value, Expression<? extends Y> lower, Expression<? extends Y> upper)
- Specified by:
between
in interfaceCriteriaBuilder
- Specified by:
between
in interfaceHibernateCriteriaBuilder
-
between
public <Y extends Comparable<? super Y>> JpaPredicate between(Expression<? extends Y> value, Y lower, Y upper)
- Specified by:
between
in interfaceCriteriaBuilder
- Specified by:
between
in interfaceHibernateCriteriaBuilder
-
gt
public JpaPredicate gt(Expression<? extends Number> x, Expression<? extends Number> y)
- Specified by:
gt
in interfaceCriteriaBuilder
- Specified by:
gt
in interfaceHibernateCriteriaBuilder
-
gt
public JpaPredicate gt(Expression<? extends Number> x, Number y)
- Specified by:
gt
in interfaceCriteriaBuilder
- Specified by:
gt
in interfaceHibernateCriteriaBuilder
-
ge
public JpaPredicate ge(Expression<? extends Number> x, Expression<? extends Number> y)
- Specified by:
ge
in interfaceCriteriaBuilder
- Specified by:
ge
in interfaceHibernateCriteriaBuilder
-
ge
public JpaPredicate ge(Expression<? extends Number> x, Number y)
- Specified by:
ge
in interfaceCriteriaBuilder
- Specified by:
ge
in interfaceHibernateCriteriaBuilder
-
lt
public JpaPredicate lt(Expression<? extends Number> x, Expression<? extends Number> y)
- Specified by:
lt
in interfaceCriteriaBuilder
- Specified by:
lt
in interfaceHibernateCriteriaBuilder
-
lt
public JpaPredicate lt(Expression<? extends Number> x, Number y)
- Specified by:
lt
in interfaceCriteriaBuilder
- Specified by:
lt
in interfaceHibernateCriteriaBuilder
-
le
public JpaPredicate le(Expression<? extends Number> x, Expression<? extends Number> y)
- Specified by:
le
in interfaceCriteriaBuilder
- Specified by:
le
in interfaceHibernateCriteriaBuilder
-
le
public JpaPredicate le(Expression<? extends Number> x, Number y)
- Specified by:
le
in interfaceCriteriaBuilder
- Specified by:
le
in interfaceHibernateCriteriaBuilder
-
isEmpty
public <C extends Collection<?>> JpaPredicate isEmpty(Expression<C> collection)
- Specified by:
isEmpty
in interfaceCriteriaBuilder
- Specified by:
isEmpty
in interfaceHibernateCriteriaBuilder
-
isNotEmpty
public <C extends Collection<?>> JpaPredicate isNotEmpty(Expression<C> collection)
- Specified by:
isNotEmpty
in interfaceCriteriaBuilder
- Specified by:
isNotEmpty
in interfaceHibernateCriteriaBuilder
-
isMember
public <E,C extends Collection<E>> JpaPredicate isMember(Expression<E> elem, Expression<C> collection)
- Specified by:
isMember
in interfaceCriteriaBuilder
- Specified by:
isMember
in interfaceHibernateCriteriaBuilder
-
isMember
public <E,C extends Collection<E>> JpaPredicate isMember(E elem, Expression<C> collection)
- Specified by:
isMember
in interfaceCriteriaBuilder
- Specified by:
isMember
in interfaceHibernateCriteriaBuilder
-
isNotMember
public <E,C extends Collection<E>> JpaPredicate isNotMember(Expression<E> elem, Expression<C> collection)
- Specified by:
isNotMember
in interfaceCriteriaBuilder
- Specified by:
isNotMember
in interfaceHibernateCriteriaBuilder
-
isNotMember
public <E,C extends Collection<E>> JpaPredicate isNotMember(E elem, Expression<C> collection)
- Specified by:
isNotMember
in interfaceCriteriaBuilder
- Specified by:
isNotMember
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, Expression<String> pattern)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, String pattern)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, Expression<String> pattern, char escapeChar)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, String pattern, Expression<Character> escapeChar)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
like
public JpaPredicate like(Expression<String> x, String pattern, char escapeChar)
- Specified by:
like
in interfaceCriteriaBuilder
- Specified by:
like
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, Expression<String> pattern)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, String pattern)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, Expression<String> pattern, char escapeChar)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, String pattern, Expression<Character> escapeChar)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
ilike
public JpaPredicate ilike(Expression<String> x, String pattern, char escapeChar)
- Specified by:
ilike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, Expression<String> pattern)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, String pattern)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, Expression<String> pattern, char escapeChar)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, String pattern, Expression<Character> escapeChar)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notLike
public JpaPredicate notLike(Expression<String> x, String pattern, char escapeChar)
- Specified by:
notLike
in interfaceCriteriaBuilder
- Specified by:
notLike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, Expression<String> pattern)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, String pattern)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, Expression<String> pattern, char escapeChar)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, String pattern, Expression<Character> escapeChar)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
notIlike
public JpaPredicate notIlike(Expression<String> x, String pattern, char escapeChar)
- Specified by:
notIlike
in interfaceHibernateCriteriaBuilder
-
in
public <T> JpaInPredicate<T> in(Expression<? extends T> expression)
- Specified by:
in
in interfaceCriteriaBuilder
- Specified by:
in
in interfaceHibernateCriteriaBuilder
-
in
@SafeVarargs public final <T> JpaInPredicate<T> in(Expression<? extends T> expression, Expression<? extends T>... values)
- Specified by:
in
in interfaceHibernateCriteriaBuilder
-
in
@SafeVarargs public final <T> JpaInPredicate<T> in(Expression<? extends T> expression, T... values)
- Specified by:
in
in interfaceHibernateCriteriaBuilder
-
in
public <T> JpaInPredicate<T> in(Expression<? extends T> expression, Collection<T> values)
- Specified by:
in
in interfaceHibernateCriteriaBuilder
-
exists
public JpaPredicate exists(Subquery<?> subquery)
- Specified by:
exists
in interfaceCriteriaBuilder
- Specified by:
exists
in interfaceHibernateCriteriaBuilder
-
isMapEmpty
public <M extends Map<?,?>> JpaPredicate isMapEmpty(JpaExpression<M> mapExpression)
Description copied from interface:HibernateCriteriaBuilder
Create a predicate that tests whether a Map is empty.- Specified by:
isMapEmpty
in interfaceHibernateCriteriaBuilder
- Parameters:
mapExpression
- The expression resolving to a Map which we want to check for emptiness- Returns:
- is-empty predicate
-
isMapNotEmpty
public <M extends Map<?,?>> JpaPredicate isMapNotEmpty(JpaExpression<M> mapExpression)
Description copied from interface:HibernateCriteriaBuilder
Create a predicate that tests whether a Map is not empty.- Specified by:
isMapNotEmpty
in interfaceHibernateCriteriaBuilder
- Parameters:
mapExpression
- The expression resolving to a Map which we want to check for non-emptiness- Returns:
- is-not-empty predicate
-
mapSize
public <M extends Map<?,?>> JpaExpression<Integer> mapSize(JpaExpression<M> mapExpression)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that tests the size of a map.- Specified by:
mapSize
in interfaceHibernateCriteriaBuilder
- Parameters:
mapExpression
- The expression resolving to a Map for which we want to know the size- Returns:
- size expression
-
mapSize
public <M extends Map<?,?>> JpaExpression<Integer> mapSize(M map)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that tests the size of a map.- Specified by:
mapSize
in interfaceHibernateCriteriaBuilder
- Parameters:
map
- The Map for which we want to know the size- Returns:
- size expression
-
sort
public JpaOrder sort(JpaExpression<?> sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence)
- Specified by:
sort
in interfaceHibernateCriteriaBuilder
-
sort
public JpaOrder sort(JpaExpression<?> sortExpression, SortDirection sortOrder)
- Specified by:
sort
in interfaceHibernateCriteriaBuilder
-
sort
public JpaOrder sort(JpaExpression<?> sortExpression)
- Specified by:
sort
in interfaceHibernateCriteriaBuilder
-
asc
public JpaOrder asc(Expression<?> x)
- Specified by:
asc
in interfaceCriteriaBuilder
- Specified by:
asc
in interfaceHibernateCriteriaBuilder
-
desc
public JpaOrder desc(Expression<?> x)
- Specified by:
desc
in interfaceCriteriaBuilder
- Specified by:
desc
in interfaceHibernateCriteriaBuilder
-
asc
public JpaOrder asc(Expression<?> x, boolean nullsFirst)
Description copied from interface:HibernateCriteriaBuilder
Create an ordering by the ascending value of the expression.- Specified by:
asc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression used to define the orderingnullsFirst
- Whethernull
should be sorted first- Returns:
- ascending ordering corresponding to the expression
-
desc
public JpaOrder desc(Expression<?> x, boolean nullsFirst)
Description copied from interface:HibernateCriteriaBuilder
Create an ordering by the descending value of the expression.- Specified by:
desc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression used to define the orderingnullsFirst
- Whethernull
should be sorted first- Returns:
- descending ordering corresponding to the expression
-
search
@Incubating public JpaSearchOrder search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder, NullPrecedence nullPrecedence)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering based on the sort order and null precedence of the value of the CTE attribute.- Specified by:
search
in interfaceHibernateCriteriaBuilder
- Parameters:
cteAttribute
- CTE attribute used to define the orderingsortOrder
- The sort ordernullPrecedence
- The null precedence- Returns:
- ordering corresponding to the CTE attribute
-
search
@Incubating public JpaSearchOrder search(JpaCteCriteriaAttribute cteAttribute, SortDirection sortOrder)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering based on the sort order of the value of the CTE attribute.- Specified by:
search
in interfaceHibernateCriteriaBuilder
- Parameters:
cteAttribute
- CTE attribute used to define the orderingsortOrder
- The sort order- Returns:
- ordering corresponding to the CTE attribute
-
search
@Incubating public JpaSearchOrder search(JpaCteCriteriaAttribute cteAttribute)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering based on the ascending value of the CTE attribute.- Specified by:
search
in interfaceHibernateCriteriaBuilder
- Parameters:
cteAttribute
- CTE attribute used to define the ordering- Returns:
- ascending ordering corresponding to the CTE attribute
-
asc
@Incubating public JpaSearchOrder asc(JpaCteCriteriaAttribute x)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering by the ascending value of the CTE attribute.- Specified by:
asc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- CTE attribute used to define the ordering- Returns:
- ascending ordering corresponding to the CTE attribute
-
desc
@Incubating public JpaSearchOrder desc(JpaCteCriteriaAttribute x)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering by the descending value of the CTE attribute.- Specified by:
desc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- CTE attribute used to define the ordering- Returns:
- descending ordering corresponding to the CTE attribute
-
asc
@Incubating public JpaSearchOrder asc(JpaCteCriteriaAttribute x, boolean nullsFirst)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering by the ascending value of the CTE attribute.- Specified by:
asc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- CTE attribute used to define the orderingnullsFirst
- Whethernull
should be sorted first- Returns:
- ascending ordering corresponding to the CTE attribute
-
desc
@Incubating public JpaSearchOrder desc(JpaCteCriteriaAttribute x, boolean nullsFirst)
Description copied from interface:HibernateCriteriaBuilder
Create a search ordering by the descending value of the CTE attribute.- Specified by:
desc
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- CTE attribute used to define the orderingnullsFirst
- Whethernull
should be sorted first- Returns:
- descending ordering corresponding to the CTE attribute
-
sql
public <T> JpaExpression<T> sql(String pattern, Class<T> type, Expression<?>... arguments)
Description copied from interface:HibernateCriteriaBuilder
Embed nativepattern
that will be unquoted and embedded in the generated SQL. Occurrences of?
in the pattern are replaced with the remainingarguments
of the function.- Specified by:
sql
in interfaceHibernateCriteriaBuilder
- 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
public JpaFunction<String> format(Expression<? extends TemporalAccessor> datetime, String pattern)
Description copied from interface:HibernateCriteriaBuilder
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.- Specified by:
format
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the datetime expression to formatpattern
- the pattern to use for formatting- Returns:
- format expression
-
year
public JpaFunction<Integer> year(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.YEAR
of a date, time, or datetime expression.- Specified by:
year
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
month
public JpaFunction<Integer> month(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.MONTH
of a date, time, or datetime expression.- Specified by:
month
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
day
public JpaFunction<Integer> day(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.DAY
of a date, time, or datetime expression.- Specified by:
day
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
hour
public JpaFunction<Integer> hour(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.HOUR
of a date, time, or datetime expression.- Specified by:
hour
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
minute
public JpaFunction<Integer> minute(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.MINUTE
of a date, time, or datetime expression.- Specified by:
minute
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
second
public JpaFunction<Float> second(Expression<? extends TemporalAccessor> datetime)
Description copied from interface:HibernateCriteriaBuilder
Extracts theTemporalUnit.SECOND
of a date, time, or datetime expression.- Specified by:
second
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time, or datetime to extract the value from- Returns:
- the extracted value
-
truncate
public <T extends TemporalAccessor> JpaFunction<T> truncate(Expression<T> datetime, TemporalUnit temporalUnit)
Description copied from interface:HibernateCriteriaBuilder
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
field
have been pruned. For hours, minutes and second this means setting them to00
. For months and days, this means setting them to01
.- Specified by:
truncate
in interfaceHibernateCriteriaBuilder
- Parameters:
datetime
- the date, time or datetime expression to be truncatedtemporalUnit
- the temporal unit for truncation- Returns:
- the truncated value
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, int start)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, int start, int length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start, int length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start, int length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, int length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, int start, Expression<Integer> length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, int start, Expression<Integer> length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, String replacement, Expression<Integer> start, Expression<Integer> length)
- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.overlay(Expression, Expression, Expression, Expression)
-
overlay
public JpaFunction<String> overlay(Expression<String> string, Expression<String> replacement, Expression<Integer> start, Expression<Integer> length)
Description copied from interface:HibernateCriteriaBuilder
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.- Specified by:
overlay
in interfaceHibernateCriteriaBuilder
- 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
public JpaFunction<String> pad(Expression<String> x, int length)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(Expression<String> x, Expression<Integer> length)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(Expression<String> x, int length, char padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, char padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(Expression<String> x, Expression<Integer> length, char padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, char padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(Expression<String> x, int length, Expression<Character> padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, int length, Expression<Character> padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(Expression<String> x, Expression<Integer> length, Expression<Character> padChar)
- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.pad(Trimspec, Expression, Expression, Expression)
-
pad
public JpaFunction<String> pad(CriteriaBuilder.Trimspec ts, Expression<String> x, Expression<Integer> length, Expression<Character> padChar)
Description copied from interface:HibernateCriteriaBuilder
Pad the specified string expression with whitespace or with thepadChar
character if specified. Optionally pass aCriteriaBuilder.Trimspec
to pad the string expression withLEADING
orTRAILING
(default) characters.- Specified by:
pad
in interfaceHibernateCriteriaBuilder
- Parameters:
ts
- optionalCriteriaBuilder.Trimspec
x
- string expression to padlength
- length of the result string after paddingpadChar
- optional pad character- Returns:
- pad expression
-
repeat
public JpaFunction<String> repeat(Expression<String> x, Expression<Integer> times)
Description copied from interface:HibernateCriteriaBuilder
Concatenate the given string expression with itself the given number of times.- Specified by:
repeat
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- the string expression to concatenatetimes
- the number of times it should be repeated- Returns:
- repeat expression
-
repeat
public JpaFunction<String> repeat(Expression<String> x, int times)
Description copied from interface:HibernateCriteriaBuilder
Concatenate the given string expression with itself the given number of times.- Specified by:
repeat
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- the string expression to concatenatetimes
- the number of times it should be repeated- Returns:
- repeat expression
-
repeat
public JpaFunction<String> repeat(String x, Expression<Integer> times)
Description copied from interface:HibernateCriteriaBuilder
Concatenate the given string expression with itself the given number of times.- Specified by:
repeat
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- the string expression to concatenatetimes
- the number of times it should be repeated- Returns:
- repeat expression
-
left
public JpaFunction<String> left(Expression<String> x, int length)
- Specified by:
left
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.left(Expression, Expression)
-
left
public JpaFunction<String> left(Expression<String> x, Expression<Integer> length)
Description copied from interface:HibernateCriteriaBuilder
Extract thelength
leftmost characters of a string.- Specified by:
left
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- original stringlength
- number of characters- Returns:
- left expression
-
right
public JpaFunction<String> right(Expression<String> x, int length)
- Specified by:
right
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.right(Expression, Expression)
-
right
public JpaFunction<String> right(Expression<String> x, Expression<Integer> length)
Description copied from interface:HibernateCriteriaBuilder
Extract thelength
rightmost characters of a string.- Specified by:
right
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- original stringlength
- number of characters- Returns:
- left expression
-
replace
public JpaFunction<String> replace(Expression<String> x, String pattern, String replacement)
- Specified by:
replace
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.replace(Expression, Expression, Expression)
-
replace
public JpaFunction<String> replace(Expression<String> x, String pattern, Expression<String> replacement)
- Specified by:
replace
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.replace(Expression, Expression, Expression)
-
replace
public JpaFunction<String> replace(Expression<String> x, Expression<String> pattern, String replacement)
- Specified by:
replace
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.replace(Expression, Expression, Expression)
-
replace
public JpaFunction<String> replace(Expression<String> x, Expression<String> pattern, Expression<String> replacement)
Description copied from interface:HibernateCriteriaBuilder
Replace all occurrences ofpattern
within the original string withreplacement
.- Specified by:
replace
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- original stringpattern
- the string to be replacedreplacement
- the new replacement string- Returns:
- replace expression
-
collate
public JpaFunction<String> collate(Expression<String> x, String collation)
- Specified by:
collate
in interfaceHibernateCriteriaBuilder
-
log10
public JpaExpression<Double> log10(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the base-10 logarithm of its argument.- Specified by:
log10
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- base-10 logarithm
-
log
public JpaExpression<Double> log(Number b, Expression<? extends Number> x)
- Specified by:
log
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.log(Expression, Expression)
-
log
public JpaExpression<Double> log(Expression<? extends Number> b, Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the logarithm ofx
to the baseb
.- Specified by:
log
in interfaceHibernateCriteriaBuilder
- Parameters:
b
- basex
- expression- Returns:
- arbitrary-base logarithm
-
pi
public JpaExpression<Double> pi()
Description copied from interface:HibernateCriteriaBuilder
Literal expression corresponding to the value of pi.- Specified by:
pi
in interfaceHibernateCriteriaBuilder
- Returns:
- pi expression
-
sin
public JpaExpression<Double> sin(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the sine of its argument.- Specified by:
sin
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- sine
-
cos
public JpaExpression<Double> cos(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the cosine of its argument.- Specified by:
cos
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- cosine
-
tan
public JpaExpression<Double> tan(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the tangent of its argument.- Specified by:
tan
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- tangent
-
asin
public JpaExpression<Double> asin(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the inverse sine of its argument.- Specified by:
asin
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- inverse sine
-
acos
public JpaExpression<Double> acos(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the inverse cosine of its argument.- Specified by:
acos
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- inverse cosine
-
atan
public JpaExpression<Double> atan(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the inverse tangent of its argument.- Specified by:
atan
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- inverse tangent
-
atan2
public JpaExpression<Double> atan2(Number y, Expression<? extends Number> x)
- Specified by:
atan2
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.atan2(Expression, Expression)
-
atan2
public JpaExpression<Double> atan2(Expression<? extends Number> y, Number x)
- Specified by:
atan2
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.atan2(Expression, Expression)
-
atan2
public JpaExpression<Double> atan2(Expression<? extends Number> y, Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the inverse tangent ofy
overx
.- Specified by:
atan2
in interfaceHibernateCriteriaBuilder
- Parameters:
y
- y coordinatex
- x coordinate- Returns:
- 2-argument inverse tangent
-
sinh
public JpaExpression<Double> sinh(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the hyperbolic sine of its argument.- Specified by:
sinh
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- hyperbolic sine
-
cosh
public JpaExpression<Double> cosh(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the hyperbolic cosine of its argument.- Specified by:
cosh
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- hyperbolic cosine
-
tanh
public JpaExpression<Double> tanh(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that returns the hyperbolic tangent of its argument.- Specified by:
tanh
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- hyperbolic tangent
-
degrees
public JpaExpression<Double> degrees(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that converts an angle measured in radians to an approximately equivalent angle measured in degrees.- Specified by:
degrees
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- degrees
-
radians
public JpaExpression<Double> radians(Expression<? extends Number> x)
Description copied from interface:HibernateCriteriaBuilder
Create an expression that converts an angle measured in degrees to an approximately equivalent angle measured in radians.- Specified by:
radians
in interfaceHibernateCriteriaBuilder
- Parameters:
x
- expression- Returns:
- radians
-
createWindow
public JpaWindow createWindow()
Description copied from interface:HibernateCriteriaBuilder
Create an emptyJpaWindow
to use with window and aggregate functions.- Specified by:
createWindow
in interfaceHibernateCriteriaBuilder
- Returns:
- the empty window
-
frameUnboundedPreceding
public JpaWindowFrame frameUnboundedPreceding()
Description copied from interface:HibernateCriteriaBuilder
Create a window frame of typeFrameKind.UNBOUNDED_PRECEDING
to use withJpaWindow
s.- Specified by:
frameUnboundedPreceding
in interfaceHibernateCriteriaBuilder
- Returns:
- the window frame
-
frameBetweenPreceding
public JpaWindowFrame frameBetweenPreceding(int offset)
- Specified by:
frameBetweenPreceding
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.frameBetweenPreceding(Expression)
-
frameBetweenPreceding
public JpaWindowFrame frameBetweenPreceding(Expression<?> offset)
Description copied from interface:HibernateCriteriaBuilder
Create window frame of typeFrameKind.OFFSET_PRECEDING
to use withJpaWindow
s.- Specified by:
frameBetweenPreceding
in interfaceHibernateCriteriaBuilder
- Parameters:
offset
- theoffset
expression- Returns:
- the window frame
-
frameCurrentRow
public JpaWindowFrame frameCurrentRow()
Description copied from interface:HibernateCriteriaBuilder
Create a window frame of typeFrameKind.CURRENT_ROW
to use withJpaWindow
s.- Specified by:
frameCurrentRow
in interfaceHibernateCriteriaBuilder
- Returns:
- the window frame
-
frameBetweenFollowing
public JpaWindowFrame frameBetweenFollowing(int offset)
- Specified by:
frameBetweenFollowing
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.frameBetweenFollowing(Expression)
-
frameBetweenFollowing
public JpaWindowFrame frameBetweenFollowing(Expression<?> offset)
Description copied from interface:HibernateCriteriaBuilder
Create a window frame of typeFrameKind.OFFSET_FOLLOWING
to use withJpaWindow
s.- Specified by:
frameBetweenFollowing
in interfaceHibernateCriteriaBuilder
- Parameters:
offset
- theoffset
expression- Returns:
- the window frame
-
frameUnboundedFollowing
public JpaWindowFrame frameUnboundedFollowing()
Description copied from interface:HibernateCriteriaBuilder
Create a window frame of typeFrameKind.UNBOUNDED_FOLLOWING
to use withJpaWindow
s.- Specified by:
frameUnboundedFollowing
in interfaceHibernateCriteriaBuilder
- Returns:
- the window frame
-
windowFunction
public <T> JpaExpression<T> windowFunction(String name, Class<T> type, JpaWindow window, Expression<?>... args)
Description copied from interface:HibernateCriteriaBuilder
Create a generic window function expression that will be applied over the specifiedwindow
.- Specified by:
windowFunction
in interfaceHibernateCriteriaBuilder
- 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
public JpaExpression<Long> rowNumber(JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create arow_number
window function expression.- Specified by:
rowNumber
in interfaceHibernateCriteriaBuilder
- Parameters:
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
firstValue
public <T> JpaExpression<T> firstValue(Expression<T> argument, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create afirst_value
window function expression.- Specified by:
firstValue
in interfaceHibernateCriteriaBuilder
- Type Parameters:
T
- type of the expression- Parameters:
argument
- argument expression to pass tofirst_value
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
lastValue
public <T> JpaExpression<T> lastValue(Expression<T> argument, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create alast_value
window function expression.- Specified by:
lastValue
in interfaceHibernateCriteriaBuilder
- Type Parameters:
T
- type of the expression- Parameters:
argument
- argument expression to pass tolast_value
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
nthValue
public <T> JpaExpression<T> nthValue(Expression<T> argument, int n, JpaWindow window)
- Specified by:
nthValue
in interfaceHibernateCriteriaBuilder
- See Also:
nthValue
-
nthValue
public <T> JpaExpression<T> nthValue(Expression<T> argument, Expression<Integer> n, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create anth_value
window function expression.- Specified by:
nthValue
in interfaceHibernateCriteriaBuilder
- Type Parameters:
T
- type of the expression- Parameters:
argument
- argument expression to pass tonth_value
n
- theN
argument for the functionwindow
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
rank
public JpaExpression<Long> rank(JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create arank
window function expression.- Specified by:
rank
in interfaceHibernateCriteriaBuilder
- Parameters:
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
denseRank
public JpaExpression<Long> denseRank(JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create adense_rank
window function expression.- Specified by:
denseRank
in interfaceHibernateCriteriaBuilder
- Parameters:
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
percentRank
public JpaExpression<Double> percentRank(JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create apercent_rank
window function expression.- Specified by:
percentRank
in interfaceHibernateCriteriaBuilder
- Parameters:
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
cumeDist
public JpaExpression<Double> cumeDist(JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create acume_dist
window function expression.- Specified by:
cumeDist
in interfaceHibernateCriteriaBuilder
- Parameters:
window
- window over which the function will be applied- Returns:
- window function expression
- See Also:
HibernateCriteriaBuilder.windowFunction(java.lang.String, java.lang.Class<T>, org.hibernate.query.criteria.JpaWindow, jakarta.persistence.criteria.Expression<?>...)
-
functionAggregate
public <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, Expression<?>... args)
- Specified by:
functionAggregate
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.functionAggregate(String, Class, JpaPredicate, JpaWindow, Expression...)
-
functionAggregate
public <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaWindow window, Expression<?>... args)
- Specified by:
functionAggregate
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.functionAggregate(String, Class, JpaPredicate, JpaWindow, Expression...)
-
functionAggregate
public <T> JpaExpression<T> functionAggregate(String name, Class<T> type, JpaPredicate filter, JpaWindow window, Expression<?>... args)
Description copied from interface:HibernateCriteriaBuilder
Create a generic aggregate function expression.- Specified by:
functionAggregate
in interfaceHibernateCriteriaBuilder
- 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
public <N extends Number> JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter)
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.sum(Expression, JpaPredicate, JpaWindow)
-
sum
public <N extends Number> JpaExpression<Number> sum(Expression<N> argument, JpaWindow window)
- Specified by:
sum
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.sum(Expression, JpaPredicate, JpaWindow)
-
sum
public <N extends Number> JpaExpression<Number> sum(Expression<N> argument, JpaPredicate filter, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create asum
aggregate function expression.- Specified by:
sum
in interfaceHibernateCriteriaBuilder
- 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:
HibernateCriteriaBuilder.functionAggregate(String, Class, JpaPredicate, JpaWindow, Expression...)
-
avg
public <N extends Number> JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter)
- Specified by:
avg
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.avg(Expression, JpaPredicate, JpaWindow)
-
avg
public <N extends Number> JpaExpression<Double> avg(Expression<N> argument, JpaWindow window)
- Specified by:
avg
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.avg(Expression, JpaPredicate, JpaWindow)
-
avg
public <N extends Number> JpaExpression<Double> avg(Expression<N> argument, JpaPredicate filter, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create anavg
aggregate function expression.- Specified by:
avg
in interfaceHibernateCriteriaBuilder
- 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:
HibernateCriteriaBuilder.functionAggregate(String, Class, JpaPredicate, JpaWindow, Expression...)
-
count
public JpaExpression<Long> count(Expression<?> argument, JpaPredicate filter)
- Specified by:
count
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.count(Expression, JpaPredicate, JpaWindow)
-
count
public JpaExpression<Long> count(Expression<?> argument, JpaWindow window)
- Specified by:
count
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.count(Expression, JpaPredicate, JpaWindow)
-
count
public JpaExpression<Long> count(Expression<?> argument, JpaPredicate filter, JpaWindow window)
Description copied from interface:HibernateCriteriaBuilder
Create acount
aggregate function expression.- Specified by:
count
in interfaceHibernateCriteriaBuilder
- Parameters:
argument
- argument to the functionfilter
- optional filter clausewindow
- optional window over which to apply the function- Returns:
- aggregate function expression
- See Also:
HibernateCriteriaBuilder.functionAggregate(String, Class, JpaPredicate, JpaWindow, Expression...)
-
functionWithinGroup
public <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, Expression<?>... args)
- Specified by:
functionWithinGroup
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.functionWithinGroup(String, Class, JpaOrder, JpaPredicate, JpaWindow, Expression...)
-
functionWithinGroup
public <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaPredicate filter, Expression<?>... args)
- Specified by:
functionWithinGroup
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.functionWithinGroup(String, Class, JpaOrder, JpaPredicate, JpaWindow, Expression...)
-
functionWithinGroup
public <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaWindow window, Expression<?>... args)
- Specified by:
functionWithinGroup
in interfaceHibernateCriteriaBuilder
- See Also:
HibernateCriteriaBuilder.functionWithinGroup(String, Class, JpaOrder, JpaPredicate, JpaWindow, Expression...)
-
functionWithinGroup
public <T> JpaExpression<T> functionWithinGroup(String name, Class<T> type, JpaOrder order, JpaPredicate filter, JpaWindow window, Expression<?>... args)
Description copied from interface:HibernateCriteriaBuilder
Create a generic ordered set-aggregate function expression.- Specified by:
functionWithinGroup
in interfaceHibernateCriteriaBuilder
- 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
-
-