Internal Website Search

1-50 of 200 results

JPA Criteria API Queries

The JPA Criteria API provides an alternative way for defining JPA queries, which is mainly useful for building dynamic queries whose exact structure is only known at runtime. JPA Criteria API vs ... of using the criteria API is that errors can be detected earlier, during compilation

JPA Metamodel API

The JPA Metamodel API , which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API . The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties

SELECT clause (JPQL / Criteria API)

of the query result list and other factors. SELECT in Criteria Queries The criteria query API   ... ;(overriding previously set SELECT content if any). Every valid criteria API expression can be used as selection, because all the criteria API expressions are represented by a sub interface

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 provides the ability to examine the persistent object model and retrieve ... Metamodel API is Metamodel . It can be obtained either by the EntityManagerFactory 's getMetamodel ... the specified type to ObjectDB. Type Interface Hierarchy Types are represented in the Metamodel API by

JPA Query API

variant is valid because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API ... can be built dynamically at runtime. The JPA Criteria API provides an alternative way for building dynamic

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API : See the Metamodel Attribute Interface Hierarchy section for more details and examples.

JPA Metamodel API Types

The following interfaces and enum represent types in the JPA Metamodel API :  See the Metamodel Type Interface Hierarchy section for more details and examples.

WHERE clause (JPQL / Criteria API)

can be built by using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class

Paths and Types in JPQL and Criteria API

and navigations are represented in the JPA Criteria API  by the Path interface and by

ORDER BY clause (JPQL / Criteria API)

can be built using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class

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.

[ODB1] Chapter 4 - JDO Metadata

A JDO metadata file is an XML file with a '.jdo' suffix, containing information about one or more persistent classes. All the persistent classes, and only them, have to be declared in a metadata file. The metadata is used first by the JDO Enhancer, and later by the JDO

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 2 . Java Persistence API (JPA) Most features of JPA 2

JPA Persistence Unit

demonstrated above. XML Mapping Metadata ObjectDB supports using XML metadata as an alternative ... annotations which are more common and usually more convenient. Details on using XML metadata

Database Explorer

. The [Classpath for persistent classes and metadata ] field specifies a path to locate persistent classes and XML metadata . Setting this field is not mandatory because you can browse and edit ObjectDB database files when class and metadata files are not available. Some features of the Explorer

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

identifier that serves as the parameter name. JPA does not provide an API for defining the parameters explicitly (except when using criteria API ), so query parameters are defined implicitly by ... that is built by using the JPA Criteria API - parameters (as other query elements) are represented by objects

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

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API ... ;(e.g. "SELECT c FROM Country" ). Criteria Query API Building dynamic queries with a structure ... Query API , as a cleaner alternative that enables building a dynamic query by using instances

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 Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The JPA types are organized into the following sections: The purpose

JPA Class Enhancer

Similarly, enhancement can be also be integrated into an ANT build script, as so: Enhancement API ... .*,test.X", text.X.class.getClassLoader()); The enhancement API and invocation of the Enhancer from

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

API - managed only by standard Java APIs (JPA 2 / JDO 2). Extremely fast - faster than any other JPA

Chapter 4 - JPA Queries (JPQL / Criteria)

well as how to use the JPA Criteria API , which provides an alternative way for building queries in JPA, based on JPQL. The first section describes the API that JPA provides for using dynamic and static

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content of the database. The persistence context serves as a cache of retrieved entity objects. If a requested

Is ObjectDB better than Object Relational Mapping (ORM)?

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

Chapter 3 - Using JPA

This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: The next section explains how to use JPA for database CRUD operations: More advanced topics (e.g. locking and events) are discussed in the last section:

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 This manual is divided into

Database Connection using JPA

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 functionality for performing operations on a database. Many applications require multiple database

Criteria Query Selection and Results

The JPA Criteria API interfaces in this group are used for setting the SELECT and ORDER BY clauses and for representing query results as tuples. SELECT Clause Elements The content of the SELECT clause in a criteria query is represented by Selection : Because Selection  is a super interface

GROUP BY and HAVING clauses

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

[ODB1] Chapter 2 - A Quick Tour

. To become persistent, a class has to: be declared in a JDO metadata file in XML format. include ... constructor (line 11). If it is declared as persistent in a JDO metadata file, it can easily become persistent using the JDO enhancer. JDO Metadata Every persistent class must be declared as persistent in

[ODB1] Chapter 9 - ObjectDB Explorer

command (or the equivalent context menu command). Notice that JDO metadata for the class (as discussed ... metadata ) for a persistent class that already has persistent instances in the database ... metadata ) to a class that already has persistent instances in the database. You can also start

[ODB1] Chapter 3 - Persistent Classes

has to: be declared in a JDO metadata file in XML format. include a no-arg constructor. implement ... only have to provide the JDO metadata declaration. Chapter 4 explains how to write the JDO metadata declaration ... in the JDO metadata (useful when a field has to be transient in serialization but persistent in JDO

javax.jdo.spi.JDOPermission.GET_METADATA

JDO Static Field in javax.jdo.spi.JDOPermission GET_ METADATA An instance of JDOPermission to be used for getMetadata permission checking. Since: JDO 1.0

javax.jdo.spi.JDOPermission.MANAGE_METADATA

JDO Static Field in javax.jdo.spi.JDOPermission MANAGE_ METADATA An instance of JDOPermission to be used for manageMetadata permission checking. Since: JDO 1.0

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

ObjectDB 1.0 Manual

class is and which types are supported by JDO. Chapter 4 - JDO Metadata Shows how to define JDO metadata for persistence capable classes. Chapter 5 - JDO Connections Shows how to use database connections

[ODB1] Chapter 6 - Persistent Objects

. But, because these classes are not described in the JDO metadata files, the enhancer identifies them as not

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.

[ODB1] Chapter 1 - About ObjectDB

code. The JDO API is available today for most relational database systems (RDBMS), e.g. Oracle, IBM ... URL), because the JDO API is the same for both modes. 1.3  ObjectDB Editions ObjectDB

[ODB1] Chapter 8 - ObjectDB Server

mode are discussed in Section 1.2 . Because the JDO API and the format of the database file

JDO Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of JDO 2.2. The content is derived from the original JDO documentation with some additions and notes. The most basic JDO types are: All the other JDO types are organized into the following sections: