Fast Object Database for Java - with JPA/JDO support

Internal Website Search

1-10 of 200 resultsRefresh
65

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find( Class entityClass, Object primaryKey, LockModeType lockMode, Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect
65

find(entityClass, primaryKey, properties)

Method javax.persistence.EntityManager T find( Class entityClass, Object primaryKey, Map properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context
65

find(entityClass, primaryKey, lockMode, properties)

Methodjavax.persistence.EntityManager T find( Class entityClass, Object primaryKey, LockModeType lockMode, Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified
65

find(entityClass, primaryKey, lockMode)

Method javax.persistence.EntityManager T find( Class entityClass, Object primaryKey, LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in
65

find(entityClass, primaryKey)

Method javax.persistence.EntityManager T find( Class entityClass, Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity
65

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find( Class entityClass, Object primaryKey, LockModeType lockMode, Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified
44

Retrieving JPA Entity Objects

whose primary key is 1: Employee employee = em.find(Employee.class, 1); Casting of the retrieved object to Employee is not required because find is defined as returning an instance of the same class ... is returned. A similar method, getReference, can be considered the lazy version of find: Employee
40

Locking in JPA

one atomic operation. For example, the find method has a form that accepts a lock mode: Employee employee = em.find( Employee.class, 1, LockModeType.PESSIMISTIC_WRITE); Similarly, the refresh ... ", 2000); Employee employee = em.find(       Employee.class, 1, LockModeType.PESSIMISTIC_WRITE
29

CRUD Operations with JPA

Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove).
24

find() cost unreasonable time!

, why? Result: =========== find time @ 24.125000 getSons time @ 0.000000 1 : type:Nodes, sons:2 child : 2 child : 3 Iterator time @ 0.000000 find time @ 0.000000 getSons time @ 0.000000 2 : type:Nodes, sons:2 child : 4 child : 5 Iterator time @ 0.000000 find time @ 0.000000 getSons

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