ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
11

Updating JPA Entity Objects

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

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
8

Database Explorer

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

Deleting JPA Entity Objects

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

ObjectDB Object Database Features

heavy loaded multi-user systems. Transactions JPA/JDO ACID transactions. Operations: begin, commit
8

Posting Sample Code

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

[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
1

[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
1

Step 3: Add a Main Class

Point objects in the database: em.getTransaction().begin(); for (int i = 0; i < 1000
1

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