ObjectDB Database Search

1-50 of 87 results

jakarta.persistence.criteria.CriteriaBuilder.array(Selection...)

array (    Selection ... selections ) Create an array -valued selection item. Parameters: selections - selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.array(List)

array (    List selections ) Create an array -valued selection item. Parameters: selections - list of selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 3.2

SELECT clause (JPQL / Criteria API)

Object[] element is 2. The first array cell contains the country name ( c.name ) and the second array ... an alternative to representing compound results by Object arrays , JPA supports using custom result ... - array , tuple and construct . CriteriaBuilder's array The following JPQL query: SELECT c.name, c

persisting object with long[][] arrays of array

arrays (not arrays of arrays ) -    @Entity public class TESTObject2 implements ... object's arrays of arrays are n x 1 - so the amount of data saved is exactly the same - So it looks like there is something ObjectDb (2.7.1) does not like about arrays of arrays . Thanks EKK   EKK

JPA Persistable Types

, Date and Math types. Multi value types - Collections, Maps and Arrays . Miscellaneous types: Enum ... , Hashtable , WeakHashMap , IdentityHashMap , LinkedHashMap , TreeMap and Properties . Arrays (including multi dimensional arrays ). Both generic (e.g. ArrayList ) and non generic (e.g. ArrayList ) collection

Updating JPA Entity Objects

chapter 5. However, detecting changes to arrays requires using snapshots even if the entity classes are enhanced. Therefore, for efficiency purposes, the default behavior of ObjectDB ignores array ... demonstrated above, array changes are not detected automatically (by default) but it is possible

PostUpdate on array changes

objectdb.conf file I will revisit the issue of dirty tracking of arrays . However, I have these new ... ? dmoshal David Moshal Can't seem to get array tracking to work. Given an entity (class A)  ... on JDO. Question: Is array tracking only available with the JDO api ? dmoshal David Moshal  

Query by array element

This query is not supported since you cannot access arrays in queries. You can implement a method in MyEntity that wraps the array access operation and then use that method in the query. It is supported by

Problem with byte arrays in JDO - ClassCastException

A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to [B at spiffy.test.ObjectdbTest.main(ObjectdbTest.java:44) package spiffy.test; import java.util

Problem with byte arrays in JDO - internal exception

Problem with byte arrays in JDO - internal exception

Database Schema Evolution

(when applicable). From any date type to any date type. From any collection or array type to any collection or array type, as long as the elements are convertible (e.g. from int[] to ArrayList ). From any object to any collection or array that can contain that object as en element. From any map

ObjectDB Object Database Features

( composite ) indices. Collection and array elements are indexable (extremely fast JOIN queries ... . Arrays , including multidimensional  arrays . Any other serializable type . Lifecycle Events JPA

Index Definition

, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain ... system rather than in memory. The keys of the BTree are all the unique values in the indexed field (or arrays of values

Entity Management Settings

. The element The arrays attribute of the element specifies if modifications to array cells

JPA Query Structure (JPQL / Criteria)

, multiselect , array , tuple , construct ). Criteria FROM  ( from , join , fetch ). Criteria WHERE  

JPA Criteria API Queries

, multiselect , array , tuple , construct ). FROM clause ( from , join , fetch ). WHERE clause

GROUP BY and HAVING clauses

SUBSTRING(c.name, 1, 1); The query returns Object[] arrays of length 3, in which the first cell contains

jakarta.persistence.criteria.CriteriaBuilder

. Since: Jakarta Persistence (JPA) 1.0 CompoundSelection array ( Selection ... selections ) Create an array -valued selection item. Parameters: selections - selection items Returns: array -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item

jakarta.persistence.criteria.CriteriaQuery

method. An argument to the multiselect method must not be a tuple- or array -valued compound selection ... class X, an instance of type X[] will be returned for each row. The elements of the array ... of type Object[] will be instantiated and returned for each row. The elements of the array

jakarta.persistence.SchemaValidationException

, Exception... failures ) Constructs a new instance with a message and, optionally, an array ... - an array of exceptions, each representing a separate problem message - an overall message Since: Jakarta Persistence (JPA) 1.0 Public Instance Methods Exception[] getFailures () An array of problems

Can not have unique index on Byte Array

an index that does not allow duplicate keys. An index on a collection or array (including byte[]) treats every element in the collection or the array as a separate entry. Therefore, if a field of collection or array type is declared as unique an exception is thrown if any element is repeating

jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...)

be a tuple- or array -valued compound selection item. The semantics of this method are as follows ... for each row. The elements of the array will correspond to the arguments of the multiselect method, in ... for each row. The elements of the array will correspond to the arguments to the multiselect method

jakarta.persistence.criteria.CriteriaQuery.multiselect(List)

method must not be a tuple- or array -valued compound selection item. The semantics of this method are as ... , an instance of type X[] will be returned for each row. The elements of the array will correspond ... row. The elements of the array will correspond to the elements of the list passed

