About execute

api-jdo

javax.jdo.JDOCanRetryException

This is the base class for exceptions that can be retried.(Exception of JDO)

 
api-jdo

executeWithArray(parameters)

Execute the query and return the filtered Collection.(Method of javax.jdo.Query)

 
api-jpa

javax.persistence.PersistenceException

Thrown by the persistence provider when a problem occurs.(Exception of JPA)

 
api-jdo

javax.jdo.JDOUnsupportedOptionException

This class represents exceptions caused by the use of optional features not supported by the JDO implementation.(Exception of JDO)

 
api-jpa

javax.persistence.PessimisticLockException

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

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid #1 2013-04-30 15:49 Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) ...

 
forum_thread

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory footprint. The code snippet below is part of a Callable task that is run repeatedly with a given list of commands. When I run the code as written I start getting the stack traces that are listed.  However, if I comment out the calls to makeTransactionalAll() and evictAll() everything works.... toDelete = ( Collection ) query. execute ( ) ; m_persistenceManager. ...

 
forum_thread

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)>1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: ... You may try splitting the query into two queries - first execute the inner query and then use the result collection as a parameter ... may try splitting the query into two queries - first execute the inner query and then use the result collection as a parameter ...

 
release

2.2.9

Release date: 2011-08-10 Download (5.15 MB) Binary:  objectdb-2.2.9.zip You should start by following a  tutorial or reading the manual ...

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)