ObjectDB Database Search

1-50 of 200 results

JPA Criteria API Queries

The JPA Criteria API provides an alternative way to define JPA queries. It is useful for building dynamic queries whose structure is known only at runtime. JPA Criteria API vs. JPQL JPQL queries ... Java objects that represent query elements. A major advantage of the Criteria API is that it enables

SELECT clause (JPQL / Criteria API)

in criteria queries The criteria query API provides several ways to set the SELECT clause. Single ... it as the SELECT clause content, overriding any previously set SELECT content. Many valid criteria API expressions can be used as a selection because criteria API expressions are represented by Expression

JPA Extended API Reference Guide

Jakarta Persistence API (JPA) 3.2 documentation, generated from the official JavaDoc and enriched with practical notes. It groups the API types into logical sections to help you locate core concepts ... the fundamental classes and interfaces for entity management and persistence operations. Covers the query API

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases ... of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA

JPA Metamodel API

The JPA Metamodel API enables you to examine the persistent object model and retrieve details ... API is Metamodel . You can obtain an instance from either the EntityManagerFactory 's getMetamodel ... . Type interface hierarchy In the Metamodel API , types are represented by interfaces that extend the Type

JPA Query API

because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API , and named queries In ... Criteria API provides an alternative way to build dynamic queries. It uses Java objects that represent

WHERE clause (JPQL / Criteria API)

JPQL query: SELECT c FROM Country c WHERE c.population :p can be built using the criteria query API

Paths and Types in JPQL and Criteria API

the JPA Criteria API by the Path interface and its subinterfaces, such as From , Root , and Join

ORDER BY clause (JPQL / Criteria API)

the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class); Root c = q

FROM clause (JPQL / Criteria API)

Explains how to use the FROM clause and JOIN expressions in a JPA/JPQL query.

Logical Operators in JPQL and Criteria API

Explains how to use AND, OR and NOT in JPQL queries.

ObjectDB API Reference

All about ObjectDB API Reference in Java/JPA database - explanations, examples, references, links and related information.

ObjectDB APIs

All about ObjectDB APIs in Java/JPA database - explanations, examples, references, links and related information.

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.

JPA Metamodel and Graphs

The Jakarta Persistence (JPA) Metamodel API provides a type-safe way to introspect the persistent ... the persistence unit metadata through the main entry point interface: Serves as the central ... to retrieve entity and attribute information by class or name, similar to the reflection API in Java

JPA Core Types

your ObjectDB database. An alternative bootstrap class that offers a programmatic API for configuration ... back transactions. Utilities and Caching Access metadata , manage schema, and interact with the second-level ... attributes, and access entity content not yet fetched due to lazy loading. Provides an API for programmatic

jakarta.persistence.PersistenceConfiguration

via this API reflect the similarly-named elements of the persistence.xml file. This API may not be used ... should be considered a Java SE persistence unit, even when this API is used within the Jakarta EE environment ... SCHEMAGEN_CREATE_SOURCE The source of artifacts to be created. Standard sources are: metadata

Database Explorer

classes and metadata field specifies a path for locating persistent classes and XML metadata . This field is optional; you can browse and edit ObjectDB database files even when class and metadata files

jakarta.persistence.EntityManager

, that is scheduled for removal from the database upon transaction commit. The EntityManager API is used ... . Parameters: name - the name of a query defined in metadata Returns: the new query instance. Throws ... . Parameters: name - the name of a query defined in metadata resultClass - the type of the query

ObjectDB Object Database Features

