Class CriteriaBuilderImpl
- java.lang.Object
-
- org.apache.openjpa.persistence.criteria.CriteriaBuilderImpl
-
- All Implemented Interfaces:
jakarta.persistence.criteria.CriteriaBuilder
,java.io.Serializable
,ExpressionParser
,OpenJPACriteriaBuilder
public class CriteriaBuilderImpl extends java.lang.Object implements OpenJPACriteriaBuilder, ExpressionParser
Factory for Criteria query expressions. Acts as an adapter to OpenJPA ExpressionFactory.- Since:
- 2.0.0
- Author:
- Pinaki Poddar, Fay Wang
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder
jakarta.persistence.criteria.CriteriaBuilder.Case<R extends java.lang.Object>, jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T extends java.lang.Object>, jakarta.persistence.criteria.CriteriaBuilder.In<T extends java.lang.Object>, jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C extends java.lang.Object,R extends java.lang.Object>, jakarta.persistence.criteria.CriteriaBuilder.Trimspec
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.persistence.criteria.OpenJPACriteriaBuilder
LANG_CRITERIA
-
-
Constructor Summary
Constructors Constructor Description CriteriaBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>abs(jakarta.persistence.criteria.Expression<N> x)
<Y> jakarta.persistence.criteria.Expression<Y>
all(jakarta.persistence.criteria.Subquery<Y> subquery)
jakarta.persistence.criteria.Predicate
and(jakarta.persistence.criteria.Expression<java.lang.Boolean> x, jakarta.persistence.criteria.Expression<java.lang.Boolean> y)
jakarta.persistence.criteria.Predicate
and(jakarta.persistence.criteria.Predicate... restrictions)
<Y> jakarta.persistence.criteria.Expression<Y>
any(jakarta.persistence.criteria.Subquery<Y> subquery)
jakarta.persistence.criteria.CompoundSelection<java.lang.Object[]>
array(jakarta.persistence.criteria.Selection<?>... terms)
jakarta.persistence.criteria.Order
asc(jakarta.persistence.criteria.Expression<?> x)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<java.lang.Double>avg(jakarta.persistence.criteria.Expression<N> x)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.Predicatebetween(jakarta.persistence.criteria.Expression<? extends Y> v, jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.Predicatebetween(jakarta.persistence.criteria.Expression<? extends Y> v, Y x, Y y)
<T> jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T>
coalesce()
<Y> jakarta.persistence.criteria.Expression<Y>
coalesce(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y> jakarta.persistence.criteria.Expression<Y>
coalesce(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
jakarta.persistence.criteria.Expression<java.lang.String>
concat(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> y)
jakarta.persistence.criteria.Expression<java.lang.String>
concat(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String y)
jakarta.persistence.criteria.Expression<java.lang.String>
concat(java.lang.String x, jakarta.persistence.criteria.Expression<java.lang.String> y)
jakarta.persistence.criteria.Predicate
conjunction()
<Y> jakarta.persistence.criteria.CompoundSelection<Y>
construct(java.lang.Class<Y> result, jakarta.persistence.criteria.Selection<?>... selections)
Define a select list item corresponding to a constructor.jakarta.persistence.criteria.Expression<java.lang.Long>
count(jakarta.persistence.criteria.Expression<?> x)
jakarta.persistence.criteria.Expression<java.lang.Long>
countDistinct(jakarta.persistence.criteria.Expression<?> x)
<T> jakarta.persistence.criteria.CriteriaDelete<T>
createCriteriaDelete(java.lang.Class<T> targetEntity)
<T> jakarta.persistence.criteria.CriteriaUpdate<T>
createCriteriaUpdate(java.lang.Class<T> targetEntity)
OpenJPACriteriaQuery<java.lang.Object>
createQuery()
Create aCriteriaQuery
object.<T> OpenJPACriteriaQuery<T>
createQuery(java.lang.Class<T> resultClass)
Create a Criteria query object with the specified result type.OpenJPACriteriaQuery<jakarta.persistence.Tuple>
createTupleQuery()
Create a Criteria query object that returns a tuple of objects as its result.jakarta.persistence.criteria.Expression<java.sql.Date>
currentDate()
jakarta.persistence.criteria.Expression<java.sql.Time>
currentTime()
jakarta.persistence.criteria.Expression<java.sql.Timestamp>
currentTimestamp()
jakarta.persistence.criteria.Order
desc(jakarta.persistence.criteria.Expression<?> x)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>diff(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>diff(jakarta.persistence.criteria.Expression<? extends N> x, N y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>diff(N x, jakarta.persistence.criteria.Expression<? extends N> y)
jakarta.persistence.criteria.Predicate
disjunction()
jakarta.persistence.criteria.Predicate
equal(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y)
jakarta.persistence.criteria.Predicate
equal(jakarta.persistence.criteria.Expression<?> x, java.lang.Object y)
QueryExpressions
eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given query string.Value[]
eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given value clauses.jakarta.persistence.criteria.Predicate
exists(jakarta.persistence.criteria.Subquery<?> subquery)
<T> jakarta.persistence.criteria.Expression<T>
function(java.lang.String name, java.lang.Class<T> type, jakarta.persistence.criteria.Expression<?>... args)
jakarta.persistence.criteria.Predicate
ge(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
jakarta.persistence.criteria.Predicate
ge(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
java.lang.String
getLanguage()
Return a string key describing the language that this instance parses.jakarta.persistence.metamodel.Metamodel
getMetamodel()
Gets the metamodel for the managed, persistent domain entities.<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
<X extends java.lang.Comparable<? super X>>
jakarta.persistence.criteria.Expression<X>greatest(jakarta.persistence.criteria.Expression<X> x)
jakarta.persistence.criteria.Predicate
gt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
jakarta.persistence.criteria.Predicate
gt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
<T> jakarta.persistence.criteria.CriteriaBuilder.In<T>
in(jakarta.persistence.criteria.Expression<? extends T> expression)
<C extends java.util.Collection<?>>
jakarta.persistence.criteria.PredicateisEmpty(jakarta.persistence.criteria.Expression<C> collection)
jakarta.persistence.criteria.Predicate
isFalse(jakarta.persistence.criteria.Expression<java.lang.Boolean> x)
<E,C extends java.util.Collection<E>>
jakarta.persistence.criteria.PredicateisMember(E e, jakarta.persistence.criteria.Expression<C> c)
<E,C extends java.util.Collection<E>>
jakarta.persistence.criteria.PredicateisMember(jakarta.persistence.criteria.Expression<E> e, jakarta.persistence.criteria.Expression<C> c)
<C extends java.util.Collection<?>>
jakarta.persistence.criteria.PredicateisNotEmpty(jakarta.persistence.criteria.Expression<C> collection)
<E,C extends java.util.Collection<E>>
jakarta.persistence.criteria.PredicateisNotMember(E e, jakarta.persistence.criteria.Expression<C> c)
<E,C extends java.util.Collection<E>>
jakarta.persistence.criteria.PredicateisNotMember(jakarta.persistence.criteria.Expression<E> e, jakarta.persistence.criteria.Expression<C> c)
jakarta.persistence.criteria.Predicate
isNotNull(jakarta.persistence.criteria.Expression<?> x)
jakarta.persistence.criteria.Predicate
isNull(jakarta.persistence.criteria.Expression<?> x)
jakarta.persistence.criteria.Predicate
isTrue(jakarta.persistence.criteria.Expression<java.lang.Boolean> x)
<K,M extends java.util.Map<K,?>>
jakarta.persistence.criteria.Expression<java.util.Set<K>>keys(M map)
jakarta.persistence.criteria.Predicate
le(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
jakarta.persistence.criteria.Predicate
le(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
<X extends java.lang.Comparable<? super X>>
jakarta.persistence.criteria.Expression<X>least(jakarta.persistence.criteria.Expression<X> x)
jakarta.persistence.criteria.Expression<java.lang.Integer>
length(jakarta.persistence.criteria.Expression<java.lang.String> x)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
<Y extends java.lang.Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, char escapeChar)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
jakarta.persistence.criteria.Predicate
like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
<T> jakarta.persistence.criteria.Expression<T>
literal(T value)
jakarta.persistence.criteria.Expression<java.lang.Integer>
locate(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
jakarta.persistence.criteria.Expression<java.lang.Integer>
locate(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Integer> from)
jakarta.persistence.criteria.Expression<java.lang.Integer>
locate(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
jakarta.persistence.criteria.Expression<java.lang.Integer>
locate(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, int from)
jakarta.persistence.criteria.Expression<java.lang.String>
lower(jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Predicate
lt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
jakarta.persistence.criteria.Predicate
lt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>max(jakarta.persistence.criteria.Expression<N> x)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>min(jakarta.persistence.criteria.Expression<N> x)
jakarta.persistence.criteria.Expression<java.lang.Integer>
mod(jakarta.persistence.criteria.Expression<java.lang.Integer> x, jakarta.persistence.criteria.Expression<java.lang.Integer> y)
jakarta.persistence.criteria.Expression<java.lang.Integer>
mod(jakarta.persistence.criteria.Expression<java.lang.Integer> x, java.lang.Integer y)
jakarta.persistence.criteria.Expression<java.lang.Integer>
mod(java.lang.Integer x, jakarta.persistence.criteria.Expression<java.lang.Integer> y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>neg(jakarta.persistence.criteria.Expression<N> x)
jakarta.persistence.criteria.Predicate
not(jakarta.persistence.criteria.Expression<java.lang.Boolean> restriction)
jakarta.persistence.criteria.Predicate
notEqual(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y)
jakarta.persistence.criteria.Predicate
notEqual(jakarta.persistence.criteria.Expression<?> x, java.lang.Object y)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, char escapeChar)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
jakarta.persistence.criteria.Predicate
notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
<Y> jakarta.persistence.criteria.Expression<Y>
nullif(jakarta.persistence.criteria.Expression<Y> x, jakarta.persistence.criteria.Expression<?> y)
<Y> jakarta.persistence.criteria.Expression<Y>
nullif(jakarta.persistence.criteria.Expression<Y> x, Y y)
<T> jakarta.persistence.criteria.Expression<T>
nullLiteral(java.lang.Class<T> t)
jakarta.persistence.criteria.Predicate
or(jakarta.persistence.criteria.Expression<java.lang.Boolean> x, jakarta.persistence.criteria.Expression<java.lang.Boolean> y)
jakarta.persistence.criteria.Predicate
or(jakarta.persistence.criteria.Predicate... restrictions)
<T> jakarta.persistence.criteria.ParameterExpression<T>
parameter(java.lang.Class<T> paramClass)
Construct a ParameterExpression with a null name as key.<T> jakarta.persistence.criteria.ParameterExpression<T>
parameter(java.lang.Class<T> paramClass, java.lang.String name)
java.lang.Object
parse(java.lang.String ql, ExpressionStoreQuery query)
Return a parsed intermediate form of the given query string.void
populate(java.lang.Object parsed, ExpressionStoreQuery query)
Use the parsed query form to set information such as candidate type, result type, etc that was encoded in the query string.<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>prod(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>prod(jakarta.persistence.criteria.Expression<? extends N> x, N y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>prod(N x, jakarta.persistence.criteria.Expression<? extends N> y)
<T> jakarta.persistence.criteria.Predicate
qbe(jakarta.persistence.criteria.From<?,T> from, T example)
Overloaded with default comparison style and no extra attribute to exclude.<T> jakarta.persistence.criteria.Predicate
qbe(jakarta.persistence.criteria.From<?,T> from, T example, jakarta.persistence.metamodel.Attribute<?,?>... excludes)
Overloaded with default comparison style.<T> jakarta.persistence.criteria.Predicate
qbe(jakarta.persistence.criteria.From<?,T> from, T example, ComparisonStyle style)
Overloaded with no extra attribute to exclude.<T> jakarta.persistence.criteria.Predicate
qbe(jakarta.persistence.criteria.From<?,T> from, T example, ComparisonStyle style, jakarta.persistence.metamodel.Attribute<?,?>... excludes)
Create a predicate based upon the attribute values of a given "example" entity instance.ComparisonStyle
qbeStyle()
Create a style to tune different aspects of comparison by example.jakarta.persistence.criteria.Expression<java.lang.Number>
quot(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
jakarta.persistence.criteria.Expression<java.lang.Number>
quot(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
jakarta.persistence.criteria.Expression<java.lang.Number>
quot(java.lang.Number x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
<R> jakarta.persistence.criteria.CriteriaBuilder.Case<R>
selectCase()
<C,R>
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>selectCase(jakarta.persistence.criteria.Expression<? extends C> expression)
OpenJPACriteriaBuilder
setMetaModel(MetamodelImpl model)
<C extends java.util.Collection<?>>
jakarta.persistence.criteria.Expression<java.lang.Integer>size(C collection)
<C extends java.util.Collection<?>>
jakarta.persistence.criteria.Expression<java.lang.Integer>size(jakarta.persistence.criteria.Expression<C> collection)
<Y> jakarta.persistence.criteria.Expression<Y>
some(jakarta.persistence.criteria.Subquery<Y> subquery)
jakarta.persistence.criteria.Expression<java.lang.Double>
sqrt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x)
jakarta.persistence.criteria.Expression<java.lang.String>
substring(jakarta.persistence.criteria.Expression<java.lang.String> x, int from)
jakarta.persistence.criteria.Expression<java.lang.String>
substring(jakarta.persistence.criteria.Expression<java.lang.String> x, int from, int len)
jakarta.persistence.criteria.Expression<java.lang.String>
substring(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.Integer> from)
jakarta.persistence.criteria.Expression<java.lang.String>
substring(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.Integer> from, jakarta.persistence.criteria.Expression<java.lang.Integer> len)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>sum(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>sum(jakarta.persistence.criteria.Expression<? extends N> x, N y)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>sum(jakarta.persistence.criteria.Expression<N> x)
<N extends java.lang.Number>
jakarta.persistence.criteria.Expression<N>sum(N x, jakarta.persistence.criteria.Expression<? extends N> y)
jakarta.persistence.criteria.Expression<java.lang.Double>
sumAsDouble(jakarta.persistence.criteria.Expression<java.lang.Float> x)
jakarta.persistence.criteria.Expression<java.lang.Long>
sumAsLong(jakarta.persistence.criteria.Expression<java.lang.Integer> x)
jakarta.persistence.criteria.Expression<java.math.BigDecimal>
toBigDecimal(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.math.BigInteger>
toBigInteger(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.lang.Double>
toDouble(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.lang.Float>
toFloat(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.lang.Integer>
toInteger(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.lang.Long>
toLong(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
jakarta.persistence.criteria.Expression<java.lang.String>
toString(jakarta.persistence.criteria.Expression<java.lang.Character> character)
<X,T,E extends T>
jakarta.persistence.criteria.CollectionJoin<X,E>treat(jakarta.persistence.criteria.CollectionJoin<X,T> join, java.lang.Class<E> type)
<X,T,V extends T>
jakarta.persistence.criteria.Join<X,V>treat(jakarta.persistence.criteria.Join<X,T> join, java.lang.Class<V> type)
<X,T,E extends T>
jakarta.persistence.criteria.ListJoin<X,E>treat(jakarta.persistence.criteria.ListJoin<X,T> join, java.lang.Class<E> type)
<X,K,T,V extends T>
jakarta.persistence.criteria.MapJoin<X,K,V>treat(jakarta.persistence.criteria.MapJoin<X,K,T> join, java.lang.Class<V> type)
<X,T extends X>
jakarta.persistence.criteria.Path<T>treat(jakarta.persistence.criteria.Path<X> path, java.lang.Class<T> type)
<X,T extends X>
jakarta.persistence.criteria.Root<T>treat(jakarta.persistence.criteria.Root<X> root, java.lang.Class<T> type)
<X,T,E extends T>
jakarta.persistence.criteria.SetJoin<X,E>treat(jakarta.persistence.criteria.SetJoin<X,T> join, java.lang.Class<E> type)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(char t, jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, char t, jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, jakarta.persistence.criteria.Expression<java.lang.Character> t, jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(jakarta.persistence.criteria.Expression<java.lang.Character> t, jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.Expression<java.lang.String>
trim(jakarta.persistence.criteria.Expression<java.lang.String> x)
jakarta.persistence.criteria.CompoundSelection<jakarta.persistence.Tuple>
tuple(jakarta.persistence.criteria.Selection<?>... selections)
Define a tuple-valued selection itemjakarta.persistence.criteria.Expression<java.lang.String>
upper(jakarta.persistence.criteria.Expression<java.lang.String> x)
<V,M extends java.util.Map<?,V>>
jakarta.persistence.criteria.Expression<java.util.Collection<V>>values(M map)
-
-
-
Method Detail
-
setMetaModel
public OpenJPACriteriaBuilder setMetaModel(MetamodelImpl model)
-
getMetamodel
public jakarta.persistence.metamodel.Metamodel getMetamodel()
Description copied from interface:OpenJPACriteriaBuilder
Gets the metamodel for the managed, persistent domain entities.- Specified by:
getMetamodel
in interfaceOpenJPACriteriaBuilder
-
eval
public QueryExpressions eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Description copied from interface:ExpressionParser
Parse the given query string.- Specified by:
eval
in interfaceExpressionParser
-
eval
public Value[] eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Description copied from interface:ExpressionParser
Parse the given value clauses.- Specified by:
eval
in interfaceExpressionParser
-
getLanguage
public java.lang.String getLanguage()
Description copied from interface:ExpressionParser
Return a string key describing the language that this instance parses.- Specified by:
getLanguage
in interfaceExpressionParser
-
createQuery
public <T> OpenJPACriteriaQuery<T> createQuery(java.lang.Class<T> resultClass)
Create a Criteria query object with the specified result type.- Specified by:
createQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createQuery
in interfaceOpenJPACriteriaBuilder
- Parameters:
resultClass
- type of the query result- Returns:
- query object
-
createTupleQuery
public OpenJPACriteriaQuery<jakarta.persistence.Tuple> createTupleQuery()
Create a Criteria query object that returns a tuple of objects as its result.- Specified by:
createTupleQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createTupleQuery
in interfaceOpenJPACriteriaBuilder
- Returns:
- query object
-
createCriteriaUpdate
public <T> jakarta.persistence.criteria.CriteriaUpdate<T> createCriteriaUpdate(java.lang.Class<T> targetEntity)
- Specified by:
createCriteriaUpdate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
createCriteriaDelete
public <T> jakarta.persistence.criteria.CriteriaDelete<T> createCriteriaDelete(java.lang.Class<T> targetEntity)
- Specified by:
createCriteriaDelete
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
parse
public java.lang.Object parse(java.lang.String ql, ExpressionStoreQuery query)
Description copied from interface:ExpressionParser
Return a parsed intermediate form of the given query string.- Specified by:
parse
in interfaceExpressionParser
-
populate
public void populate(java.lang.Object parsed, ExpressionStoreQuery query)
Description copied from interface:ExpressionParser
Use the parsed query form to set information such as candidate type, result type, etc that was encoded in the query string.- Specified by:
populate
in interfaceExpressionParser
-
abs
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> abs(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
abs
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
all
public <Y> jakarta.persistence.criteria.Expression<Y> all(jakarta.persistence.criteria.Subquery<Y> subquery)
- Specified by:
all
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
and
public jakarta.persistence.criteria.Predicate and(jakarta.persistence.criteria.Predicate... restrictions)
- Specified by:
and
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
and
public jakarta.persistence.criteria.Predicate and(jakarta.persistence.criteria.Expression<java.lang.Boolean> x, jakarta.persistence.criteria.Expression<java.lang.Boolean> y)
- Specified by:
and
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
any
public <Y> jakarta.persistence.criteria.Expression<Y> any(jakarta.persistence.criteria.Subquery<Y> subquery)
- Specified by:
any
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
asc
public jakarta.persistence.criteria.Order asc(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
asc
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
avg
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<java.lang.Double> avg(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
avg
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
between
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate between(jakarta.persistence.criteria.Expression<? extends Y> v, jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
between
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
between
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate between(jakarta.persistence.criteria.Expression<? extends Y> v, Y x, Y y)
- Specified by:
between
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
coalesce
public <T> jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T> coalesce()
- Specified by:
coalesce
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
coalesce
public <Y> jakarta.persistence.criteria.Expression<Y> coalesce(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
coalesce
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
coalesce
public <Y> jakarta.persistence.criteria.Expression<Y> coalesce(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
- Specified by:
coalesce
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
concat
public jakarta.persistence.criteria.Expression<java.lang.String> concat(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> y)
- Specified by:
concat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
concat
public jakarta.persistence.criteria.Expression<java.lang.String> concat(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String y)
- Specified by:
concat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
concat
public jakarta.persistence.criteria.Expression<java.lang.String> concat(java.lang.String x, jakarta.persistence.criteria.Expression<java.lang.String> y)
- Specified by:
concat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
conjunction
public jakarta.persistence.criteria.Predicate conjunction()
- Specified by:
conjunction
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
count
public jakarta.persistence.criteria.Expression<java.lang.Long> count(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
count
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
countDistinct
public jakarta.persistence.criteria.Expression<java.lang.Long> countDistinct(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
countDistinct
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
createQuery
public OpenJPACriteriaQuery<java.lang.Object> createQuery()
Description copied from interface:OpenJPACriteriaBuilder
Create aCriteriaQuery
object.- Specified by:
createQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createQuery
in interfaceOpenJPACriteriaBuilder
- Returns:
- criteria query object
-
currentDate
public jakarta.persistence.criteria.Expression<java.sql.Date> currentDate()
- Specified by:
currentDate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
currentTime
public jakarta.persistence.criteria.Expression<java.sql.Time> currentTime()
- Specified by:
currentTime
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
currentTimestamp
public jakarta.persistence.criteria.Expression<java.sql.Timestamp> currentTimestamp()
- Specified by:
currentTimestamp
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
desc
public jakarta.persistence.criteria.Order desc(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
desc
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
diff
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> diff(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
diff
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
diff
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> diff(jakarta.persistence.criteria.Expression<? extends N> x, N y)
- Specified by:
diff
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
diff
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> diff(N x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
diff
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
disjunction
public jakarta.persistence.criteria.Predicate disjunction()
- Specified by:
disjunction
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
equal
public jakarta.persistence.criteria.Predicate equal(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y)
- Specified by:
equal
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
equal
public jakarta.persistence.criteria.Predicate equal(jakarta.persistence.criteria.Expression<?> x, java.lang.Object y)
- Specified by:
equal
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
exists
public jakarta.persistence.criteria.Predicate exists(jakarta.persistence.criteria.Subquery<?> subquery)
- Specified by:
exists
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
function
public <T> jakarta.persistence.criteria.Expression<T> function(java.lang.String name, java.lang.Class<T> type, jakarta.persistence.criteria.Expression<?>... args)
- Specified by:
function
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T,V extends T> jakarta.persistence.criteria.Join<X,V> treat(jakarta.persistence.criteria.Join<X,T> join, java.lang.Class<V> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T,E extends T> jakarta.persistence.criteria.CollectionJoin<X,E> treat(jakarta.persistence.criteria.CollectionJoin<X,T> join, java.lang.Class<E> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T,E extends T> jakarta.persistence.criteria.SetJoin<X,E> treat(jakarta.persistence.criteria.SetJoin<X,T> join, java.lang.Class<E> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T,E extends T> jakarta.persistence.criteria.ListJoin<X,E> treat(jakarta.persistence.criteria.ListJoin<X,T> join, java.lang.Class<E> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,K,T,V extends T> jakarta.persistence.criteria.MapJoin<X,K,V> treat(jakarta.persistence.criteria.MapJoin<X,K,T> join, java.lang.Class<V> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T extends X> jakarta.persistence.criteria.Path<T> treat(jakarta.persistence.criteria.Path<X> path, java.lang.Class<T> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
treat
public <X,T extends X> jakarta.persistence.criteria.Root<T> treat(jakarta.persistence.criteria.Root<X> root, java.lang.Class<T> type)
- Specified by:
treat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
ge
public jakarta.persistence.criteria.Predicate ge(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
ge
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
ge
public jakarta.persistence.criteria.Predicate ge(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
- Specified by:
ge
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
greaterThan
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
greaterThan
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
greaterThan
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
- Specified by:
greaterThan
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
greaterThanOrEqualTo
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
greaterThanOrEqualTo
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
greaterThanOrEqualTo
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
- Specified by:
greaterThanOrEqualTo
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
greatest
public <X extends java.lang.Comparable<? super X>> jakarta.persistence.criteria.Expression<X> greatest(jakarta.persistence.criteria.Expression<X> x)
- Specified by:
greatest
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
gt
public jakarta.persistence.criteria.Predicate gt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
gt
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
gt
public jakarta.persistence.criteria.Predicate gt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
- Specified by:
gt
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
in
public <T> jakarta.persistence.criteria.CriteriaBuilder.In<T> in(jakarta.persistence.criteria.Expression<? extends T> expression)
- Specified by:
in
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isEmpty
public <C extends java.util.Collection<?>> jakarta.persistence.criteria.Predicate isEmpty(jakarta.persistence.criteria.Expression<C> collection)
- Specified by:
isEmpty
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isFalse
public jakarta.persistence.criteria.Predicate isFalse(jakarta.persistence.criteria.Expression<java.lang.Boolean> x)
- Specified by:
isFalse
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isMember
public <E,C extends java.util.Collection<E>> jakarta.persistence.criteria.Predicate isMember(E e, jakarta.persistence.criteria.Expression<C> c)
- Specified by:
isMember
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isMember
public <E,C extends java.util.Collection<E>> jakarta.persistence.criteria.Predicate isMember(jakarta.persistence.criteria.Expression<E> e, jakarta.persistence.criteria.Expression<C> c)
- Specified by:
isMember
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isNotEmpty
public <C extends java.util.Collection<?>> jakarta.persistence.criteria.Predicate isNotEmpty(jakarta.persistence.criteria.Expression<C> collection)
- Specified by:
isNotEmpty
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isNotMember
public <E,C extends java.util.Collection<E>> jakarta.persistence.criteria.Predicate isNotMember(E e, jakarta.persistence.criteria.Expression<C> c)
- Specified by:
isNotMember
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isNotMember
public <E,C extends java.util.Collection<E>> jakarta.persistence.criteria.Predicate isNotMember(jakarta.persistence.criteria.Expression<E> e, jakarta.persistence.criteria.Expression<C> c)
- Specified by:
isNotMember
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isTrue
public jakarta.persistence.criteria.Predicate isTrue(jakarta.persistence.criteria.Expression<java.lang.Boolean> x)
- Specified by:
isTrue
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
keys
public <K,M extends java.util.Map<K,?>> jakarta.persistence.criteria.Expression<java.util.Set<K>> keys(M map)
- Specified by:
keys
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
le
public jakarta.persistence.criteria.Predicate le(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
le
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
le
public jakarta.persistence.criteria.Predicate le(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
- Specified by:
le
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
least
public <X extends java.lang.Comparable<? super X>> jakarta.persistence.criteria.Expression<X> least(jakarta.persistence.criteria.Expression<X> x)
- Specified by:
least
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
length
public jakarta.persistence.criteria.Expression<java.lang.Integer> length(jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
length
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lessThan
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
lessThan
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lessThan
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
- Specified by:
lessThan
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lessThanOrEqualTo
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y)
- Specified by:
lessThanOrEqualTo
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lessThanOrEqualTo
public <Y extends java.lang.Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y)
- Specified by:
lessThanOrEqualTo
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, char escapeChar)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
like
public jakarta.persistence.criteria.Predicate like(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
- Specified by:
like
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
literal
public <T> jakarta.persistence.criteria.Expression<T> literal(T value)
- Specified by:
literal
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
locate
public jakarta.persistence.criteria.Expression<java.lang.Integer> locate(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
- Specified by:
locate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
locate
public jakarta.persistence.criteria.Expression<java.lang.Integer> locate(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
- Specified by:
locate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
locate
public jakarta.persistence.criteria.Expression<java.lang.Integer> locate(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Integer> from)
- Specified by:
locate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
locate
public jakarta.persistence.criteria.Expression<java.lang.Integer> locate(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, int from)
- Specified by:
locate
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lower
public jakarta.persistence.criteria.Expression<java.lang.String> lower(jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
lower
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lt
public jakarta.persistence.criteria.Predicate lt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
lt
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
lt
public jakarta.persistence.criteria.Predicate lt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
- Specified by:
lt
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
max
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> max(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
max
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
min
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> min(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
min
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
mod
public jakarta.persistence.criteria.Expression<java.lang.Integer> mod(jakarta.persistence.criteria.Expression<java.lang.Integer> x, jakarta.persistence.criteria.Expression<java.lang.Integer> y)
- Specified by:
mod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
mod
public jakarta.persistence.criteria.Expression<java.lang.Integer> mod(jakarta.persistence.criteria.Expression<java.lang.Integer> x, java.lang.Integer y)
- Specified by:
mod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
mod
public jakarta.persistence.criteria.Expression<java.lang.Integer> mod(java.lang.Integer x, jakarta.persistence.criteria.Expression<java.lang.Integer> y)
- Specified by:
mod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
neg
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> neg(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
neg
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
not
public jakarta.persistence.criteria.Predicate not(jakarta.persistence.criteria.Expression<java.lang.Boolean> restriction)
- Specified by:
not
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notEqual
public jakarta.persistence.criteria.Predicate notEqual(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y)
- Specified by:
notEqual
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notEqual
public jakarta.persistence.criteria.Predicate notEqual(jakarta.persistence.criteria.Expression<?> x, java.lang.Object y)
- Specified by:
notEqual
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.String> pattern, char escapeChar)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, jakarta.persistence.criteria.Expression<java.lang.Character> escapeChar)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
notLike
public jakarta.persistence.criteria.Predicate notLike(jakarta.persistence.criteria.Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
- Specified by:
notLike
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
nullif
public <Y> jakarta.persistence.criteria.Expression<Y> nullif(jakarta.persistence.criteria.Expression<Y> x, jakarta.persistence.criteria.Expression<?> y)
- Specified by:
nullif
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
nullif
public <Y> jakarta.persistence.criteria.Expression<Y> nullif(jakarta.persistence.criteria.Expression<Y> x, Y y)
- Specified by:
nullif
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
or
public jakarta.persistence.criteria.Predicate or(jakarta.persistence.criteria.Predicate... restrictions)
- Specified by:
or
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
or
public jakarta.persistence.criteria.Predicate or(jakarta.persistence.criteria.Expression<java.lang.Boolean> x, jakarta.persistence.criteria.Expression<java.lang.Boolean> y)
- Specified by:
or
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
parameter
public <T> jakarta.persistence.criteria.ParameterExpression<T> parameter(java.lang.Class<T> paramClass)
Construct a ParameterExpression with a null name as key. The name of this parameter will be assigned automatically when this parameter expression is registered in a Criteriaquery during tree traversal.- Specified by:
parameter
in interfacejakarta.persistence.criteria.CriteriaBuilder
- See Also:
ParameterExpressionImpl#assignAutoName(String)
-
parameter
public <T> jakarta.persistence.criteria.ParameterExpression<T> parameter(java.lang.Class<T> paramClass, java.lang.String name)
- Specified by:
parameter
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
prod
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> prod(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
prod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
prod
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> prod(jakarta.persistence.criteria.Expression<? extends N> x, N y)
- Specified by:
prod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
prod
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> prod(N x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
prod
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
quot
public jakarta.persistence.criteria.Expression<java.lang.Number> quot(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
quot
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
quot
public jakarta.persistence.criteria.Expression<java.lang.Number> quot(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x, java.lang.Number y)
- Specified by:
quot
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
quot
public jakarta.persistence.criteria.Expression<java.lang.Number> quot(java.lang.Number x, jakarta.persistence.criteria.Expression<? extends java.lang.Number> y)
- Specified by:
quot
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
construct
public <Y> jakarta.persistence.criteria.CompoundSelection<Y> construct(java.lang.Class<Y> result, jakarta.persistence.criteria.Selection<?>... selections)
Define a select list item corresponding to a constructor.- Specified by:
construct
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Parameters:
result
- class whose instance is to be constructedselections
- arguments to the constructor- Returns:
- selection item
-
selectCase
public <R> jakarta.persistence.criteria.CriteriaBuilder.Case<R> selectCase()
- Specified by:
selectCase
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
selectCase
public <C,R> jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> selectCase(jakarta.persistence.criteria.Expression<? extends C> expression)
- Specified by:
selectCase
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
size
public <C extends java.util.Collection<?>> jakarta.persistence.criteria.Expression<java.lang.Integer> size(C collection)
- Specified by:
size
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
size
public <C extends java.util.Collection<?>> jakarta.persistence.criteria.Expression<java.lang.Integer> size(jakarta.persistence.criteria.Expression<C> collection)
- Specified by:
size
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
some
public <Y> jakarta.persistence.criteria.Expression<Y> some(jakarta.persistence.criteria.Subquery<Y> subquery)
- Specified by:
some
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sqrt
public jakarta.persistence.criteria.Expression<java.lang.Double> sqrt(jakarta.persistence.criteria.Expression<? extends java.lang.Number> x)
- Specified by:
sqrt
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
substring
public jakarta.persistence.criteria.Expression<java.lang.String> substring(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.Integer> from)
- Specified by:
substring
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
substring
public jakarta.persistence.criteria.Expression<java.lang.String> substring(jakarta.persistence.criteria.Expression<java.lang.String> x, int from)
- Specified by:
substring
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
substring
public jakarta.persistence.criteria.Expression<java.lang.String> substring(jakarta.persistence.criteria.Expression<java.lang.String> x, jakarta.persistence.criteria.Expression<java.lang.Integer> from, jakarta.persistence.criteria.Expression<java.lang.Integer> len)
- Specified by:
substring
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
substring
public jakarta.persistence.criteria.Expression<java.lang.String> substring(jakarta.persistence.criteria.Expression<java.lang.String> x, int from, int len)
- Specified by:
substring
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sum
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> sum(jakarta.persistence.criteria.Expression<N> x)
- Specified by:
sum
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sum
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> sum(jakarta.persistence.criteria.Expression<? extends N> x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
sum
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sum
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> sum(jakarta.persistence.criteria.Expression<? extends N> x, N y)
- Specified by:
sum
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sum
public <N extends java.lang.Number> jakarta.persistence.criteria.Expression<N> sum(N x, jakarta.persistence.criteria.Expression<? extends N> y)
- Specified by:
sum
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sumAsLong
public jakarta.persistence.criteria.Expression<java.lang.Long> sumAsLong(jakarta.persistence.criteria.Expression<java.lang.Integer> x)
- Specified by:
sumAsLong
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
sumAsDouble
public jakarta.persistence.criteria.Expression<java.lang.Double> sumAsDouble(jakarta.persistence.criteria.Expression<java.lang.Float> x)
- Specified by:
sumAsDouble
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toBigDecimal
public jakarta.persistence.criteria.Expression<java.math.BigDecimal> toBigDecimal(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toBigDecimal
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toBigInteger
public jakarta.persistence.criteria.Expression<java.math.BigInteger> toBigInteger(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toBigInteger
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toDouble
public jakarta.persistence.criteria.Expression<java.lang.Double> toDouble(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toDouble
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toFloat
public jakarta.persistence.criteria.Expression<java.lang.Float> toFloat(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toFloat
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toInteger
public jakarta.persistence.criteria.Expression<java.lang.Integer> toInteger(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toInteger
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toLong
public jakarta.persistence.criteria.Expression<java.lang.Long> toLong(jakarta.persistence.criteria.Expression<? extends java.lang.Number> number)
- Specified by:
toLong
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
toString
public jakarta.persistence.criteria.Expression<java.lang.String> toString(jakarta.persistence.criteria.Expression<java.lang.Character> character)
- Specified by:
toString
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(jakarta.persistence.criteria.Expression<java.lang.Character> t, jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(char t, jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, jakarta.persistence.criteria.Expression<java.lang.Character> t, jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
trim
public jakarta.persistence.criteria.Expression<java.lang.String> trim(jakarta.persistence.criteria.CriteriaBuilder.Trimspec ts, char t, jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
trim
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
upper
public jakarta.persistence.criteria.Expression<java.lang.String> upper(jakarta.persistence.criteria.Expression<java.lang.String> x)
- Specified by:
upper
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
values
public <V,M extends java.util.Map<?,V>> jakarta.persistence.criteria.Expression<java.util.Collection<V>> values(M map)
- Specified by:
values
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
array
public jakarta.persistence.criteria.CompoundSelection<java.lang.Object[]> array(jakarta.persistence.criteria.Selection<?>... terms)
- Specified by:
array
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isNotNull
public jakarta.persistence.criteria.Predicate isNotNull(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
isNotNull
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
isNull
public jakarta.persistence.criteria.Predicate isNull(jakarta.persistence.criteria.Expression<?> x)
- Specified by:
isNull
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
nullLiteral
public <T> jakarta.persistence.criteria.Expression<T> nullLiteral(java.lang.Class<T> t)
- Specified by:
nullLiteral
in interfacejakarta.persistence.criteria.CriteriaBuilder
-
tuple
public jakarta.persistence.criteria.CompoundSelection<jakarta.persistence.Tuple> tuple(jakarta.persistence.criteria.Selection<?>... selections)
Define a tuple-valued selection item- Specified by:
tuple
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Parameters:
selections
- selection items- Returns:
- tuple-valued compound selection
- Throws:
java.lang.IllegalArgumentException
- if an argument is a tuple- or array-valued selection item
-
qbe
public <T> jakarta.persistence.criteria.Predicate qbe(jakarta.persistence.criteria.From<?,T> from, T example, ComparisonStyle style, jakarta.persistence.metamodel.Attribute<?,?>... excludes)
Create a predicate based upon the attribute values of a given "example" entity instance. The predicate is the conjunction or disjunction of predicates for subset of attribute of the entity.
By default, all the singular entity attributes (the basic, embedded and uni-cardinality relations) that have a non-null or non-default value for the example instance and are not an identity or version attribute are included. The comparable attributes can be further pruned by specifying variable list of attributes as the final argument.- Specified by:
qbe
in interfaceOpenJPACriteriaBuilder
- Parameters:
example
- an instance of an entity classstyle
- specifies various aspects of comparison such as whether non-null attribute values be included, how string-valued attribute be compared, whether the individual attribute based predicates are ANDed or ORed etc.excludes
- list of attributes that are excluded from comparison.- Returns:
- a predicate
-
qbe
public <T> jakarta.persistence.criteria.Predicate qbe(jakarta.persistence.criteria.From<?,T> from, T example, ComparisonStyle style)
Description copied from interface:OpenJPACriteriaBuilder
Overloaded with no extra attribute to exclude.- Specified by:
qbe
in interfaceOpenJPACriteriaBuilder
-
qbe
public <T> jakarta.persistence.criteria.Predicate qbe(jakarta.persistence.criteria.From<?,T> from, T example, jakarta.persistence.metamodel.Attribute<?,?>... excludes)
Description copied from interface:OpenJPACriteriaBuilder
Overloaded with default comparison style.- Specified by:
qbe
in interfaceOpenJPACriteriaBuilder
-
qbe
public <T> jakarta.persistence.criteria.Predicate qbe(jakarta.persistence.criteria.From<?,T> from, T example)
Description copied from interface:OpenJPACriteriaBuilder
Overloaded with default comparison style and no extra attribute to exclude.- Specified by:
qbe
in interfaceOpenJPACriteriaBuilder
-
qbeStyle
public ComparisonStyle qbeStyle()
Create a style to tune different aspects of comparison by example.- Specified by:
qbeStyle
in interfaceOpenJPACriteriaBuilder
-
-