Home » Search

About Transaction

81-90 of 200Refresh
Forum
15

Querys without Transaction

Hello, are querys faster, if we use the entity manager without transaction, since we need only read-only entities. There is no much difference, but report queries, i.e. queries that return simple value fields rather than entity objects are more efficient as they eliminate the need to manage entity
Issue
15

Threaded Test - Failed to commit transaction: Unexpected internal exception

Threaded Test - Failed to commit transaction: Unexpected internal exception
JDO Doc
14

javax.jdo.Constants

to specify that transactions are managed by the Java Transactions API, as documented in JSR-220. The value for TransactionType to specify that transactions are managed by the Java Transactions API, as ... .supportedOptions() String OPTION_TRANSACTIONAL_TRANSIENT "javax.jdo.option.TransientTransactional
Manual
14

DELETE Queries in JPA/JPQL

transaction, either explicitly by calling the remove method or implicitly by a cascading operation ... queries can only be executed within an active transaction and the changes are visible to other users ... (); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate method
Manual
14

Detached Entity Objects

method, which clears an EntityManager's persistence context. Rolling back a transaction - either by ... transaction when merge is called because operations that might modify the database require an active transaction. Cascading Merge Marking a reference field with CascadeType.MERGE (or CascadeType
JPA Doc
14

JPA Exceptions

, an attempt to update the database with no active transaction is represented by: Database update failures that require transaction rollback are represented by: The RollbackException exception usually ... ) . For example, if a transaction fails because of an attempt to store a new entity object with a primary
Manual
14

UPDATE SET Queries in JPA/JPQL

objects into an EntityManager. Updating the relevant entity object fields within an active transaction ... queries can only be executed within an active transaction and the changes are visible to other users ... (); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
Manual
12

JPA Lifecycle Events

throws an exception within an active transaction, the transaction is marked for rollback
Tutorial
12

Step 3: Define an EJB Session Bean

with the @PersistenceContext annotation). Handles transactions automatically using JTA - no need to wrap every operation that modifies the database (such as persist) by transaction begin and commit
Tutorial
12

Step 3: Define an EJB Session Bean

(because it is annotated with the @PersistenceContext annotation). Handles transactions automatically ... transaction begin and commit. The next step is adding a Servlet Class that will serve as the application controller.