support of the JPA and JDO APIs . Fundamental features of relational databases (e.g. primary keys ... database files (the ObjectDB Doctor ). Standard Persistence APIs ObjectDB is the only Object-Oriented Database with built in support for  JPA . Java Persistence API (JPA) Most features of JPA

ObjectDB - JPA Object Database for Java

using the Java Persistence API (JPA). It is the first persistence solution that combined a powerful ... tutorial now...   Protect your investment. Use a standard Java API . ObjectDB became the first Object Oriented Database with built in support for the two standard Java database APIs : Java

Query Parameters in JPA

does not provide an API to define parameters explicitly (except when using the Criteria API ). Instead ... over ordinal parameters. Criteria Query Parameters In a JPA query built using the JPA Criteria API ... , parameters are more flexible and support elements that are unavailable as literals, such as entities. API

JPA Annotations

Jakarta Persistence (JPA) uses annotations to define metadata that governs how the persistence engine manages objects and their database mappings. These annotations configure entity behavior ... and Spring environments. Relational and SQL mapping The following categories provide metadata

JPA Persistence Unit

the database URL, user name, and password, as demonstrated above. XML mapping metadata ObjectDB supports XML metadata as an alternative to annotations. This manual focuses on annotations

Is ObjectDB better than competing object databases?

: ObjectDB is unique in supporting the standard APIs . It is the only object database with built in support for the Java Persistence API (JPA). It also supports a more recent and advanced version of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA

jakarta.persistence.EntityManagerFactory

via the PersistenceConfiguration API . Every persistence unit has a transaction type , either JTA , or RESOURCE_LOCAL . Resource ... other useful APIs : an instance of Metamodel exposing a model of the managed types associated ... , information that can be set by means of the query APIs can be overridden. Information

JPA Queries

Jakarta Persistence provides powerful APIs for executing database queries using JPQL strings or the programmatic Criteria API . These interfaces support both static and dynamic query construction ... instructions, refer to the JPA Query API section in the ObjectDB manual. Criteria query API

jakarta.persistence.StoredProcedureQuery

specified in metadata Returns: the result that is passed back through the parameter. Throws ... of the parameter as registered or specified in metadata type - type of the parameter Returns: the same query ... of the specified type to allow access to a provider-specific API . If the provider implementation

JPA Container Injection Annotations

metadata . A container annotation for declaring multiple @PersistenceUnit definitions on a single class

JPA ORM Mapping Annotations

Jakarta Persistence (JPA) provides a comprehensive set of annotations and enums for mapping object models to relational database schemas. These metadata elements define how entities, attributes, and relationships translate to tables, columns, and foreign keys. While ObjectDB ignores these ORM

JPA Query Expressions (JPQL / Criteria)

Criteria API expressions. Atomic expressions The atomic query expressions are: JPQL / Criteria Variables ... with operators and functions. Operators and functions JPQL and the Criteria API support the following ... the following pages: Detailed explanations of how to build Criteria API expressions are provided

JPA Criteria FROM and JOIN

The Jakarta Persistence Criteria API uses a specific set of interfaces to construct the FROM ... variables are represented in the Criteria API by subinterfaces of the abstract From interface: Defines ... ;with query results.  The following interfaces manage fetch operations within the Criteria API

JPA Class Enhancer

into an ANT build script, as follows: Enhancement API The ObjectDB Enhancer can also be invoked from ... ()); The enhancement API and invocation of the Enhancer from Java code is useful, for instance, in

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus. The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API . ObjectDB is a full featured

ObjectDB Overview

Features 100% pure Java Object-Oriented Database Management System (ODBMS). No proprietary API - managed only by standard Java APIs (JPA / JDO 2). Extremely fast - faster than any other JPA / JDO

Chapter 4 - JPA Queries (JPQL / Criteria)

and the Jakarta Persistence (JPA) Criteria Query API , which provides an alternative way to build queries in JPA. The first section describes the JPA API for running dynamic and static (named) queries

jakarta.persistence.EntityManagerFactory.addNamedQuery(String,Query)

APIs can be overridden. Information that is overridden does not affect the named query as registered ... has been previously defined, either statically via metadata or via this method, that query definition

Which API should I use - JPA or JDO?

You can use ObjectDB with either the Java Persistence API (JPA) or the Java Data Objects (JDO) API ... the primary API , and if necessary, switch to JDO as a secondary API for special additional features that are supported only by JDO. Selecting the more popular API leads to more portable application

JPA Criteria Query Expressions

Jakarta Persistence (JPA) Criteria API uses a hierarchy of interfaces to model query conditions and selections, enabling the construction of dynamic, type-safe queries. These interfaces represent the building blocks for defining query logic programmatically. The hierarchy of the expression

JPA Metamodel Attributes

The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the attributes of managed persistent types (entities, embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence (JPA) 3. Base attribute definitions

JPA Metamodel Types

The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence (JPA) 3.2 Base type definitions The core abstractions of model types

JPA Query Structure (JPQL / Criteria)

list links to detailed explanations of how to build clauses for Criteria API queries: Criteria SELECT

Is ObjectDB better than Object Relational Mapping (ORM)?

is developed for an existing old relational database). By using the Java Persistence API (JPA

JPA Criteria Queries

The Jakarta Persistence (JPA) Criteria API provides a type-safe, programmatic alternative to string-based JPQL for constructing dynamic queries, ensuring compile-time safety and facilitating easier refactoring. It defines a structured hierarchy of interfaces for SELECT, UPDATE, and DELETE

ObjectDB 2.9 Developer's Guide

Welcome to ObjectDB for Java/JPA Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JPA (Java Persistence API ). The main purpose of this guide is to make you productive with ObjectDB and JPA in a short time. Guide Structure Demonstrates basic database

JPA Connections and Transactions

Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview A connection to a database is represented by an EntityManager instance, which also provides methods for performing database operations. Many applications require multiple database connections

JPA Criteria Query Selection and Results

The JPA Criteria API provides type-safe interfaces for defining query result expressions and ordering, mirroring the SELECT and ORDER BY clauses in JPQL or SQL. These interfaces allow you to specify exactly what data is returned and how it is sorted within the result set. SELECT clause elements

Step 1: Create a Maven Web Project

.transaction jta 1.1 javax.servlet servlet- api 2.5 provided javax.servlet.jsp jsp- api 2.1 provided org

Step 1: Create a Maven Web Project

;      javax.servlet    servlet- api    2.5    provided        javax.servlet.jsp    jsp- api    2.1    provided

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API (JPA ... , and it is probably the most popular Java API for object databases today.