ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh

Updating JPA Entity Objects

.getTransaction().begin(); employee.setNickname("Joe the Plumber"); em.getTransaction().commit ... ); em.getTransaction().begin(); employee.projects[0] = new Project(); // not detected

Setting and Tuning of JPA Queries

). The setFirstResult method is used to specify where the result window begins, i.e. how many results at the beginning of the complete result list should be skipped and ignored. The setMaxResults method

Database Explorer

and File > Discard Changes, the Explorer automatically begins a new transaction for the next editing

Deleting JPA Entity Objects

); em.getTransaction().begin(); em.remove(employee); em.getTransaction().commit

ObjectDB Object Database Features

transactions. Operations: begin, commit, rollback. Processes and Threads All API classes and interfaces

Posting Sample Code

");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin();         MyEntity e

[ODB1] Chapter 5 - JDO Connections

.currentTransaction().begin(); // Operations that modify the database should come here. pm ... transactions. A transaction is started by a call to begin() and ended by a call to commit() or rollback ... .getPersistenceManager(); Transaction tr = pm.currentTransaction(); try { tr.begin

[ODB1] Chapter 2 - A Quick Tour

[] args) { 10 11 // Create or open a database and begin a transaction: 12 ... pm.currentTransaction().begin(); 15 16 // Obtain a persistent list: 17 ... .getPersistenceManager(); 29 30 try { 31 // Begin the transaction: 32

Step 3: Add a Main Class

(); // Store 1000 Point objects in the database: em.getTransaction().begin

Step 3: Define an EJB Session Bean

to wrap every operation that modifies the database (such as persist) by transaction begin and commit

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