Home » Search

About retrieve

31-40 of 200Refresh
JPA Doc
15

JPA Exceptions

to retrieve entity objects from the database. For example, when a required entity object is not found: or during query execution: The lock exceptions (above) may also be thrown during retrieval, if database lock has been requested for retrieved entity objects and it cannot be granted.
Manual
15

JPA Query Structure (JPQL / Criteria)

classes and objects. For example, a JPQL query can retrieve and return entity objects ... ...]] [ORDER BY ...] The first two clauses, SELECT and FROM are required in every retrieval query ... JPQL Query The following query retrieves all the Country objects in the database: SELECT c FROM
Manual
15

Logical Operators in JPQL and Criteria API

retrieves countries whose population and area (both) exceed specified limits: SELECT c FROM ... The following query retrieves countries whose population or area exceeds a specified limit: SELECT c FROM ... query retrieves all the countries whose population does not exceed a specified limit: SELECT c FROM
Manual
15

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entity objects is a major advantage of JPQL. For example ... are also supported. For example, the following query retrieves the name of the capital city ... with the containing entities. Therefore, embedded objects that are retrieved directly by a result path expression
Tutorial
15

Step 3: Add a Main Class

the database and then retrieve them from the database: Open the [New Java Class] dialog box by right ... "); System.out.println("Average X: " + q2.getSingleResult()); // Retrieve all the Point ... a query that retrieves all the 1000 Point objects from the database. Finally it closes the database
Tutorial
15

Step 3: Add a Main Class

to store Point objects in the database and then retrieve them from the database. Use copy and paste ... .getSingleResult()); // Retrieve all the Point objects from the database: TypedQueryretrieves all the 1000 Point objects from
Manual
15

WHERE clause (JPQL / Criteria API)

JPQL query that retrieves selective objects from the database. Out of the four optional clauses ... The following query retrieves only countries with population size that exceeds a specified limit ... filters tuples before passing them to the SELECT clause. For example, the following query retrieves
Manual
12

Chapter 1 - Quick Tour

ObjectDB databases and perform basic CRUD operations (Create/Store, Retrieve, Update and Delete ... , retrieving, updating and deleting Point objects. To run the sample program of this chapter in
Manual
12

Query Parameters in JPA

Query parameters enable the definition of reusable queries. Such queries can be executed with different parameter values to retrieve different results. Running the same query multiple times ... ) The following method retrieves a Country object from the database by its name: public Country
Manual
12

Running JPA Queries

(with getResultList) The following query retrieves all the Country objects in the database. Because multiple ... printing the country names, a query that uses projection and retrieves country names directly instead