Fast Object Database for Java - with JPA/JDO support

Internal Website Search

31-40 of 200 resultsRefresh
20

ObjectDB_find.GIF

ObjectDB_find.GIF
9

Step 3: Add a Main Class

.getTransaction().commit(); // Find the number of Point objects in the database ... : " + q1.getSingleResult()); // Find the average X value: Query q2 = em
9

Updating JPA Entity Objects

from inside an active transaction: Employee employee = em.find(Employee.class, 1); em ... changes when using enhanced entity classes: Employee employee = em.find(Employee.class, 1
9

Step 3: Add a Main Class

); } em.getTransaction().commit(); // Find the number of Point objects in ... "); System.out.println("Total Points: " + q1.getSingleResult()); // Find the average X value
9

Index Definition

AND p.x <= 80 By using an index on field x, ObjectDB can find the results using a range scan ... is specified first, the BTree is ordered by y values, so a full BTree scan is required to find
9

Shared (L2) Entity Cache

and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.find(MyEntity2.class
6

javax.persistence.EntityManager

. The EntityManager API is used to create and remove persistent entity instances, to find entities by their primary ... instance Throws: IllegalArgumentException - if the instance is not an entity Since: JPA 2.0 T find(Class entityClass, Object primaryKey) Find by primary key. Find by primary key. Search for an entity
6

Chapter 4 - JPA Queries (JPQL / Criteria)

The JPA Query Language (JPQL) can be considered as an object oriented version of SQL. Users familiar with SQL should find JPQL very easy to learn and use. This chapter explains how to use JPQL as well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA
6

Deleting JPA Entity Objects

transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1
6

CRUD Database Operations with JPA

. If you have used SQL you should find the syntax very familiar. JPQL, the JPA query language, supports a SQL like

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