ObjectDB Database Search

101-150 of 200 results

Optimization of Map Queries

.get(..) result(s) once to not query the map again and again for each test in my query ? 2) Is there anything I could do for shortening the query string? I guess there's no such thing as a "temporary" variable for being used in the query .. I am creating the query using criteriabuilder, then I am converting

how to query by properties of onetomany relations? (Error 990)

a variable that will iterate over the collection elements. This specific query should be rewritten ... variable , so this should be taken into consideration (since the meaning of the above JPQL queries ... - it should be replaced by a more descriptive error message in future versions. However, this query

query on calendar class

Hello!   I'm looking for help to build query on calendar class. I need to get objects ... ; @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query =em.createQuery("SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr.class); query .setParameter(1,Calendar.FRIDAY

Query all objects that implements a given interface - is that possible?

Hi, I am trying query one of my DB - for all object types that implement a given interface.     TypedQuery query =         em.createQuery ... variable ('bk') of type Signals.Signal_Interface (error 737) at com.objectdb.jpa.JpaQuery

locks on pure query activities

that are just doing simple queries (just selects, no update or delete ...) show locks like these (question ... on separate disks you may be able to refer read only queries to replicated slaves. support Support ... We can see that the more threads are doing exactly the same query we step into more and more situations

Query to find object from element of a contained collection

a multi variable query with JOIN . support Support Thank you for the fast support ... elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query ? Thanks.   @Entity

Query in JPA2 with LEFT JOIN on INNER JOIN

How write a query in JPA2 with LEFT JOIN on INNER JOIN? select a.description, a.id, p1.description ... ; JOIN close is invalid in JPQL. Instead of ON you may  include all the variables in ... the WHERE clause. But actually your query may indicate that you model is not optimized for JPA. Instead

jakarta.persistence.EntityManager

their primary key, and execute queries which range over entity types. An entity may be disassociated from ... must also be flushed before execution of any query whose result set would be affected by unflushed modifications ... accepts LockOption s. See Also: Query TypedQuery CriteriaQuery PersistenceContext

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean ... , the JDO Query Language). ObjectDB supports both forms. Binary AND (&&) Operator The following query retrieves countries whose population and area (both) exceed specified limits: SELECT c FROM

jakarta.persistence.criteria.CriteriaQuery

, CommonAbstractCriteria The CriteriaQuery interface defines functionality that is specific to top-level queries . Since: Jakarta Persistence (JPA) 2.0 The JPA Criteria API Queries article explains how to use ... query results are eliminated. A true value will cause duplicates to be eliminated. A false value

Retrieving JPA Entity Objects

and the other for checking a persistent field of an entity object. Retrieval by Query The most flexible method for retrieving objects from the database is to use queries . The official query language of JPA is JPQL (Java Persistence Query Language). It enables retrieval of objects from the database by

Is ObjectDB a NoSQL Database?

of NoSQL technology, which are weak query capabilities and lack of ACID (atomicity, consistency, isolation, durability). Unlike other NoSQL solutions, ObjectDB provides full support of rich complex queries , using two standard Java query languages: JPQL (Java Persistence Query Language) and JDOQL (JDO

Is ObjectDB better than competing object databases?

do not support aggregate queries (max, min, count, sum and avg). ObjectDB supports rich queries , including aggregate queries , as part of its support of JPQL (JPA Query Language) and JDOQL (JDO Query Language). ObjectDB is faster than other products.

Deleting JPA Entity Objects

to automatic removal of that object from the database. DELETE Queries DELETE queries provide an alternative way for removing entity objects from the database. Deleting objects using a DELETE query ... ;The  DELETE Queries in JPA/JPQL  in chapter 4 explains how to use JPA DELETE queries .

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison Operators ... its own notation (which is also in use by JDOQL, the JDO Query Language). ObjectDB supports both forms ... . Equality operators (=, , == , != ) on strings in queries follow the logic of Java's equals

Updating JPA Entity Objects

Queries UPDATE queries provide an alternative way of updating entity objects in the database. Modifying objects using an UPDATE query may be useful especially when many entity objects have to be modified in one operation. The UPDATE Queries in JPA/JPQL in chapter 4 explains how to use JPA UPDATE queries .

What are the main benefits of using ObjectDB?

processes JPQL (JPA Query Language) and JDOQL (JDO Query Language) queries directly, where ORM tools first convert these queries to SQL and then transition the SQL to the DBMS for execution through a JDBC

Shared (L2) Entity Cache

side: Cache of database file pages . Cache of query programs . Cache of query execution results ... can also be overridden for a specific retrieval operation: // Before executing a query :    query . setHint

jakarta.persistence.criteria.AbstractQuery

functionality that is common to both top-level queries and subqueries. It is not intended to be used directly in query construction. All queries must have: a set of root entities (which may in turn own joins). All queries may have: a conjunction of restrictions. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.criteria.Subquery

a subquery root correlated to a root of the enclosing query . Parameters: parentRoot - a root of the containing query Returns: subquery root. Since: Jakarta Persistence (JPA) 1.0 Join correlate ( Join parentJoin ) Create a subquery join object correlated to a join object of the enclosing query

jakarta.persistence.criteria.CriteriaBuilder

criteria queries , compound selections, expressions, predicates, orderings. Note that Predicate ... compatible with varags. Since: Jakarta Persistence (JPA) 2.0 The JPA Criteria API Queries article ... to specify a constructor that is applied to the results of the query execution. If the constructor

Posting Sample Code

.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query

Locking in JPA

retrieval operation or query . Releasing a Pessimistic Lock Pessimistic locks are automatically ... can also be set for a query in order to lock all the query result objects. When a retrieval operation includes

JPA Primary Key

in the database in an efficient way. This is especially useful when using queries that return large ... time, sensor ID and additional details. Suppose that queries that retrieve all the events ... , the following primary key can significantly improve query run performance: @Entity public class Event

Multiple MEMBER OF query

your query   item.label  appears twice,  but the same synthetic variable  for iterating ... OF item.labels But when I search for an item that have two specific labels, the following query ... .labels Is it a bug or JPQL query is wrong? Best regards, Pablo. Pablo Berra Pablo Berra

queries under 2.7.6_4 significantly slower than under 2.7.6

indicating deep query plan checks and an overall significant performance loss in all queries ... since version 2.7.6 that could possibly effect query execution. Could you please explain or post some of these logs that show deep query plan checks (and are new in 2.7.6_04)? In addition

combined index not used

plan that processes the query variables in a specific order. The order of variables above follows ... we have a query like this: SELECT a.endDate,a.objectsInCharge.nodePath,a.objectsInCharge ... .properties.doubleValue In the class Action we have a combined index (see attachment) but in the query plan

jakarta.persistence.EntityManagerFactory

, may be obtained by calling getCache , the CriteriaBuilder , used to define criteria queries , may be obtained by ... entityGraph - entity graph Since: Jakarta Persistence (JPA) 2.1 void addNamedQuery ( String name , Query query ) Define the query , typed query , or stored procedure query as a named query such that future query

Database Connection using JPA

for Query instances, which are needed for executing queries on the database. Every JPA implementation

BIRT/ODA ObjectDB Driver

The ObjectDB BIRT/ODA driver is an extension of the open source Business Intelligence and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... ) and click Next . Entry a JPQL or a JDOQL query and click Finish . See the Report Generation

JPA Persistence Unit

classes. However, it might be useful to register classes that define generators and named queries (by annotations). Otherwise, the generators and named queries are available only when the containing

ObjectDB Overview

all the standard database management services (storage and retrieval, transactions, lock management, query ... file. Advanced querying and indexing capabilities. Effective in heavy loaded multi-user environments

jakarta.persistence.criteria.CriteriaUpdate

Methods Root from ( Class entityClass ) Create and add a query root corresponding to the entity ... that is being updated. Parameters: entityClass - the entity class Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1.0 Root from ( EntityType entity ) Create and add a query root

jakarta.persistence.NamedQuery

: Annotation Target: Type Declares a named query written in the Jakarta Persistence query language. Query names are scoped to the persistence unit. A named query may be executed by calling EntityManager.createNamedQuery . The following is an example of the definition of a named query written in

jakarta.persistence.Embeddable

methods or persistent instance variables . An enum or interface may not be designated as

jakarta.persistence.Basic

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Basic Implemented Interfaces: Annotation Target: Method, Field The simplest type of mapping of a persistent field or property to a single database column. The Basic annotation may be applied to a property or instance variable whose type

jakarta.persistence.NamedNativeQuery

Interfaces: Annotation Target: Type Declares a named native SQL query and, optionally, the mapping of the result of the native SQL query . Query names are scoped to the persistence unit. A named query ... how the native SQL query result set should be interpreted, for example: @NamedNativeQuery( name

jakarta.persistence.criteria.CriteriaDelete

entityClass ) Create and add a query root corresponding to the entity that is the target of the DELETE ... - the entity class Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1.0 Root from ( EntityType entity ) Create and add a query root corresponding to the entity

jakarta.persistence.QueryTimeoutException

the persistence provider when a query times out and only the statement is rolled back. The current ... (JPA) 1.0 QueryTimeoutException ( Query query ) Constructs a new QueryTimeoutException exception with the specified query . Parameters: query - the query . Since: Jakarta Persistence (JPA) 1.0

JPA Lifecycle Events

lifecycle event (which is still in progress) callback methods should not call EntityMan­ager or Query

What is ObjectDB?

ObjectDB is an Object Oriented Database Management System (ODBMS). It provides all the standard database management services (storage and retrieval, transactions, lock management, query processing, etc.), but it uses an object oriented model to store and manage data. You can easily store ordinary

ObjectDB 2.9 Developer's Guide

how to use the JPA Query Language (JPQL). Presents ObjectDB Tools: the Explorer, the Enhancer, the Doctor

JPA Annotations for Relationships

(which is calculated by a query ) : Details about all these annotations are provided in Chapter 2 of the ObjectDB manual.

JPA Annotations

between a relational database and an object model and for direct SQL queries ): These ORM annotations are silently ignored by ObjectDB.

General Settings and Logging

, such as query results that contain millions of objects. The element specifies temporary file settings

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open ... this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x ... copy and paste to enter the above query and click Finish . When the data set is created

Step 3: Define an EJB Session Bean

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The  GuestDao session bean (EJB) class defines two methods

Step 3: Define a Spring DAO Component

() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The GuestDao Spring component class defines two methods: persist

Step 3: Define a Spring DAO Component

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The GuestDao Spring component class defines two methods: persist

Step 3: Define an EJB Session Bean

); } // Retrieves all the guests: public List getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return query .getResultList(); } } The GuestDao session bean (EJB