ObjectDB Database Search

101-150 of 200 results

Explorer in 2.3

servers, it may be faster for local files. 3 . On the Query page, please add a checkbox to request ... expressions in the execution tab. Try the following query : SELECT 2 + 3 . This is currently ... to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive

ObectDb 2.3.6 in OSGi environment

query =  (TypedQuery ) this.dbService.createNamedQuery("RuleValueNode.findRoot", RuleValueNode ... .findRoot", query = "SELECT rvn FROM RuleValueNode rvn where rvn.parent is null"),   @NamedQuery(name = "RuleValueNode.findNotNodes", query = "SELECT rvn FROM RuleValueNode rvn where rvn.value.not

ObjectDB version 2.3 has been released

ObjectDB 2. 3 has been released and it includes important additions and fixes: Added the ability to edit databases in the Explorer ( issue #2 ). Added the ability to execute queries in the Explorer (issue # 3 ). Other small Explorer improvements. Added support of IN operator in JPQL queries . Added

jakarta.persistence.Query.getParameterValue(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Object getParameterValue (    int position ) Return the input value bound to the positional parameter. (Note that OUT parameters are unbound.) Parameters: position - position Returns: parameter value. Throws

jakarta.persistence.Query.isBound(Parameter)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query boolean isBound (    Parameter param ) Return a boolean indicating whether a value has been bound to the parameter. Parameters: param - parameter object Returns: boolean indicating whether parameter has been bound. Since: Jakarta Persistence (JPA) 2.0

GROUP BY and HAVING clauses

The GROUP BY clause groups query results. A JPQL query with a GROUP BY clause returns properties of the resulting groups instead of individual objects and fields. In the query execution order ... . When a query includes a GROUP BY clause, the database objects (or tuples) that result from the FROM clause

jakarta.persistence.criteria.AbstractQuery

Persistence (JPA) 3 .2 boolean isDistinct () Return whether duplicate query results must be eliminated or ... removed. Parameters: restrictions - a list of zero or more restriction predicates Returns: the modified query . Since: Jakarta Persistence (JPA) 3 .2 ... functionality that is common to both top-level queries and subqueries. It is not intended to be used

jakarta.persistence.EntityManagerFactory

Object.class meaning all queries Returns: a map keyed by query name. Since: Jakarta Persistence (JPA) 3 ... , 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

JPA Core Types

and inheritance relationships. Jakarta Persistence (JPA) 3 .2 Core Types Bootstrapping and Configuration ... ) and close it upon shutdown. The primary interface for performing CRUD operations, building queries

Database Explorer

it to view data, execute JPQL and JDOQL queries , and edit database content. Running the Explorer ... (entity and embeddable classes) in the database and their persistent fields and indexes. The Query window lets you run JPQL and JDOQL queries , as discussed later. Closing a database connection To close

WHERE clause (JPQL / Criteria API)

for retrieving a specific subset of objects from the database. How a WHERE clause works The following query ... FROM Country c WHERE c.population :p The FROM clause of this query defines an iteration ... to the SELECT clause to be collected as query results, the WHERE clause acts as a filter. The boolean

ORDER BY clause (JPQL / Criteria API)

The ORDER BY clause specifies the order for the query results. Any JPQL query that does not ... expressions The following query returns the names of countries with a population of at least one million ... If a query includes an ORDER BY clause, it is the last clause to be executed. The FROM clause first

JPA Runtime Tuning & Configuration

dynamic options that control runtime behavior and allow you to adjust settings per session, query , or ... every operation in that session. Query (definition): Settings applied to a Query object override session defaults for that query . Operation (argument): Settings passed to specific EntityManager operations ( find

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

Database Management Settings

, which modify the database. For debugging query failures, you might need to record "all" operations to reproduce ... can use the new indexes to accelerate relevant queries . The element The element specifies settings for the two query cache mechanisms that ObjectDB manages: The results attribute specifies the size

Paths and Types in JPQL and Criteria API

numbers, booleans, strings, and dates. Values of simple types are more useful in queries ... private, which is usually the case. Navigation through a NULL value The following query retrieves country ... variables) is skipped. To better understand how this works, consider the equivalent JOIN query

jakarta.persistence.criteria.ParameterExpression

, TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2.0 Public ... of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ... . Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate to test

jakarta.persistence.criteria.PluralJoin

query construction. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ... Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2

jakarta.persistence.criteria.Root

, TupleElement A root type in the from clause. Query roots always reference entities. Since: Jakarta ... of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ... . Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate to test

jakarta.persistence.criteria.MapJoin

of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Expression entry () Create an expression ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 ... testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch ( SingularAttribute attribute

jakarta.persistence.criteria.SetJoin

. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 ... testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch ( SingularAttribute attribute

jakarta.persistence.criteria.CollectionJoin

of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create ... . Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate to test ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch

jakarta.persistence.criteria.ListJoin

. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... - expression to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 ... : predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch ( SingularAttribute

jakarta.persistence.criteria.From

) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test whether the expression ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ... . Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join

jakarta.persistence.criteria.Join

of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create ... . Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Fetch fetch

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

ObjectDB 2.3.3

Improved compilation performance of OR queries with many elements. Fixed eager fetch of maps and nested embedded objects. Fixed a bug in removing a new flushed entity object before first commit ( issue #562 ). Fixed a NullPointerException in accessing inverse (mapped by) collection fields

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

: - the type of the expression Super Interfaces: Selection , TupleElement Type for query expressions. Since: Jakarta Persistence (JPA) 2.0 The JPA Query Expressions (JPQL / Criteria) article explains ... (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test whether the expression

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form ... , while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB supports both notations. Binary AND (&&) operator The following query retrieves countries whose population

Online Backup

You can start an online backup by executing a special query on an EntityManager ( em ) instance ... ").getSingleResult(); The backup query string is always "objectdb backup" . The backup is created in the backup ... a custom backup root directory by setting the target parameter before you execute the backup query

JPA Exceptions

locking wait times. Query exceptions Exceptions specific to query execution and result retrieval: Thrown by Query .getSingleResult() when the query returns no results. Thrown by Query .getSingleResult() when the query returns more than one result. Thrown when a query exceeds the specified timeout limit

jakarta.persistence.criteria.Predicate

Returns: a scalar expression of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate ... testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create ... Persistence (JPA) 3 .2 String getAlias () Return the alias assigned to the tuple element or null

jakarta.persistence.criteria.CriteriaBuilder.In

type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate ... Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate to test whether the expression ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 String getAlias () Return

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

jakarta.persistence.criteria.Path

expression of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ... for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate ... ) 3 .2 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single

jakarta.persistence.criteria.CriteriaBuilder.Case

Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate ... for equality. Since: Jakarta Persistence (JPA) 3 .2 String getAlias () Return the alias assigned

jakarta.persistence.criteria.CriteriaBuilder.Coalesce

Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate ... for equality. Since: Jakarta Persistence (JPA) 3 .2 String getAlias () Return the alias assigned

jakarta.persistence.criteria.CriteriaBuilder.SimpleCase

Persistence (JPA) 3 .2 Predicate equalTo ( Expression value ) Create a predicate to test ... to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate ... testing for equality. Since: Jakarta Persistence (JPA) 3 .2 String getAlias () Return the alias assigned

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.

Updating JPA Entities

and provide better support for automatic change tracking. UPDATE queries UPDATE queries provide an alternative way to update entities in the database. Using an UPDATE query is useful, especially when you must modify many entities in a single operation. The UPDATE Queries in JPA/JPQL section in Chapter 4 explains how to use JPA UPDATE queries .

ObjectDB 2.3.0

queries in the Explorer (issue # 3 ). Other small Explorer improvements. Added support of IN operator in JPQL queries . Added support of ";drop" database url parameter. Adjusted the Enhancer to the new ... to memory leak ( issue #453 ). Completed missing documentation (e.g. UPDATE & DELETE queries ). Fixed

Dynamic Metadata (JDO 3.0)

JDO 3 introduces the ability to specify and query metadata of persistable types dynamically. ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e ... generated classes. In addition, the metadata of classes can be queried at runtime (similarly to reflection in Java). support Support

ObjectDB 2.3.5

Added support of DATE(...) and TIME(...) methods in queries . Added new Explorer and Server exe (for Windows 7 and 64 bits). Fixed handling a Calendar parameter value in criteria queries . Fixed using type operator and literals in client server queries ( issue #605 ). Fixed eager fetch issues. Fixed

ObjectDB 2.3.7

; toString of criteria queries to use aliases ( issue #12 7). Fixed automatic variable naming in criteria queries ( issue #640 ). Fixed a bug in handling mapped super classes. Fixed bugs in using casting in queries (including issue #642 and issue #646 ). Fixed bugs in processing JOIN queries (including

Eclipse/JPA Java EE Tutorial

for Java EE Developers. GlassFish Server 3 .0.1 (or above). The last version of ObjectDB (just download and extract). The tutorial was written for Eclipse 3 .6.1 but it should work with other Eclipse versions ... : ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps:

[ODB1] Chapter 2 - A Quick Tour

a list of strings in a database. 2 3 import java.util.*; 4 import javax.jdo.*; 5 import com ... .currentTransaction().commit(); 38 pm.close(); 39 } 40 } How it works   Lines 3 -5 Three import statements are required: for Java collections (line 3 ), for JDO (line 4) and for ObjectDB extensions

Step 1: Create a Maven Web Project

.springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE org.springframework spring-orm 3 .0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2.2 org.aspectj aspectjweaver

Step 1: Create a Maven Web Project

       org.springframework    spring-webmvc    3 .0.5.RELEASE        org.springframework    spring-tx    3 .0.5.RELEASE        org.springframework    spring-orm    3 .0.5.RELEASE

Step 1: Create a Java EE 6 Web Project

a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button ... to GlassFish 3 (which has to be downloaded separately) . Click the Finish button to create the Java EE 6