About result

manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... Multiple SELECT Expressions Result Classes (Constructor Expressions) SELECT DISTINCT ... be returned from a query that uses projection when a result path expression resolves to an entity. For example, the following query ...

 
manual

Setting and Tuning of JPA Queries

Explains various JPA query settings - result range, flush and lock.... method Execute a SELECT query that returns a single result. See JavaDoc Reference Page... . This page covers the following topics: Result Range (setFirstResult, setMaxResults) Flush Mode ...

 
api-jpa

Criteria Query Selection and Results

Reference (JavaDoc) of JPA query criteria result interfaces, including Selection, CompoundSelection, Order and Tuple.... Interface for extracting the elements of a query result tuple. See JavaDoc Reference Page... interface can be used as ...

 
manual

Running JPA Queries

Explains how to use JPA to run Java Persistence Query Language (JPQL) queries.... Execute a SELECT query that returns a single untyped result. See JavaDoc Reference Page... - for use when exactly one result object is expected. Query.getResultList ...

 
api-jpa

javax.persistence.criteria.CriteriaQuery

The CriteriaQuery interface defines functionality that is specific to top-level queries.(Interface of JPA)

 
api-jdo

javax.jdo.Query

The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)

 
api-jpa

javax.persistence.criteria.Subquery

The Subquery interface defines functionality that is specific to subqueries.(Interface of JPA)

 
api-jpa

getResultList()

Execute a SELECT query and return the query results as a typed List.(Method of javax.persistence.TypedQuery)

 
manual

[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language.... boolean expression in a Java like syntax The query result is a subset of objects from the candidate collection that contains only ... , "this.age >= 18" ) ; Collection result = ( Collection ) query. execute ( ) ; ...

 
forum_thread

Empty query results after JAR creation

Hi, I struggle with a strange issue. I've embedded ObjectDB in a small application to query cases. Within Netbeans everything works fine but when I create a  JAR File and executed via "Java -Jar xyz.jar", I get either empty results or on some cases a "NoResultException" which appears to report the same issue. I've created a small test case (attached zip file) with sample DB to reproduce the issue.  ... and imported my data again. The result was initially exactly the same. I've observed, when I run the Jar ...