ObjectDB Database Search

1-50 of 91 results

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

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

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  

CriteriaBuilder.array(selections) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CompoundSelection array (    Selection ... selections ) Create an array -valued selection item. Parameters: selections - selection items Return: array -valued compound selection Throws: IllegalArgumentException

CriteriaBuilder.array(selections) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CompoundSelection array (   List  selections ) Create an array -valued selection item. Parameters: selections - list of selection items Return: array -valued compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item Since: JPA 3.2

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

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

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

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

Return: any expression Since: JPA 2.0 CompoundSelection array (List  selections) Create an array -valued selection item. Parameters: selections - list of selection items Return: array -valued compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection

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

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

ClassRef jakarta.persistence.SchemaValidationException

with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema. Parameters: message - an overall message failures - an array of exceptions, each representing a separate problem Since: JPA 3.2 Public Methods Exception[] getFailures () An array of problems

CriteriaQuery.multiselect(selectionList) - JPA Method

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

CriteriaQuery.multiselect(selections) - JPA Method

array -valued compound selection item. The semantics of this method are as follows: If the type ... . The elements of the array will correspond to the arguments of the multiselect method, in the specified ... . The elements of the array will correspond to the arguments to the multiselect method, in the specified

EnumRef jakarta.persistence.criteria.Predicate$BooleanOperator

Public Static Enum Methods: Predicate.BooleanOperator[] values () Returns an array containing ... ()) System.out.println(c); Return: an array containing the constants of this enum type, in the order

EnumRef jakarta.persistence.criteria.CriteriaBuilder$Trimspec

an array containing the constants of this enum type, in the order they are declared. This method ... .Trimspec.values()) System.out.println(c); Return: an array containing the constants of this enum

EnumRef jakarta.persistence.metamodel.Bindable$BindableType

Since: JPA 2.0 Public Static Enum Methods: Bindable.BindableType[] values () Returns an array ... ()) System.out.println(c); Return: an array containing the constants of this enum type, in the order

SchemaValidationException.SchemaValidationException(message,failures) - JPA Constructor

with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema. Parameters: message - an overall message failures - an array of exceptions, each representing a separate problem Since: JPA 3.2

EnumRef jakarta.persistence.metamodel.Attribute$PersistentAttributeType

() Returns an array containing the constants of this enum type, in the order they are declared. This method ... : Attribute.PersistentAttributeType.values()) System.out.println(c); Return: an array containing

EnumRef jakarta.persistence.metamodel.Type$PersistenceType

Since: JPA 2.0 Public Static Enum Methods: Type.PersistenceType[] values () Returns an array containing ... ()) System.out.println(c); Return: an array containing the constants of this enum type, in the order

EnumRef jakarta.persistence.metamodel.PluralAttribute$CollectionType

[] values () Returns an array containing the constants of this enum type, in the order ... .CollectionType c : PluralAttribute.CollectionType.values()) System.out.println(c); Return: an array

AnnotationAttrRef jakarta.persistence.NamedStoredProcedureQueries.value

JPA Annotation Attribute in jakarta.persistence.NamedStoredProcedureQueries NamedStoredProcedureQuery [] value default null (Required) Array of NamedStoredProcedureQuery annotations. Since: JPA 2.1

AnnotationRef jakarta.persistence.NamedStoredProcedureQueries

default null (Required) Array of NamedStoredProcedureQuery annotations. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.NamedQueries.value

JPA Annotation Attribute in jakarta.persistence.NamedQueries NamedQuery [] value default null (Required) An array of NamedQuery annotations. Since: JPA 1.0

AnnotationRef jakarta.persistence.NamedQueries

Attributes NamedQuery [] value default null (Required) An array of NamedQuery annotations. Since: JPA 1.0

SchemaValidationException.getFailures() - JPA Method

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 there is only one problem reported

Tuple.toArray() - JPA Method

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

InterfaceRef jakarta.persistence.Tuple

elements Since: JPA 2.0 Object[] toArray () Return the values of the result tuple elements as an array . Return: tuple element values Since: JPA 2.0

InterfaceRef jakarta.persistence.criteria.CompoundSelection

JPA Interface 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). Since: JPA 2.0 Public Methods Selection alias (String 

AnnotationRef jakarta.persistence.NamedNativeQueries

.0 Public Annotation Attributes NamedNativeQuery [] value default null (Required) Array of NamedNativeQuery annotations. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.NamedNativeQueries.value

JPA Annotation Attribute in jakarta.persistence.NamedNativeQueries NamedNativeQuery [] value default null (Required) Array of NamedNativeQuery annotations. Since: JPA 1.0

CriteriaBuilder.tuple(selections) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CompoundSelection tuple (    Selection ... selections ) Create a tuple-valued selection item. Parameters: selections - selection items Return: tuple-valued compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item Since: JPA 2.0

CriteriaBuilder.construct(resultClass,selections) - JPA Method

Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item Since: JPA 2.0

CriteriaBuilder.tuple(selections) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CompoundSelection tuple (   List  selections ) Create a tuple-valued selection item. Parameters: selections - list of selection items Return: tuple-valued compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array -valued selection item Since: JPA 3.2

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