Home » Search

About begin

1-10 of 200Refresh
JDO Doc
94

begin()

Method javax.jdo.Transaction void begin() Begin a transaction. The type of transaction is determined by the setting of the Optimistic flag. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is already active. Since: JDO 1.0 See Also: setOptimistic getOptimistic
JPA Doc
93

begin()

Method javax.persistence.EntityTransaction void begin() Start a resource transaction. Throws: IllegalStateException - if isActive() is true Since: JPA 1.0
Manual
68

Database Connection using JPA

via the getTransaction method: try { em.getTransaction().begin(); // Operations ... (); } A transaction is started by a call to begin and ended by a call to either commit or rollback. All the operations
Manual
68

Obtaining a JPA Database Connection

transaction. Given an EntityManager, em, it is very easy to begin a transaction: em.getTransaction().begin
Manual
53

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
Issue
34

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

._PersistenceException: Attempt to begin a new transaction when a transaction is active at com.sun.ejb ... .UserException: Attempt to begin a new transaction when a transaction is active Again, this used not to happen ... ) //'com.objectdb.o.UserException: Attempt to begin a new transaction when a transaction
Forum
32

Attempt to begin a new transaction when a transaction is active

.getTransaction().begin(); em.persist(r); em.getTransaction().commit(); System.out.println("Entity ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root
Manual
23

Storing JPA Entity Objects

", "Joseph", "Wurzelbacher"); em.getTransaction().begin(); em.persist(employee); em ... .setAddress(address); em.getTransaction().begin(); em.persist(employee); em.getTransaction ... can be used to save memory in large transactions: em.getTransaction().begin(); for (int i = 1; i
Manual
21

CRUD Database Operations with JPA

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... transaction: em.getTransaction().begin(); em.remove(p); // delete entity em.getTransaction ... .getTransaction().begin(); p.setX(p.getX() + 100); // update entity em.getTransaction().commit
Manual
15

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