|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OpenJPACriteriaBuilder
OpenJPA-specific extension to JPA 2.0 Criteria Query Builder API.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.persistence.criteria.CriteriaBuilder |
|---|
CriteriaBuilder.Case<R>, CriteriaBuilder.Coalesce<T>, CriteriaBuilder.In<T>, CriteriaBuilder.SimpleCase<C,R>, CriteriaBuilder.Trimspec |
| Field Summary | |
|---|---|
static String |
LANG_CRITERIA
The mnemonic to identify the query language. |
| Method Summary | ||
|---|---|---|
OpenJPACriteriaQuery<Object> |
createQuery()
Create a CriteriaQuery object. |
|
|
createQuery(Class<T> resultClass)
Create a CriteriaQuery object with the specified result
type. |
|
OpenJPACriteriaQuery<Tuple> |
createTupleQuery()
Create a CriteriaQuery object that returns a tuple of
objects as its result. |
|
Metamodel |
getMetamodel()
Gets the metamodel for the managed, persistent domain entities. |
|
|
qbe(From<?,T> from,
T example)
Overloaded with default comparison style and no extra attribute to exclude. |
|
|
qbe(From<?,T> from,
T example,
Attribute<?,?>... excludes)
Overloaded with default comparison style. |
|
|
qbe(From<?,T> from,
T example,
ComparisonStyle style)
Overloaded with no extra attribute to exclude. |
|
|
qbe(From<?,T> from,
T example,
ComparisonStyle style,
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. |
|
| Field Detail |
|---|
static final String LANG_CRITERIA
| Method Detail |
|---|
<T> Predicate qbe(From<?,T> from,
T example,
ComparisonStyle style,
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> Predicate qbe(From<?,T> from,
T example,
ComparisonStyle style)
<T> Predicate qbe(From<?,T> from,
T example,
Attribute<?,?>... excludes)
<T> Predicate qbe(From<?,T> from,
T example)
ComparisonStyle qbeStyle()
Metamodel getMetamodel()
OpenJPACriteriaQuery<Object> createQuery()
CriteriaQuery object.
createQuery in interface CriteriaBuilder<T> OpenJPACriteriaQuery<T> createQuery(Class<T> resultClass)
CriteriaQuery object with the specified result
type.
createQuery in interface CriteriaBuilderresultClass - type of the query result
OpenJPACriteriaQuery<Tuple> createTupleQuery()
CriteriaQuery object that returns a tuple of
objects as its result.
createTupleQuery in interface CriteriaBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||