Top Description Methods
javax.persistence.criteria

public Interface CommonAbstractCriteria

Known Direct Subinterfaces
javax.persistence.criteria.CriteriaDelete, javax.persistence.criteria.CriteriaUpdate, javax.persistence.criteria.AbstractQuery

The CommonAbstractCriteria interface defines functionality that is common to both top-level criteria queries and subqueries as well as to update and delete criteria operations. It is not intended to be used directly in query construction.

Note that criteria queries and criteria update and delete operations are typed differently. Criteria queries are typed according to the query result type. Update and delete operations are typed according to the target of the update or delete.

Since
Java Persistence 2.1

Method Summary

Modifier and TypeMethod and Description
public Predicate

Returns:

where clause predicate
getRestriction
()

Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.

public <U> Subquery<U>

Returns:

subquery
subquery
(Class<U>
the subquery result type
type
)

Create a subquery of the query.

Method Detail

getRestrictionback to summary
public Predicate getRestriction()

Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.

Returns:Predicate

where clause predicate

subqueryback to summary
public <U> Subquery<U> subquery(Class<U> type)

Create a subquery of the query.

Parameters
type:Class<U>

the subquery result type

Returns:Subquery<U>

subquery