public interface OpenJPACriteriaBuilder
extends javax.persistence.criteria.CriteriaBuilder
javax.persistence.criteria.CriteriaBuilder.Case<R>, javax.persistence.criteria.CriteriaBuilder.Coalesce<T>, javax.persistence.criteria.CriteriaBuilder.In<T>, javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>, javax.persistence.criteria.CriteriaBuilder.Trimspec
Modifier and Type | Field and Description |
---|---|
static String |
LANG_CRITERIA
The mnemonic to identify the query language.
|
Modifier and Type | Method and Description |
---|---|
OpenJPACriteriaQuery<Object> |
createQuery()
Create a
CriteriaQuery object. |
<T> OpenJPACriteriaQuery<T> |
createQuery(Class<T> resultClass)
Create a
CriteriaQuery object with the specified result
type. |
OpenJPACriteriaQuery<javax.persistence.Tuple> |
createTupleQuery()
Create a
CriteriaQuery object that returns a tuple of
objects as its result. |
javax.persistence.metamodel.Metamodel |
getMetamodel()
Gets the metamodel for the managed, persistent domain entities.
|
<T> javax.persistence.criteria.Predicate |
qbe(javax.persistence.criteria.From<?,T> from,
T example)
Overloaded with default comparison style and no extra attribute to exclude.
|
<T> javax.persistence.criteria.Predicate |
qbe(javax.persistence.criteria.From<?,T> from,
T example,
javax.persistence.metamodel.Attribute<?,?>... excludes)
Overloaded with default comparison style.
|
<T> javax.persistence.criteria.Predicate |
qbe(javax.persistence.criteria.From<?,T> from,
T example,
ComparisonStyle style)
Overloaded with no extra attribute to exclude.
|
<T> javax.persistence.criteria.Predicate |
qbe(javax.persistence.criteria.From<?,T> from,
T example,
ComparisonStyle style,
javax.persistence.metamodel.Attribute<?,?>... excludes)
Create a predicate based upon the attribute values of a given
"example" entity instance.
|
ComparisonStyle |
qbeStyle()
Create a mutable style to apply on query-by-example.
|
abs, all, and, and, any, array, asc, avg, between, between, coalesce, coalesce, coalesce, concat, concat, concat, conjunction, construct, count, countDistinct, createCriteriaDelete, createCriteriaUpdate, currentDate, currentTime, currentTimestamp, desc, diff, diff, diff, disjunction, equal, equal, exists, function, ge, ge, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, in, isEmpty, isFalse, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, le, le, least, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, literal, locate, locate, locate, locate, lower, lt, lt, max, min, mod, mod, mod, neg, not, notEqual, notEqual, notLike, notLike, notLike, notLike, notLike, notLike, nullif, nullif, nullLiteral, or, or, parameter, parameter, prod, prod, prod, quot, quot, quot, selectCase, selectCase, size, size, some, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sumAsDouble, sumAsLong, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, tuple, upper, values
static final String LANG_CRITERIA
<T> javax.persistence.criteria.Predicate qbe(javax.persistence.criteria.From<?,T> from, T example, ComparisonStyle style, javax.persistence.metamodel.Attribute<?,?>... excludes)
example
- a non-null instance of a persistent entity.style
- 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. Can be null to designate default comparison style.excludes
- list of attributes that are excluded from comparison.
Can be null.<T> javax.persistence.criteria.Predicate qbe(javax.persistence.criteria.From<?,T> from, T example, ComparisonStyle style)
<T> javax.persistence.criteria.Predicate qbe(javax.persistence.criteria.From<?,T> from, T example, javax.persistence.metamodel.Attribute<?,?>... excludes)
<T> javax.persistence.criteria.Predicate qbe(javax.persistence.criteria.From<?,T> from, T example)
ComparisonStyle qbeStyle()
javax.persistence.metamodel.Metamodel getMetamodel()
OpenJPACriteriaQuery<Object> createQuery()
CriteriaQuery
object.createQuery
in interface javax.persistence.criteria.CriteriaBuilder
<T> OpenJPACriteriaQuery<T> createQuery(Class<T> resultClass)
CriteriaQuery
object with the specified result
type.createQuery
in interface javax.persistence.criteria.CriteriaBuilder
resultClass
- type of the query resultOpenJPACriteriaQuery<javax.persistence.Tuple> createTupleQuery()
CriteriaQuery
object that returns a tuple of
objects as its result.createTupleQuery
in interface javax.persistence.criteria.CriteriaBuilder
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.