ObjectDB ObjectDB

Internal Website Search

1-10 of 86 resultsRefresh
86

javax.persistence.criteria.CriteriaQuery

javax.persistence.criteria Interface CriteriaQuery<T> Superinterfaces: AbstractQuery<T> The CriteriaQuery interface defines functionality that is specific to top-level queries. Since: JPA 2.0 Learn ... query Since: JPA 2.0 CriteriaQuery<T> distinct(boolean distinct) Specify whether duplicate query results
74

multiselect(selectionList)

Method javax.persistence.criteria.CriteriaQuery<T> CriteriaQuery<T> multiselect( List<E ... query is CriteriaQuery (i.e., a criteria query object created by either the createTupleQuery method ... is CriteriaQuery for some user-defined class X (i.e., a criteria query object created by passing
74

multiselect(selections)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> multiselect( Selection ... is CriteriaQuery (i.e., a criteria query object created by either the createTupleQuery method or by passing ... that results from the query execution. If the type of the criteria query is CriteriaQuery for some user
74

multiselect(selectionList)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> multiselect( List<Selection ... 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
71

select(selection)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> select( Selection<?> selection ... . For example: CriteriaQuery q = cb.createQuery(String.class); Root ... ")); CriteriaQuery q2 = cb.createQuery(Product.class); q2.select(q2.from(Order.class
69

createQuery(criteriaQuery)

Method javax.persistence.EntityManager TypedQuery<T> createQuery( CriteriaQuery<T> criteriaQuery ) Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new query instance Throws: IllegalArgumentException - if the criteria query is found to be invalid Since: JPA 2.0
68

JPA Criteria API Queries

.getCriteriaBuilder(); CriteriaQuery<Country> q = cb.createQuery(Country.class); Root<Country ... are equivalent). In the example above a CriteriaQuery instance is created for representing ... . A CriteriaQuery instance is equivalent to a JPQL string and not to a TypedQuery instance. Therefore, running
68

having(restrictions)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> having( Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any. If no restrictions
68

groupBy(grouping)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> 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 expressions are specified, any previously
68

groupBy(grouping)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> groupBy( List<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 expressions are specified, any

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support