About array

manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... length of each result Object[] element is 2. The first array cell contains the country name ( c.name ) and the second array cell contains the capital city name ( c.capital.name ). The ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... 11:56 A long[][] array is represented in Java as an array of arrays. new long[100000][1] is actually one long array of ...

 
api-jpa

array(selections)

Create an array-valued selection item.(Method of javax.persistence.criteria.CriteriaBuilder)

 
forum_thread

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... It seems as a problem with persistent array fields that are defined using generics. Generics in definition of ...

 
forum_thread

Query by array element

Hello, I have a class as follows: @Entity public class MyEntity {     boolean properties[]= new boolean[1024]; } I would like to query objects with feature '42': select me from MyEntity me where me.properties[42]=true Is it possible? Thank you! ... You can implement a method in MyEntity that wraps the array access operation and then use that method in the query. It is supported ...

 
forum_thread

Entity Update - Is the documentation up to date?

I'm working on my first ObjectDB project, and I just went back and reviewed some of the documentation.  Turns out I've been doing two things that http://www.objectdb.com/java/jpa/persistence/update suggests should not work. First, I've been modifying managed entities from outside an active transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged automatically. ... be merged automatically. Second, I'm using an array of entities inside another entity, and setting the elements of that array without calling JDOHelper.makeDirty.  These changes are also ...

 
api-jdo

javax.jdo.JDOOptimisticVerificationException

This class represents optimistic verification failures.(Exception of JDO)

 
api-jdo

javax.jdo.PersistenceManager

PersistenceManager is the primary interface for JDO-aware application components.(Interface of JDO)

 
api-jdo

javax.jdo.JDOCanRetryException

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

 
api-jdo

javax.jdo.JDOFatalUserException

This class represents user errors that cannot be retried.(Exception of JDO)