ObjectDB Database Search

51-100 of 200 results

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

JPA Query language support in OBjectDB / Sub query or nested Query

have given a sample typed query below which fails to work with ObjectDB and it runs very well with the Hibernate/MySQL JPA. We are using Spring Data here. It looks like a problem with Sub query or nested queries where I am using IN clause like below. @ Query ("SELECT product FROM Product product

Criteria query error: Unexpected query token

.arquillian.spi.ArquillianProxyException: com.objectdb.o._PersistenceException : Unexpected query token ... to see? Or is Criteria a W.I.P?   Cheers Willks William It seems that the query is invalid because a SELECT is not specified. Unexpected query token 'FROM' (SELECT is expected) A query with no SELECT

Cache configuration of database file pages, query programs, query results

Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. Cache of database file pages. Cache of query programs. Cache of query execution results. btc_es BTC EmbeddedSystems

Query problem after transaction commit

to it. The client program can connect to the server and query to get all the records ... [Remarks] 01 Test_Connection: connecting 02 Test_Connection: connected 03 UI: start query [ query ...   05 code= %, desc= % 06 UI: end query 07 UI: start printing result 08 code= A, desc= Good

Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query , the loaded list are not refreshed according to the latest updates. But, when using the JPQL Query , the list are refreshed, and, when I querying ... on update side does not any diference. The problem is only solved when changing the query mode, from

How to convert a boolean to an int in the query?

How to convert a boolean to an int in the query ? I have five parameters of type boolean in ... , approvePhoneNumber, .... because the parameters equivalent. I want to sort them in the query by their sum ... queries . It is possible to add this to ObjectDB in future versions, but using a pre-calculated field

IN expression in a Criteria Query

, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query ... .employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query , but ObjectDB throws exception: com.objectdb.o.UserException: Unexpected query token 'EXISTS' Second problem

slow performance for a complex query

Hi, We have a query that is constructed dynamically, an example is like this: SELECT DISTINCT $1 ... ')))) I've also tried running the CDI query first and passing the results into the organisation query as ... for issue http://www.objectdb.com/database/forum/350 This query in both variations takes over 3

First query takes 4+ minutes to complete

SELECT query that we run on the DB which contains about 320,000 records of a single type of object ... (related to the query that we run). @Entity(name="RecordingMetaData") @SequenceGenerator( name ... EntityManager runs the queries (JPQL SELECT statements) shown next.  Query We test

Retrieving JPA Entities

its persistence context, it returns the existing managed object without querying the database. Otherwise, JPA ... , getReference might return a hollow object instead of querying the database immediately. It never returns null ... an entity and another for checking a persistent field of an entity. Retrieval by query The Query

Index Definition

Querying without indexes requires sequential iteration over entities in the database. If many ... this full iteration, allowing complex queries over millions of objects to execute quickly ... lastName; Address address; : } Indexes in queries ObjectDB manages a B-tree for every index. A B-tree

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

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

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.

JPA Extended API Reference Guide

, query facilities, metamodel details, configuration options, annotations, and exception information ... the fundamental classes and interfaces for entity management and persistence operations. Covers the query API, criteria queries , and JPQL for data retrieval and manipulation. Describes the metamodel and graph APIs

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

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

Deleting JPA Entities

the database. DELETE Queries DELETE queries provide an alternative way to remove entities from the database. They are especially useful for deleting many entities in a single operation. For more information, see DELETE Queries in JPA/JPQL .

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 ... name , Query query ) Define the query , typed query , or stored procedure query as a named query such that future query objects can be created from it using the EntityManager.createNamedQuery or

JPA Fetch Plan Graphs

Jakarta Persistence (JPA) Entity Graphs optimize query performance by specifying which attributes should be loaded eagerly. Graph definitions Use the following interfaces to define ... as a template for a query or find operation, allowing you to override the default fetch strategies

JPA Connections and Transactions

the EntityManager . An EntityManager instance also functions as a factory for Query instances, which are used to execute database queries . Every JPA implementation provides classes that implement

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.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.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

JPA Lifecycle Events

with the database operation that triggers the event, callback methods must not call EntityManager or Query methods

JPA Core Types

) and close it upon shutdown. The primary interface for performing CRUD operations, building queries

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

jakarta.persistence.criteria.CommonAbstractCriteria

The CommonAbstractCriteria interface defines functionality that is common to both top-level criteria queries ... directly in query construction. Note that criteria queries and criteria update and delete operations are typed differently. Criteria queries are typed according to the query result type. Update

jakarta.persistence.criteria.Path.get(String)

to avoid the use of Path variables . For example: CriteriaQuery q = cb.createQuery(Person.class); Root

jakarta.persistence.criteria.ParameterExpression

, TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2.0 Public ... do not affect the query . Inherited from Selection Returns: list of selection items. Throws ... to this type. This method is required to be supported for criteria queries only. Applications that use

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

, the inability to robustly query relationship fields in a web application renders the ObjectDB ... showing the query result in indexTest.xhtml. The problems is illustrated by running the attached JavaEE ... . For a number of different List fields, a query performed immediately after creating and persisting

jakarta.persistence.FlushModeType

Enumerates flush modes recognized by the EntityManager . When queries are executed within a transaction, if AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or

jakarta.persistence.EntityManager.createNamedQuery(String,Class)

for executing a Jakarta Persistence query language named query . The select list of the query must contain ... . Parameters: name - the name of a query defined in metadata resultClass - the type of the query result Returns: the new query instance. Throws: IllegalArgumentException - if a query has not been defined

Query on primary key is slow when using 'IN'

); } } } We have about 200M instances of this entity. The following query finishes instantly: SELECT FROM ... = '1344770') Query plan 1/2 description ============================ [Step 1] Scan type eu.extech ... equalities to IN, the query suddenly takes 2.5 minutes: SELECT FROM ProductVariantStoreData d WHERE d

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

ObjectDB 1.0 Manual

and delete database objects. Chapter 7 - JDOQL Queries Describes JDOQL, the JDO Query Language. The last