ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
13

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.
13

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 ... retrieves all the countries whose population does not exceed a specified limit: SELECT c FROM
13

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
13

Running JPA Queries

(with getResultList) The following query retrieves all the Country objects in the database. The query ... that to only print the country names, a query using projection and retrieving country names directly instead of retrieving the entire Country instances would be more efficient. Single Result Query
11

Updating JPA Entity Objects

Once an entity object is retrieved from the database (no matter which way) it can simply be modified in memory ... when it is retrieved from the database and to compare that snapshot to the actual managed object
11

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
2

Step 3: Add a Main Class

In this step we will add a main class to the project to store and retrieve Point objects from ... p"); System.out.println("Average X: " + q2.getSingleResult()); // Retrieve ... , including a query that retrieves all 1000 Pointobjects from the database. In the end, it closes
2

Step 3: Define an EJB Session Bean

); } // Retrieves all the guests: public List<Guest> getAllGuests ... - for retrieving all the existing Guest objects from the database. EJB classes are only supported by Java EE
2

Step 4: Add a Servlet Class

performs the following operations on every http request: The EntityManagerFactory is retrieved from ... are retrieved from the database and stored in the request's "guest" attribute. Then the processing
1

[ODB1] Chapter 5 - JDO Connections

storing, retrieving, updating and deleting database objects, are provided in the next chapter (Chapter ... instances) at the same time. In an active transaction, on every retrieval of an object from ... , object retrieval, reading) can be done without an active transaction. The default in ObjectDB

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