ObjectDB ObjectDB

Internal Website Search

11-20 of 69 resultsRefresh
38

Criteria Query Selection and Results

and for representing query results as tuples. SELECT Clause Elements The content of the SELECT ... . Query Results as Tuples JPA 2 introduces a new way to represent multi selection results (i.e. results of a query with multiple expressions in the SELECT clause) using tuples: The Tuple interface
33

ClassCastException in Tuple.get

(); CriteriaQuery<Tuple> cq = cb.createTupleQuery(); Root<DemandAnswer> rootDemandAnswer = cq ... (joinProvidingPerson, storedProvidingPerson) ); TypedQuery<Tuple> query = em.createQuery(cq); List<Tuple> tuples = query.getResultList(); List<DemandDetails> candidateDemands = Lists
30

WHERE clause (JPQL / Criteria API)

defines iteration on tuples. In this case the WHERE clause filters tuples before passing ... the WHERE clause are passed through to the SELECT. In multi-variable queries the number of tuples
30

GROUP BY and HAVING clauses

clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples of database objects ... calculations (count, sum, avg, max, min) that are carried out on all the objects (or the object tuples) in ... clause in which all the FROM/WHERE objects (or object tuples) are considered as one group. For example
17

JPA Query Structure (JPQL / Criteria)

, multiselect, array, tuple, construct). Criteria FROM (from, join, fetch). Criteria WHERE (where). Criteria
17

JPA Queries

three groups. SELECT and ORDER BY elements (including tuples): FROM clause elements (representing range
17

Paths and Types in JPQL and Criteria API

, the current FROM variable (or FROM tuple when there are multiple variables) is simply skipped
17

JPA Criteria API Queries

in the following page sections: SELECT clause (select, distinct, multiselect, array, tuple, construct
17

javax.persistence.criteria.CriteriaBuilder

compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array-valued ... selection item Throws: IllegalArgumentException - if an argument is a tuple- or array-valued selection ... : criteria query object Since: JPA 2.0 CriteriaQuery< Tuple> createTupleQuery() Create a CriteriaQuery object
13

javax.persistence.TupleElement

that is returned in a query result tuple. Since: JPA 2.0 See Also: Tuple String getAlias() Return the alias assigned to the tuple element or null, if no alias has been assigned. Return the alias assigned to the tuple element or null, if no alias has been assigned. Returns: alias Since: JPA 2.0

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