ObjectDB Database Search
1-50 of 93 resultsjakarta.persistence.criteria.CriteriaQuery Jakarta Persistence (JPA) Interface jakarta.persistence.criteria. CriteriaQuery Type Parameters ... , CommonAbstractCriteria The CriteriaQuery interface defines functionality that is specific to top-level queries ... CriteriaQuery . Public Instance Methods CriteriaQuery distinct ( boolean distinct ) Specify whether duplicate | |
jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery ... : If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created by ... of the criteria query is CriteriaQuery for some user-defined class X (i.e., a criteria query object created by | |
jakarta.persistence.criteria.CriteriaQuery.multiselect(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery ... follows: If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created ... execution. If the type of the criteria query is CriteriaQuery for some user-defined class X (i.e | |
jakarta.persistence.criteria.CriteriaQuery.select(Selection) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery ... and the query result type is specified. For example: CriteriaQuery q = cb.createQuery(String.class); Root order = q.from(Order.class); q.select(order.get("shippingAddress").get("state")); CriteriaQuery q2 | |
jakarta.persistence.EntityManager.createQuery(CriteriaQuery) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager TypedQuery createQuery ( CriteriaQuery criteriaQuery ) Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new query instance. Throws | |
jakarta.persistence.criteria.CriteriaQuery.distinct(boolean) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery distinct ( boolean distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained | |
jakarta.persistence.criteria.CriteriaQuery.having(Predicate...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery having ( Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having | |
jakarta.persistence.criteria.CriteriaQuery.having(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery having ( List restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having | |
jakarta.persistence.criteria.CriteriaQuery.orderBy(Order...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery orderBy ( Order... o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified | |
jakarta.persistence.criteria.CriteriaQuery.orderBy(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery orderBy ( List o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified | |
jakarta.persistence.criteria.CriteriaQuery.where(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery where ( List restrictions ) Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s | |
jakarta.persistence.criteria.CriteriaQuery.groupBy(Expression...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery groupBy ( Expression ... grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping | |
jakarta.persistence.criteria.CriteriaQuery.groupBy(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery groupBy ( List grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions | |
jakarta.persistence.criteria.CriteriaQuery.having(Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery having ( Expression restriction ) Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any. This method only overrides the return type | |
jakarta.persistence.criteria.CriteriaQuery.where(Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery where ( Expression restriction ) Modify the query to restrict the query result according to the specified boolean expression. Replaces the previously added restriction(s), if any. This method | |
jakarta.persistence.criteria.CriteriaQuery.where(Predicate...) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery CriteriaQuery where ( Predicate... restrictions ) Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. Replaces the previously added | |
jakarta.persistence.criteria.CriteriaQuery.getOrderList() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. CriteriaQuery List getOrderList() Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query. Returns: the list | |
SELECT clause (JPQL / Criteria API): CriteriaQuery q = cb. createQuery (Country.class); Root c = q. from (Country.class); q. select (c ... .name FROM Country c can be defined using the criteria API as follows: CriteriaQuery q = cb. createQuery ... The Tuple interface can be used as a clean alternative to Object[] : CriteriaQuery q = cb | |
FROM clause (JPQL / Criteria API) by the Join interface (and its subinterfaces). Criteria query roots The CriteriaQuery 's from method ... a criteria query by using the following code: CriteriaQuery q = cb. createQuery (Country.class); Root ... other CriteriaQuery methods, invoking the from method does not override a previous invocation. Each time | |
JPA Criteria API Queries: CriteriaBuilder cb = em. getCriteriaBuilder (); CriteriaQuery q = cb. createQuery (Country.class); Root c ... , a CriteriaQuery instance is created to represent the query. A Root instance defines the FROM clause's range ... expression. After building the CriteriaQuery , you use it to create a TypedQuery object | |
CriteriaQuery .where() for multiple conditions When using the below, there appears to be an OR condition: criteriaQuery .where(criteriaBuilder.equal(root.get("name"), name)); criteriaQuery .where(criteriaBuilder.equal(root.get("surname ... (); CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(Person.class); Root root = criteriaQuery | |
"Unexpected query expression" using CriteriaQuery FetchParent Interface; CriteriaQuery criteriaQuery = cb.createQuery(Person.class); Root root = criteriaQuery .from(Person.class); root.fetch("PersonData"); //@OneToOne relationship criteriaQuery .select(root); System.out.println(em.createQuery( criteriaQuery ).getResultList()); } } Exception in | |
JPA Criteria Queries; CriteriaQuery , CriteriaUpdate , and CriteriaDelete are first built by static methods ... the result type of a selection query. It is extended by CriteriaQuery to support the definition ... : UPDATE and DELETE Queries CriteriaQuery is designed exclusively for data retrieval. Bulk data | |
JPA CriteriaQuery -- Iterate Expression | |
CriteriaQuery using isNotNull with other conditions results in InternalException When I try to execute the following criteria query CriteriaBuilder builder = em.getCriteriaBuilder(); CriteriaQuery criteria = builder.createQuery(relationshipClass); Root root = criteria.from(relationshipClass); criteria.select(root); List predicates = new ArrayList (); predicates.add(builder | |
WHERE clause (JPQL / Criteria API) the WHERE clause. WHERE in criteria queries The CriteriaQuery interface provides two where methods for setting ... as follows: CriteriaQuery q = cb. createQuery (Country.class); Root c = q. from (Country.class); q | |
GROUP BY and HAVING clauses are inaccessible. GROUP BY and HAVING in criteria queries The CriteriaQuery interface provides ... HAVING COUNT(c) 1 can be built using the criteria query API as follows: CriteriaQuery q = cb | |
ORDER BY clause (JPQL / Criteria API) queries The CriteriaQuery interface provides methods for setting the ORDER BY clause. For example ... the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class); Root c = q | |
jakarta.persistence.criteria.CriteriaBuilder operation Returns: the query object. Since: Jakarta Persistence (JPA) 2.1 CriteriaQuery createQuery () Create a CriteriaQuery object. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 CriteriaQuery createQuery ( Class resultClass ) Create a CriteriaQuery object with the given | |
jakarta.persistence.EntityManager accepts LockOption s. See Also: Query TypedQuery CriteriaQuery PersistenceContext ... Persistence (JPA) 1.0 TypedQuery createQuery ( CriteriaQuery criteriaQuery ) Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new | |
jakarta.persistence.criteria.Subquery getContainingQuery () Return the query of which this is a subquery. This may be a CriteriaQuery , CriteriaUpdate ... the query of which this is a subquery. This must be a CriteriaQuery or a Subquery. Returns ... for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation | |
jakarta.persistence.criteria.PluralJoin to avoid the use of Path variables. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p ... "))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); Path nicknames = p | |
jakarta.persistence.criteria.Path the use of Path variables. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); q.select(p) .where(cb.isMember("joe", p.get("nicknames"))); rather than: CriteriaQuery | |
jakarta.persistence.criteria.MapJoin of Path variables. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); q.select(p) .where(cb.isMember("joe", p.get("nicknames"))); rather than: CriteriaQuery q | |
jakarta.persistence.criteria.Root the Path.get operation in order 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 | |
jakarta.persistence.criteria.SetJoin the use of Path variables. 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 | |
jakarta.persistence.TypedQuery to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query. Since: Jakarta Persistence ... a CriteriaQuery query. Since: Jakarta Persistence (JPA) 1.0 TypedQuery setMaxResults ( int maxResult | |
jakarta.persistence.criteria.CollectionJoin.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb.createQuery ... "))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); Path | |
jakarta.persistence.criteria.ListJoin the use of Path variables. 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 | |
jakarta.persistence.criteria.From variables. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); q.select(p) .where(cb.isMember("joe", p.get("nicknames"))); rather than: CriteriaQuery q = cb | |
jakarta.persistence.criteria.Join the Path.get operation in order 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(Person | |
jakarta.persistence.Query Persistence query language SELECT query or a CriteriaQuery query. Since: Jakarta Persistence (JPA) 2.0 ... - if the query is found not to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query | |
jakarta.persistence.StoredProcedureQuery not to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query. Since: Jakarta ... is found not to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query | |
jakarta.persistence.criteria.CriteriaBuilder.createQuery() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery() Create a CriteriaQuery object. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.createQuery(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery ( Class resultClass ) Create a CriteriaQuery object with the given result type. Parameters: resultClass - type of the query result Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.createTupleQuery() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createTupleQuery() Create a CriteriaQuery object that returns a tuple of objects as its result. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.Path.get(String) to avoid the use of Path variables. For example: CriteriaQuery q = cb.createQuery(Person.class); Root ... "))); rather than: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); Path nicknames = p | |
jakarta.persistence.EntityManagerFactory of CriteriaBuilder which may be used to construct CriteriaQuery objects. Returns: an instance | |
jakarta.persistence.criteria.AbstractQuery getRoots () Return the query roots. These are the roots that are defined for the CriteriaQuery or | |
jakarta.persistence.criteria.AbstractQuery.getRoots() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Set getRoots() Return the query roots. These are the roots that are defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots |