About transaction

forum_thread

Uninitialized primary key (id = 0)

Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (image.Meta:0) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) I check the db by explorer.jar, and find the only one record is id=0. What situation will be id=0? TIA ... persistence . RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value ( ...

 
api-jpa

remove(entity)

Remove the entity instance.(Method of javax.persistence.EntityManager)

 
api-jdo

Constants.TX_READ_COMMITTED

Transaction isolation level representing the requirement to read committed data only.(Static Field of javax.jdo.Constants)

 
api-jdo

postDirty(event)

Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.(Method of javax.jdo.listener.DirtyLifecycleListener)

 
forum_thread

Querys slower when execute a query after every persist

The test case of the java file attachment persists many entities and executes a query after every persist. The execution time amounts 2 sec when the test persists 1000 entities. The execution time amounts 100 sec when the test persists 10000 entities. We have been expected that the second case requires only 20 sec, but the test requires 100 sec. Why the querys will be more and more slower? In addition there are a cpu snapshot for visual vm and an image of cpu snapshot as attachment. ... to the database. If you have more objects in the current transaction it takes more time (i.e. every query execution requires a more ...

 
api-jpa

refresh(entity, properties)

Refresh the state of the instance from the database, using the specified properties, and overwriting changes made to the entity, if any.(Method of javax.persistence.EntityManager)

 
api-jpa

javax.persistence.OptimisticLockException

Thrown by the persistence provider when an optimistic locking conflict occurs.(Exception of JPA)

 
api-jdo

getPersistenceManager(pc)

Return the associated PersistenceManager if there is one.(Method of javax.jdo.spi.StateInterrogation)

 
api-jdo

getTransactionalObjectId(pc)

Return a copy of the JDO identity associated with the parameter instance.(Static Method of javax.jdo.JDOHelper)

 
forum_thread

Undeployment of an remote Glassfish application locks objectdb log file

System: Netbeans 7.1 Oracle Glassfish 3.1.2 ObjectDB 2.3.7_04 Senario: Create a simple WebApplication with a "hello world" web service interface in Netbeans. Add objectDB test code to the web service: ... <persistence - unit name = "testdb" transaction - type = "JTA" > <provider>com. objectdb . ...