ObjectDB Database Search

1-50 of 200 results

Is ObjectDB better than competing object databases?

. However, you should consider the following points when doing your own objective comparison of object databases: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in ... of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load (    Object entity ,    String attributeName ) Load the persistent value of a given ... instance Throws: IllegalArgumentException - if the given object is not an instance of an entity class

jakarta.persistence.PersistenceUnitUtil.load(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load (    Object entity ) Load the persistent state of an entity belonging to the persistence unit ... : IllegalArgumentException - if the given object is not an instance of an entity class belonging

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.property(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration property (    String name ,    Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isLoaded (    Object entity ) Determine the load state of an entity belonging to the persistence unit. This method can be used to determine the load state of an entity passed as a reference. An entity

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isLoaded (    Object entity ,    String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name

jakarta.persistence.TypedQuery.setParameter(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    String name ,    Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws

jakarta.persistence.TypedQuery.setHint(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setHint (    String hintName ,    Object value ) Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by this specification

jakarta.persistence.TypedQuery.setParameter(int,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    int position ,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Returns: the same query instance. Throws

jakarta.persistence.OptimisticLockException.OptimisticLockException(Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException (    Object entity ) Constructs a new OptimisticLockException exception with the specified entity. Parameters: entity - the entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(int,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    int position ,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Returns: the same query

jakarta.persistence.StoredProcedureQuery.setParameter(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    String name ,    Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query

jakarta.persistence.OptimisticLockException.OptimisticLockException(String,Throwable,Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException (    String message ,    Throwable cause ,    Object entity ) Constructs a new OptimisticLockException exception with the specified detail message, cause

Embedded Object inside another embedded object - is that possible?

I have an entity with an embedded object - it works fine. Now I am trying to add an embedded object inside the first level embedded object - but it does not seem to store it and does not throw either... I was wondering if it was a limitation or not? has anyone tried this before? Thanks EKK

Soft Reference Object Cache Recommendation

to have my persistent objects be cached until the Java Virtual Machine (JVM) does a full Garbage Collection (GC ... to get rid of older objects before more recently accessed ones.  I attempted to use Java SoftReference to my large byte[] and instruct ObjectDB to use soft reference for its Level One (L1) object data

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables for iterating over objects in the database ... because both are used to iterate over objects . Range variables Range variables are query identification variables that iterate over all the database objects of a specific entity class hierarchy, which includes

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org

UserException - Object User#2 belongs to another EntityManager

CDI. Problem on method execution, which runs a NamedQuery: com.objectdb.o.UserException - Object 'com ... Chirac This exception is thrown only when mixing entity objects of different entity managers (which is forbidden, since every EntityManager manages its own space of managed objects , and a managed

Not releasing locked MST object

, 0x00007f4bb0e6f928 , 0x00007f4bb0e6faa0 , 0x00007f4bb0e6fac0 ] at java.lang. Object .wait0(java.base@21.0.1/Native Method) at java.lang. Object .wait(java.base@21.0.1/ Object .java:366) at java.lang.Thread ... was on MST object and it was blocking among others these threads: 0x00007f609be186b0 MST Held by

How to access database object to my application.

Hi, I want to access a object which contains some value like id,name,college and address. Here it returns some address but i am not getting object value, i attach 3 java program below, please check. 1: GetterSetter method  2: Creating object for insert data  3: For Access data

Object belongs to another EntityManager - ERROR

[stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl#8 ... .PersistenceException: com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl#8' belongs ... :15,084 ERROR [stderr] (http--10.23.3.98-8081-5) Caused by: com.objectdb.o.UserException: Object

Delete object from collection versus delete from JPQL

relationship between the objects in memory and ObjectDB.  I know I can modify the objects ... the in-memory objects ? There are cases where the JPQL syntax is more expressive than operating ... ; greymatter Lee Grey UPDATE and DELETE queries bypass the EntityManager entity object management

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 ... (); Here is the object : import java.io.Serializable; import javax.persistence.CascadeType; import javax ... object's arrays of arrays are n x 1 - so the amount of data saved is exactly the same - So it looks like

Storing objects problem

I want to save this object to database: @Entity public class Device {      ... ; @ElementCollection     private List children; } An  object contains ... and they don't have their children devices. I'm new to this object database so I don't know how to solve

SELECT clause (JPQL / Criteria API)

query returns Country objects , which then become managed by the EntityManager instance em : TypedQuery ... , including transparent navigation to other database objects , transparent update detection , support ... , the following query returns country names as String instances, rather than Country objects : SELECT

Storing JPA Entities

. getTransaction (). commit (); The Employee instance is constructed as an ordinary Java object , and its initial state is New. An explicit call to persist associates the object with an owner EntityManager , em ... class instance. Only entity class instances can be stored in the database independently. Objects

Detached JPA Entities

Detached entities are objects in a special state where they are not managed by an EntityManager but still represent objects in the database. Compared to managed entities, detached objects have limited functionality: Many JPA methods, for example, lock , do not accept detached objects . Retrieval by

JPA Lifecycle Events

( Object o) {} @PostPersist void onPostPersist( Object o) {} @PostLoad void onPostLoad( Object o) {} @PreUpdate void onPreUpdate( Object o) {} @PostUpdate void onPostUpdate( Object o) {} @PreRemove void onPreRemove( Object o) {} @PostRemove void onPostRemove( Object o) {} } External callback methods

Apache License, Version 2.0, January 2004

to software source code, documentation source, and configuration files. " Object " form shall mean any form ... to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as

jakarta.persistence.EntityManager

associated with a persistence context are considered managed objects , with a well-defined lifecycle ... that there is no explicit "update" operation; since an entity is a managed object , modifications ... contains ( Object entity ) Determine if the given object is a managed entity instance belonging

Setting and Tuning of JPA Queries

because the setter methods in Query and TypedQuery support method chaining by returning the query object ... to all result objects that the query retrieves. For example, the following code sets a pessimistic WRITE lock on all the result objects : List results = query. setLockMode ( LockModeType . PESSIMISTIC_WRITE

JPA Entity Fields

declared type, including a generic java.lang. Object , as long as the actual runtime value ... is populated with a mapping of employee names to their corresponding Employee objects . Single-value

JPA Persistable Types

can be stored in the database only as embedded objects , that is, as part of a containing entity. A class ... in the debugger view and when invoking the getClass method on an object of a proxy class. Enum Types

Index Definition

this full iteration, allowing complex queries over millions of objects to execute quickly ... embeddable classes, because the fields of an embedded object are stored as part of the containing entity

jakarta.persistence.PersistenceUnitUtil

: IllegalArgumentException - if the given object is not an instance of an entity class belonging to the persistence unit ... cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3.2 Object getIdentifier ( Object ... - entity instance Returns: id of the entity. Throws: IllegalArgumentException - if the object

ObjectDB License Agreement [ver. 2.0.4]

and objects in a database file. The full edition of the Software (without the restrictions

Strings in JPQL and Criteria Queries

demonstrates, most methods are overloaded to support optional arguments and to accept both simple Java objects and criteria expressions.

JPA Attributes Annotations

property as an attribute containing a collection of embedded objects . This is used for "one-to-many

JPA Metamodel Attributes

, wrappers, Strings), embedded objects , and associations (reference fields and properties

jakarta.persistence.EntityNotFoundException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityNotFoundException java.lang. Object ... is accessed but the entity does not exist. Thrown when EntityManager.refresh is called and the object ... .getReference(Class, Object ) EntityManager.refresh( Object ) EntityManager.refresh( Object , LockModeType

new objects not available in mappedBy associations

; creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object ... automatically when the object is retrieved from the database again. Try to refresh the department

spuriously objectdb objects have null references

from time to time we have in a multi threaded environment objects where all the references ... methods and protected them with synchronized like:   ... private static Object lockBegin = new Object (); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin){ try

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: Retrieval by navigation from detached objects is not supported, so only persistent fields that have been loaded before detachment should be used. As explained on the Object DB vs EclipseLink/TopLink

Cannot insert more than about 2^20 objects

Hi I have a DB with 4 entities and a total of 4 index. Once I reach 1048565 total objects in the whole DB, i am unable to insert more object , although i get NO error message nor exceptions. Doctor said Db is fine (see below) I notice that 1048565 objects + 4 entities + 4 ID indexes + 4

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... objects in the database was created in the project (under Java Resources: src guest). Use copy

Step 4: Add a Controller Class

. The JSP uses the GuestDao component to display the existing Guest objects . The returned ModelAndView object defines a target JSP ( "guest.jsp" ) and passes the GuestDao component to the JSP as a request

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ... should represent Point objects in the database. Apart from the @Entity annotation and the id field

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window ... objects in the database. Besides the @Entity annotation and the id field (and its annotations

Step 4: Run the Application

1,000 objects . You can view the content of the database file by opening it in the ObjectDB Explorer