ObjectDB Database Search

51-100 of 200 results

Database Doctor

of the Operating System, Java or ObjectDB). Copying a database file while it is open and in use ... . It can be run from the command line: $ java -cp objectdb.jar com.objectdb.Doctor my.odb If objectdb.jar ... two command line arguments: $ java -cp objectdb.jar com.objectdb.Doctor old.odb new.odb The first argument

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 ... this guide, but a strong background and understanding of the Java language is essential

Is ObjectDB a NoSQL Database?

, using two standard Java query languages: JPQL ( Java Persistence Query Language) and JDOQL (JDO ... , but they are easier to use in object oriented languages such as Java . In addition, unlike most other NoSQL databases

Posting Sample Code

. Whenever possible: Use a single Java file with one main class + static inner classes for entity ... test; import java .util.*; import javax.persistence.*; public final class MyTestCase {    ... a persistence unit, An entity or IdClass class should implement the java .io.Serializable interface).

Paths and Types in JPQL and Criteria API

value. In Java , a NullPointerException is thrown on any attempt to access a field or a method via a null ... of a specified argument, similarly to java .lang.Object 's getClass method in Java . The following query

About Us

ObjectDB Software develops, markets and supports the ObjectDB Object-Oriented Database Management System (ODBMS). ObjectDB Software is the market leader in providing a very high performance persistence solution for Java , based on the Java Persistence API (JPA) and the Java Data Objects (JDO

Database Transaction Replayer

. It can be run from the command line: $ java -cp objectdb.jar com.objectdb.Replayer my.odb If objectdb.jar ... up to a specified transaction, e.g.: $ java -cp objectdb.jar com.objectdb.Replayer my.odb 1000

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables that represent iteration over objects in the database. A query identification variable is similar to a variable of a Java enhanced for loop in ... Identifiers The name of a JPQL query variable must a valid Java identifier

Date and Time in JPQL and Criteria Queries

- is evaluated to the current date (a java .sql.Date instance). CURRENT_TIME - is evaluated to the current time (a java .sql.Time instance). CURRENT_TIMESTAMP - is evaluated to the current timestamp, i.e

Is ObjectDB better than competing object databases?

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

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 JPA is JPQL ( Java Persistence Query Language). It enables retrieval of objects from the database by

Query Parameters in JPA

. setParameter ("date", new java .util.Date(), TemporalType . DATE ); Since TemporalType . Date represents a pure date, the time part of the newly constructed java .util.Date instance is discarded

SpringBoot-Point

. The backend (the server side) is implemented using  Java and SpringBoot , where the data, i.e ... in the Java Object Model section. The other components are explained in the next pages

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

Chapter 6 - Configuration

: $ java "-Dobjectdb.home=/odb" ... The Configuration File As noted above, by default ... "); It can also be set as an argument to the JVM: $ java "-Dobjectdb.conf=/my/objectdb.conf

Online Backup

;backupQuery.setParameter("target", new java .io.File("c:\\backup"));     backupQuery ... argument is specified as a java .io.File instance and em represents a client-server connection

ObjectDB Overview

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

Database Management Settings

are generated by running the Activator utility: $ java -cp objectdb.jar com.objectdb.Activator from

SELECT clause (JPQL / Criteria API)

results more precisely can improve performance and in some cases can also reduce the amount of Java

Storing JPA Entity Objects

(). commit (); The Employee instance is constructed as an ordinary Java object and its initial state

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 Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the use of query  parameters

DELETE Queries in JPA/JPQL

variable ObjectDB supports using the java .lang.Object  class in queries (as an extension to JPA

Where can I learn how to use ObjectDB?

The best source for learning ObjectDB is the ObjectDB Manual , which contains all the necessary information for using ObjectDB. The only required background is a good understanding of the Java language. Reading the manual and getting started with ObjectDB could be easier for developers with prior

Is ObjectDB better than Object Relational Mapping (ORM)?

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

JPA Query API

queries,  based on Java objects that represent query elements (replacing string based JPQL). JPA

Eclipse/JPA Web Application Tutorial

This is the Eclipse version of the JPA Web App tutorial. It demonstrates how to create and run a database driven Java web application in Eclipse - using Tomcat 6, ObjectDB and JPA ... For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers

Step 3: Define an EJB Session Bean

that we will define in this step: Open the [New Java Class] dialog box by right clicking the guest package ... with the following code: package guest; import java .util.List; import javax.ejb.Stateless; import javax.persistence ... are only supported by Java EE application servers such as GlassFish and JBoss, and not by servlet containers

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... of the new source file with the following code: package guest; import java .io.IOException; import java

JPA Web App Tutorial - Maven Project

The  JPA Web Application tutorial provides step by step instructions on how to build a simple Java /JPA database driven web application (for Tomcat / Jetty) in  Eclipse or  NetBeans ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

Step 2: Define a JPA Entity Class

; import java .io.Serializable; import javax.persistence.*; @Entity public class Point implements ... (and its annotations) - the Point class is an ordinary Java class. The next step is adding to the project

Step 1: Create a Maven Web Project

Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring ... -classes                java   

Step 7: Run the Spring Web App

automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue

Step 4: Run the Application

You can now run the application by right clicking the Main. java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... replace the content of the new source file with the following code: package guest; import java .util

Spring MVC JPA Tutorial - Maven Project

The  Spring MVC JPA tutorial provides step by step instructions on how to build a simple Java /JPA Spring MVC database driven web application in  Eclipse or  NetBeans . Building a new ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... of the new source file with the following code: package guest; import java .io.IOException; import javax

Step 4: Add a Servlet Class

; New Other... Web Servlet and clicking  Next . The Java package name should be guest. Enter ... guest; import java .io.IOException; import javax.ejb.EJB; import javax.servlet.ServletException

Getting Started with JPA and NetBeans

-  x and  y . For this tutorial, besides the Java JDK (8 or above) and the NetBeans IDE (any bundle that includes Java is expected to work), you only need to download and extract

Spring MVC and JPA Tutorial

This tutorial demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application using Tomcat (or GlassFish), JPA, ObjectDB and Maven. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New Class . The package name should be  guest . Enter  GuestController as

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener

Step 1: Create a Maven Web Project

.2 enhance process-classes java com.objectdb.Enhancer guest.Guest org.mortbay.jetty maven-jetty

Step 3: Add a Main Class

tutorial; import javax.persistence.*; import java .util.*; public class Main { public static void main

Step 3: Add a Main Class

.persistence.*; import java .util.*; public class Main { public static void main(String[] args) { // Open

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed

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. Both share similar architecture, design and abilities. When to prefer JPA JPA ... databases and it is probably the most popular Java API for object databases today.