E
- Entity type.public interface CriteriaSupport<E>
Modifier and Type | Method and Description |
---|---|
<N extends Number> |
abs(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.abs(javax.persistence.criteria.Expression)
over an attribute. |
<X> QuerySelection<E,X> |
attribute(javax.persistence.metamodel.SingularAttribute<? super E,X> attribute)
Create a query selection for an Entity attribute.
|
<N extends Number> |
avg(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.avg(javax.persistence.criteria.Expression)
over an attribute. |
QuerySelection<E,Long> |
count(javax.persistence.metamodel.SingularAttribute<? super E,?> attribute)
Create a query selection for the
CriteriaBuilder.count(javax.persistence.criteria.Expression)
over an attribute. |
QuerySelection<E,Long> |
countDistinct(javax.persistence.metamodel.SingularAttribute<? super E,?> attribute)
Create a query selection for the
CriteriaBuilder.countDistinct(javax.persistence.criteria.Expression)
over an attribute. |
Criteria<E,E> |
criteria()
Create a
Criteria instance. |
QuerySelection<E,Date> |
currDate()
Create a query selection for the
CriteriaBuilder.currentDate() . |
QuerySelection<E,Time> |
currTime()
Create a query selection for the
CriteriaBuilder.currentTime() . |
QuerySelection<E,Timestamp> |
currTStamp()
Create a query selection for the
CriteriaBuilder.currentTimestamp() . |
QuerySelection<E,String> |
lower(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
Create a query selection for the
CriteriaBuilder.lower(javax.persistence.criteria.Expression)
over a String attribute. |
<N extends Number> |
max(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.max(javax.persistence.criteria.Expression)
over an attribute. |
<N extends Number> |
min(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.min(javax.persistence.criteria.Expression)
over an attribute. |
QuerySelection<E,Integer> |
modulo(javax.persistence.metamodel.SingularAttribute<? super E,Integer> attribute,
Integer modulo)
Create a query selection for the
CriteriaBuilder.mod(javax.persistence.criteria.Expression, Integer)
for an attribute. |
<N extends Number> |
neg(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.neg(javax.persistence.criteria.Expression)
over an attribute. |
QuerySelection<E,String> |
substring(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute,
int from)
Create a query selection for the
CriteriaBuilder.substring(javax.persistence.criteria.Expression, int)
over a String attribute. |
QuerySelection<E,String> |
substring(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute,
int from,
int length)
Create a query selection for the
CriteriaBuilder.substring(javax.persistence.criteria.Expression, int, int)
over a String attribute. |
<N extends Number> |
sum(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
Create a query selection for the
CriteriaBuilder.sum(javax.persistence.criteria.Expression)
over an attribute. |
QuerySelection<E,String> |
trim(javax.persistence.criteria.CriteriaBuilder.Trimspec trimspec,
javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
Create a query selection for the
CriteriaBuilder.trim(javax.persistence.criteria.CriteriaBuilder.Trimspec,
javax.persistence.criteria.Expression)
over a String attribute. |
QuerySelection<E,String> |
trim(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
Create a query selection for the
CriteriaBuilder.trim(javax.persistence.criteria.Expression)
over a String attribute. |
QuerySelection<E,String> |
upper(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
Create a query selection for the
CriteriaBuilder.upper(javax.persistence.criteria.Expression)
over a String attribute. |
<T> Criteria<T,T> |
where(Class<T> clazz)
Create a
Criteria instance. |
<T> Criteria<T,T> |
where(Class<T> clazz,
javax.persistence.criteria.JoinType joinType)
Create a
Criteria instance with a join type. |
Criteria<E,E> criteria()
Criteria
instance.<T> Criteria<T,T> where(Class<T> clazz)
Criteria
instance.T
- Type related to the current criteria class.clazz
- Class other than the current entity class.<T> Criteria<T,T> where(Class<T> clazz, javax.persistence.criteria.JoinType joinType)
Criteria
instance with a join type.T
- Type related to the current criteria class.clazz
- Class other than the current entity class.joinType
- Join type to apply.<X> QuerySelection<E,X> attribute(javax.persistence.metamodel.SingularAttribute<? super E,X> attribute)
attribute
- Attribute to show up in the result selectionQuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> abs(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.abs(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> avg(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.avg(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Long> count(javax.persistence.metamodel.SingularAttribute<? super E,?> attribute)
CriteriaBuilder.count(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Long> countDistinct(javax.persistence.metamodel.SingularAttribute<? super E,?> attribute)
CriteriaBuilder.countDistinct(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> max(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.max(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> min(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.min(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> neg(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.neg(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.<N extends Number> QuerySelection<E,N> sum(javax.persistence.metamodel.SingularAttribute<? super E,N> attribute)
CriteriaBuilder.sum(javax.persistence.criteria.Expression)
over an attribute.attribute
- Attribute to use in the aggregate.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Integer> modulo(javax.persistence.metamodel.SingularAttribute<? super E,Integer> attribute, Integer modulo)
CriteriaBuilder.mod(javax.persistence.criteria.Expression, Integer)
for an attribute.attribute
- Attribute to use in the aggregate.modulo
- Modulo what.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> upper(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
CriteriaBuilder.upper(javax.persistence.criteria.Expression)
over a String attribute.attribute
- Attribute to uppercase.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> lower(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
CriteriaBuilder.lower(javax.persistence.criteria.Expression)
over a String attribute.attribute
- Attribute to lowercase.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> substring(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute, int from)
CriteriaBuilder.substring(javax.persistence.criteria.Expression, int)
over a String attribute.attribute
- Attribute to create a substring from.from
- Substring start.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> substring(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute, int from, int length)
CriteriaBuilder.substring(javax.persistence.criteria.Expression, int, int)
over a String attribute.attribute
- Attribute to create a substring from.from
- Substring start.length
- Substring length.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> trim(javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
CriteriaBuilder.trim(javax.persistence.criteria.Expression)
over a String attribute.attribute
- Attribute to apply trim.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,String> trim(javax.persistence.criteria.CriteriaBuilder.Trimspec trimspec, javax.persistence.metamodel.SingularAttribute<? super E,String> attribute)
CriteriaBuilder.trim(javax.persistence.criteria.CriteriaBuilder.Trimspec,
javax.persistence.criteria.Expression)
over a String attribute.trimspec
- Used to specify how strings are trimmed.attribute
- Attribute to apply trim.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Date> currDate()
CriteriaBuilder.currentDate()
.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Time> currTime()
CriteriaBuilder.currentTime()
.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.QuerySelection<E,Timestamp> currTStamp()
CriteriaBuilder.currentTimestamp()
.QuerySelection
part of a Criteria.select(Class, QuerySelection...)
call.Copyright © 2020 The Apache Software Foundation. All rights reserved.