Home » Search

About retrieve

31-40 of 200Refresh
Manual
17

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity ... an alternative way for updating entity objects. Unlike SELECT queries, which are used to retrieve data from the database, UPDATE queries do not retrieve data from the database, but when executed, update
JDO Doc
15

javax.jdo.PersistenceManager

retrieve(Object pc) Retrieve field values of an instance from the store. Retrieve field values ... the instance, and its field values must be retrieved. The PersistenceManager might use policy information about the class to retrieve associated instances. Parameters: pc - the instance Since: JDO 1.0 void
Manual
15

FROM clause (JPQL / Criteria API)

, consider the following INNER JOIN query that retrieves pairs of (country name, capital name): SELECT c ... instances.  Consequently, the loop that iterates over the results is inefficient, since retrieval ... Country objects because it eliminates the need for retrieving the associated Capital objects separately
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
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
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