About CriteriaQuery

31-40 of 85Refresh
JPA Doc
12

javax.persistence.EntityManager

database. Since: JPA 1.0 See Also: Query TypedQuery CriteriaQuery PersistenceContext Learn how to use ... ( CriteriaQuery criteriaQuery) Create an instance of TypedQuery for executing a criteria query. Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query
JPA Doc
7

createQuery()

Method javax.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery() Create a CriteriaQuery object. Returns: criteria query object Since: JPA 2.0
JPA Doc
7

createQuery(resultClass)

Method javax.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery(   Class resultClass ) Create a CriteriaQuery object with the specified result type. Parameters: resultClass - type of the query result Returns: criteria query object Since: JPA 2.0
JPA Doc
7

createTupleQuery()

Method javax.persistence.criteria.CriteriaBuilder CriteriaQuery createTupleQuery() Create a CriteriaQuery object that returns a tuple of objects as its result. Returns: criteria query object Since: JPA 2.0
JPA Doc
7

get(attributeName)

. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from ... "))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); Path > nicknames = p
JPA Doc
7

javax.persistence.criteria.AbstractQuery

javax.persistence.criteria Interface AbstractQuery Subinterfaces: CriteriaQuery, Subquery The AbstractQuery interface defines functionality that is common to both top-level queries and subqueries ... for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result
JPA Doc
7

javax.persistence.criteria.CollectionJoin

. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q ... "))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); Path > nicknames = p
JPA Doc
7

javax.persistence.criteria.From

to avoid the use of Path variables. For example: CriteriaQuery q = cb ... . >get("nicknames"))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from
JPA Doc
7

javax.persistence.criteria.Join

the get operation in order to avoid the use of Path variables. For example: CriteriaQuery ... ) .where(cb.isMember("joe", p. >get("nicknames"))); rather than: CriteriaQuery q = cb.createQuery
JPA Doc
7

javax.persistence.criteria.ListJoin

the get operation in order to avoid the use of Path variables. For example: CriteriaQuery ... .select(p) .where(cb.isMember("joe", p. >get("nicknames"))); rather than: CriteriaQuery q = cb.createQuery