Internal Website Search

51-100 of 200 results

WHERE clause (JPQL / Criteria API)

JPQL query that retrieves selective objects from the database . Out of the four optional clauses ... over all the Country objects in the database using the c range variable. Before passing these Country ... with millions of objects in the database there is a huge difference in query execution time if proper

What is the Java Persistence API (JPA)?

(as classes and objects ). ObjectDB is the only database management system with built in support ... 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

Setting and Tuning of JPA Queries

in Query and TypedQuery support method chaining (by returning the query object on which they were invoked). Flush Mode (setFlushMode) Changes made to a database using an EntityManager em can be visible ... is executed, uncommitted database changes (if any) have to be flushed to the database in order

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 ... objects (and graphs of objects ) in an ObjectDB database directly. There's no need to define tables

JPA Exceptions

: Exceptions can also be thrown on an attempt to retrieve entity objects from the database . For example ... (above) may also be thrown during retrieval, if database lock has been requested for retrieved entity objects and it cannot be granted. ... JPA exceptions are represented by a hierarchy of unchecked exceptions: java.lang. Object java.lang

Chapter 1 - Quick Tour

on how to start using JPA in your IDE with the ObjectDB object database . Given the simplicity of ObjectDB, that should be quick and easy even for a novice. ... ObjectDB databases and perform basic CRUD operations (Create/Store, Retrieve, Update and Delete) on ObjectDB databases . The example program that this chapter presents manages a simple database

Auto Generated Values

number generator for every database . This number generator is used to generate automatic object IDs for entity objects with no primary key fields defined (as explained in the previous section ). The same ... for every new entity object . These generated values are unique at the database level and are never recycled

Index Definition

Querying without indexes requires iteration over entity objects in the database one by one. This may take a significant amount of time if many entity objects have to be examined. Using proper ... but might be presented in the ObjectDB Explorer and in logging. When an entity object is stored in the database

What are the main benefits of using ObjectDB?

performance. Reducing Development Time and Costs ObjectDB makes database programming easier and faster. The ability to store ordinary objects in the database directly can simplify the code significantly ... fields can be stored by ObjectDB simply as part of the containing object . Relational databases lack

Is ObjectDB scalable? What are its limitations?

. Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections (limited by operating system resources). ... ObjectDB is highly scalable and can manage efficiently databases in a wide range of sizes, from ... supports: Database file size up to 128 TB (= 131,072 GB = 134,217,728 MB). Up to 2,147,483,648 entity

JPA Query API

which retrieves all the Country objects in the database is represented by both q1 and q2 . When building ... results and the lowest known common denominator of all the result objects is Object ... objects ), a TypedQuery is preferred. There is another advantage of using  TypedQuery  in

Company

ObjectDB Software develops, markets and supports the ObjectDB Object -Oriented Database Management ... persistence solution for Java, based on the Java Persistence API (JPA) and the Java Data Objects (JDO) standards, since ObjectDB is the first object oriented database with built in support of JPA and JDO

Query Parameters in JPA

) The following method retrieves a Country object from the database by its name: public Country ... ). getSingleResult (); } The WHERE clause reduces the query results to Country objects whose name field value ... that is built by using the JPA Criteria API - parameters (as other query elements) are represented by objects

JPA Named Queries

whose name is  "Country.findAll" that retrieves all the  Country objects in the database ... of, and that includes all the entity classes that have objects in the database . However, an attempt to use a named query ... queries. But, because mapping files are useful mainly for Object Relational Mapping (ORM) JPA providers

ObjectDB 2.9 Developer's Guide

to store, retrieve, update and delete database objects .         ... Welcome to ObjectDB for Java/JPA Developer's Guide. Here you can learn how to develop database ... ;Demonstrates basic database programming using ObjectDB and JPA.       

ObjectDB License Agreement [ver. 2.0.4]

of classes and objects in a database file s . The full edition of the Software (without the restrictions ... the ObjectDB Database Management System software ("The Software"), subject to the terms and provisions ... is distributed and only as part of the Customer's product ("The Product"). The Product is not a Database

ObjectDB License

; with the restriction of a maximum of  10 entity classes and one million entity objects per database file. This could be useful for small projects, academic assignments, evaluation and learning ... databases are managed, but using ObjectDB on client machines merely to access remote ObjectDB

Chapter 2 - JPA Entity Classes

JPA Entity classes are user defined classes whose instances can be stored in a database . To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes. 

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO ... - for storing a new  Guest entity object in the database . getAllGuests - for retrieving all the existing  Guest objects from the database . By using Spring components we can move some work from

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO ... - for storing a new  Guest entity object in the database . getAllGuests - for retrieving all the existing  Guest objects from the database . By using Spring components we can move some work from

Step 4: Add a Servlet Class

the next tutorial step) - a new Guest entity object is constructed and stored in the database . All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute ... , IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory

Step 4: Add a Servlet Class