Exception on comparing array fields against parameters in queries

Exception on comparing array fields against parameters in queries

not possible to add an existing object to an array via explorer

not possible to add an existing object to an array via explorer

Entity Update - Is the documentation up to date?

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 automatically ... well but it may be less portable. I'm using an array of entities inside another entity, and setting the elements of that array

jakarta.persistence.SchemaValidationException.SchemaValidationException(String,Exception...)

instance with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema. Parameters: failures - an array of exceptions, each representing

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: package test; import java.util. Arrays ; import javax.persistence.Entity; import javax.persistence.EntityManager ... .getTa()); System.out.printf(" Arrays : %s %n", Arrays .toString(tn2.getTa()));   Character[] la

Navigation to Collection Elements

") // the element itself is a map How about arrays like x. array [1] and x. array [1][2] ? Thanks & Best ... it to be done in JPA/JDO queries. How about arrays like x. array [1] and x. array [1][2] ? If such navigations ... expressions (by using JPA's JOIN or JDO's contains). The array expressions that you wrote are not

jakarta.persistence.NamedNativeQueries

[] value (Required) Array of NamedNativeQuery annotations. Since: Jakarta Persistence (JPA) 1.0 Additional

jakarta.persistence.Tuple

(JPA) 1.0 Object[] toArray () Return the values of the result tuple elements as an array . Returns

jakarta.persistence.criteria.CompoundSelection

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item (a tuple, array , or result of a constructor

jakarta.persistence.Basic

should use the date/time types defined in the package java.time , or the primitive array types char

jakarta.persistence.NamedQueries

.persistence.NamedQueries/class Annotation Elements NamedQuery[] value (Required) An array of NamedQuery

jakarta.persistence.NamedStoredProcedureQueries

Annotation Elements NamedStoredProcedureQuery[] value (Required) Array of NamedStoredProcedureQuery

jakarta.persistence.criteria.CriteriaBuilder.tuple(Selection...)

: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.tuple(List)

: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...)

item. Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Tuple.toArray()

Jakarta Persistence (JPA) Method in jakarta.persistence.Tuple Object[] toArray() Return the values of the result tuple elements as an array . Returns: tuple element values. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedNativeQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedNativeQueries NamedNativeQuery[] value (Required) Array of NamedNativeQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedStoredProcedureQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQueries NamedStoredProcedureQuery[] value (Required) Array of NamedStoredProcedureQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedQueries.value

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedQueries NamedQuery[] value (Required) An array of NamedQuery annotations. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SchemaValidationException.getFailures()

Jakarta Persistence (JPA) Method in jakarta.persistence.SchemaValidationException Exception[] getFailures() An array of problems detected while validating the schema. A persistence provider might choose to fail fast upon encountering a problem with one database object, in which case

Dirty checking

thinking, I need to: 1) set the config file to track array changes. 2) capture all entities changed ... another transaction. Note that you have to enable array change tracking only if you have Java arrays (e.g ... portable and more efficient) are automatic. support Support Great, thanks, I'm not using Java Arrays

Problem with distinct select, order by and equivalent alias/attribute path

de.solvit.objectdbtest.entity.Street; import java.util. Arrays ; import java.util.List; import java.util ... class Main {     private static final List locations = Arrays .asList(    ... ;  );     private static final List streets = Arrays .asList(     

Unable to convert 1.x odb file to 2.x

check the attachments. I believe this could be caused by having an array of objects as the value in ... data. support Support Thanks for your help. The issue with the object array in a map I will solve via some migration to a structure where the value in the map will be a user defined class containing the array . jakab Gergely Jakab

Saving custom list which implements java.util.List fails

: ... For example, the Arrays .asList method returns an instance of an internal Java collection type ... EntityWithList { private List words = Arrays .asList("not", "ArrayList"); } @Entity public class Point ... defined classes. Notice, however, that similarly to the  Arrays .asList example from the manual

High memory consumption even after close() of EntityManagerFactory

which the execution of multiple queries increasingly byte array were generated (about 1.5 GB) which from GC ... byte array are still not released. The option objectdb.temp.avoid-page-recycle makes no change ... (line 92). btc_es BTC EmbeddedSystems Addendum: With the configuration is the byte array only 3MB. I

Use temporary files to enable very large transactions

the first level cache (by flush() and detach()). But an array of bytes, any ObjectDB memory ... will be bigger after flush. Also we see in a heap dump many byte arrays which are referenced by ObjectDB classes. The count of byte arrays grows after flush and clear, although we start the GC

Enhanced classes problem

a  CacheableJobAccountingInfo[] array into a  CacheableJobAccountingInfo field ... , which should solve the problem. Using arrays for relationships is non standard (not supported by JPA ... with the List instead of array and another problem occurs:   java.lang.ArrayIndexOutOfBoundsException: -1