is constructed and stored in the database . All the Guest entity objects are retrieved from the database ... , HttpServletResponse response) throws ServletException, IOException { // Obtain a database connection ... .getRequestDispatcher("/guest.jsp") .forward(request, response); } finally { // Close the database connection

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... objects in the database was created in the project (under Java Resources: src guest). Use copy ... with the specified database url. The next step is adding an EJB Session Bean that will manage Guest entity objects .

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... objects in the database was created in the project (under Source Packages guest). Use copy and paste ... with the specified database url. The next step is adding an EJB Session Bean that will manage Guest entity objects .

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click ...   Finish to create the new entity class. A new class that should represent  Guest objects in the database was created in the project (under Java Resources: src/main/java guest). Use  copy

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... objects in the database was created in the project (under Source Packages guest). Use copy and paste ... as a JPA provider with the specified database url. The next step is adding a Spring DAO Component class that will manage Guest entity objects .

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... to create the new class. The new class should represent Guest objects in the database . Use copy ... ; The new class should represent Guest objects in the database . Besides the @Entity annotation

Step 3: Define an EJB Session Bean

: persist - for storing a new  Guest entity object in the database . getAllGuests - for retrieving all the existing  Guest objects from the database . EJB classes are only supported by Java EE ... Operations on the database will be performed by an instance of a session bean (EJB) class

Step 3: Add a Main Class

to store Point objects in the database and then retrieve them from the database . Use copy and paste ... .createEntityManager(); // Store 1000 Point objects in the database : em.getTransaction().begin(); for (int i = 0; i ... a database connection // (create a new database if it doesn't exist yet): EntityManagerFactory emf

Step 3: Define an EJB Session Bean

) class defines two methods: persist - for storing a new Guest entity object in the database . getAllGuests - for retrieving all the existing Guest objects from the database . EJB classes ... Operations on the database will be performed by an instance of a session bean (EJB) class

Step 3: Add a Main Class

= emf.createEntityManager(); // Store 1000 Point objects in the database : em.getTransaction().begin(); for (int i = 0; i ... In this step we will add a main class to the project to store and retrieve Point objects from the database : Right click the tutorial package in the [Package Explorer] window and select New Class

Step 4: Add a Servlet Class

entity object is constructed and stored in the database . All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute. Then the processing is forwarded ... to generate the page output. Notice that operations on the database are carried on by the 

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... on " + signingDate + ")"; } } The new class should represent Guest objects in the database ... listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database .

Step 4: Add a Servlet Class

that will be added in the next tutorial step) - a new Guest entity object is constructed and stored in the database . All the Guest entity objects are retrieved from the database and stored in the request's ... on the database are carried on by the GuestDao session bean, which is instantiated and injected by

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database , which will be represented by ... a ServletContextListener to perform initialization and cleanup operations: The database will be opened (or ... . The database will be closed when the web application stops (or when the web server shuts down), by

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database , which will be represented by ... a ServletContextListener to perform initialization and cleanup operations: The database will be opened (or ... an EntityManagerFactory . The database will be closed when the web application stops (or when the web server shuts

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ... should represent Point objects in the database . Apart from the @Entity annotation and the id field

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window ... objects in the database . Besides the @Entity annotation and the id field (and its annotations

NetBeans/JPA Web Application Tutorial

. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database . Required Software For this tutorial ... ;to create and run a database driven Java web application in NetBeans - using Tomcat 6 Apache Tomcat

Eclipse/JPA Web Application Tutorial

is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database . Required Software ... ;to create and run a database driven Java web application in Eclipse - using Tomcat 6, ObjectDB and JPA

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using ... by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB database . This tutorial is available in the following versions: In addition the demonstrated application is available as a Maven project:

Step 4: Run the Application

, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation directory. Running the application again will use the existing database file to store an additional 1,000 objects . You can view the content of the database file by opening it in the ObjectDB Explorer

Report Generation with BIRT and JPA

simple as possible - we will use the basic  points.odb ObjectDB database file from the Getting Started tutorial. The database file contains 1,000 Point entity objects , which represent points ... This tutorial demonstrates how to create reports based on data in an ObjectDB database using

Step 4: Run the Application

the existing database file to store an additional 1000 objects . You can view the content of the database file ... ) When you run the application for the first time, a new ObjectDB database file is generated in the db sub

Step 4: Add a Controller Class

the next tutorial step) - a new Guest entity object is constructed and stored in the database . Processing ... output. The JSP uses the GuestDao component to display the existing Guest objects . The returned ModelAndView object defines a target JSP ( "guest.jsp" ) and passes the GuestDao component to the JSP as

Step 4: Add a Controller Class

object is constructed and stored in the database . Processing is forwarded to a JSP page ... component to display the existing Guest objects . The returned ModelAndView object defines a target JSP

JPA Tutorials

The following tutorials demonstrate how to develop database driven applications using JPA and the ObjectDB ODBMS ( Object Oriented Database Management System). Console JPA Tutorial The Quick Start tutorial demonstrates how to use ObjectDB and JPA in a console application: Quick Start with JPA

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open ... Points ).  Enter a data set name (e.g. Points by X ) and click Next . The database in this tutorial contains Point entity objects . We will use a simple JPQL query that retrieves points with x

ObjectDB 1.0 Manual

Welcome to the ObjectDB for Java/JDO Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JDO (Java Data Objects ), the revolutionary database programming ... and delete database objects . Chapter 7 - JDOQL Queries Describes JDOQL, the JDO Query Language. The last

[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases . Databases that are managed by a server ... these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database mode are discussed in Section 1.2 . Because the JDO API and the format of the database file