ObjectDB Database Search

1-50 of 200 results

Cache.contains(cls,primaryKey) - JPA Method

JPA Method in javax.persistence.Cache boolean contains (   Class cls,    Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Return: boolean indicating whether the entity is in the cache Since: JPA 2.0

EntityManager.contains(entity) - JPA Method

JPA Method in javax.persistence.EntityManager boolean contains (   Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Return: boolean indicating if entity is in persistence context

SELECT clause (JPQL / Criteria API)

copies that are not associated with the containing entities. Therefore, embedded objects ... The result list of this query contains Object[] elements, one per result. The length of each result Object[] element is 2. The first array cell contains the country name ( c.name ) and the second array

Collections in JPQL and Criteria Queries

if a specified element is contained in a specified persistent collection field. For example: 'English' MEMBER OF c.languages is TRUE if languages contains 'English' and FALSE if not. 'English' NOT MEMBER OF c.languages is TRUE if languages does not contain 'English' . [NOT] IN The [NOT] IN operator provides

Server User List

file contains the following element:              ... ;          Every element may contain one or more subelements ... permissions are granted. The comma separated string value may contain the following permissions

Index Definition

every indexed field must contain either null or a value of one of the following persistable types ... , java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain ... when using embeddable classes as fields of embedded object are stored as part of the containing entity

Storing JPA Entity Objects

of other persistable types can only be stored in the database embedded in containing entities (as field ... already contains another entity of the same type with the same primary key, an EntityExistsException ... containing entity objects. Therefore, if Address is defined as an embeddable class the Employee entity

Schema Update

configuration file contains an empty element. If the element is not empty ObjectDB tries to apply ... -name attribute is specified, a element serves as a  container of subelements for renaming classes ... (with no package name) because the package name is already specified in the containing element. The value

Database Explorer

. Running the Explorer The ObjectDB Explorer is contained in the explorer.jar executable jar file ... ;using the Tools Options...  menu command. The [Options] dialog box contains three tabbed pages: [General], [Fonts] and [Views]. The [General] Page The [General] page contains the following settings

GROUP BY and HAVING clauses

SUBSTRING(c.name, 1, 1); The query returns Object[] arrays of length 3, in which the first cell contains the initial letter as a String object, the second cell contains the number of countries in that letter's group as a Long object and the third cell contains the distinct number of currencies

JPA Persistence Unit

. Classes that are mentioned in mapping files as well as annotated classes in the JAR that contains ... directory that contains the META-INF/persistence.xml file. Other classes have to be registered ... annotations). Otherwise, the generators and named queries are available only when the containing

Database Transaction Replayer

default, the recording directory is generated in the directory that contains the database file ... directory contains two types of files: Backup files - with names of the form .odb Recording files ... of the file. A recording file, with the same transaction ID in its name, contains database operations

SSL Configuration

contains the following element: The enabled attribute of the ssl element (whose value is "true" or ... that functions as a unique signature of your server. This file contains general details (such as a company name ... (it still contains the general information and the public key). You can generate these files using the JDK keytool

JPA Entity Fields

persistent because of @Transient } The above entity class contains only transient (non persistent ... the database every persistent field must contain either null or a value of one of the supported ... contain data that is not stored as part of the entity in the database, but is still available

JPA Primary Key

. Instances of other persistable types are always stored as part of their containing entity objects ... ; long projectId; } The primary key fields are defined in an embeddable class . The entity contains a single primary key field that is annotated with @EmbeddedId and contains an instance

ObjectDB Website - Terms and Conditions of Use

from using or accessing this site. The materials contained in this web site are protected by ... engineer any software contained on ObjectDB Software's web site; remove any copyright or other proprietary ... changes to the materials contained on its web site at any time without notice. ObjectDB Software does

Privacy Policy

files that are placed on Your computer, mobile device or any other device by a website, containing ... may use Cookies. Web Beacons:  Certain sections of our Service and our emails may contain small ... Your Personal Data, We cannot guarantee its absolute security. Links to Other Websites Our Service may contain

Working with JPA Entity Objects

references or soft references instead of weak references . The contains method can check if a specified entity object is in the persistence context: boolean isManaged = em. contains (employee

Detached Entity Objects

; : } In the example above, the Employee entity class contains an address field that references ... ) private Address address; : } In the example above, the Employee entity class contains an address field

Deleting JPA Entity Objects

that are contained in the entity object are also deleted. If the transaction is rolled back and not ... = CascadeType . REMOVE ) private Address address; : } In the example above, the Employee entity class contains

JPA Persistable Types

. It can contain constructors, methods, fields and nested types with any access modifiers (public, protected ... class can only be stored in the database as embedded objects, i.e. as part of a containing entity

Chapter 1 - Quick Tour

that contains points in the plane. Each point is represented by an object with two int fields, x and y ... storing, retrieving, updating and deleting Point objects. This chapter contains the following sections

General Settings and Logging

The configuration element specifies ObjectDB settings that are relevant to both the server side and the client side. The default configuration file contains the following element:    ... , such as query results that contain millions of objects. The element specifies temporary file settings

Database Schema Evolution

). From any object to any collection or array that can contain that object as en element. From any map

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is affected also by other elements in the configuration file, particularly the and the configuration elements. The default configuration file contains the following element:   The element The element

Shared (L2) Entity Cache

= cache. contains (MyEntity.class, Long.valueOf(id)); Cached entity objects can be removed from the cache

JPA Class Enhancer

reflection. Command Line Enhancement ObjectDB Enhancer is a Java console application. It is contained in

Retrieving JPA Entity Objects

. REFRESH ) private Address address; : } In the example above, the Employee entity class contains an address

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.  This chapter contains the following sections:

What are the main benefits of using ObjectDB?

fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack

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

JPA Query Expressions (JPQL / Criteria)

of this Section This section contains the following pages: Detailed explanations on how to build criteria query

JPA Query Structure (JPQL / Criteria)

. Organization of this Section This section contains the following pages: Detailed explanations on how to set

Chapter 6 - Configuration

The ObjectDB configuration file contains one root element with seven subelements: ... ... ... ... ... ... ... Each one of these seven configuration elements is explained in a separate section: This page explains how ObjectDB configuration works in general. The Configuration Path By default

JPA Annotations for Java EE

The following JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container :

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 Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many

Apache License, Version 2.0, January 2004

copy of the attribution notices contained within such NOTICE file, excluding those notices

[ODB1] Chapter 7 - JDOQL Queries

three components: A candidate collection containing persistent objects (usually an Extent ) A candidate class ... result is a subset of objects from the candidate collection that contains only the instances ... class is used, and the candidate collection contains all the non embedded instances of the candidate

[ODB1] Chapter 6 - Persistent Objects

part of a containing object. Objects stored explicitly by makePersistent( ... ) are never embedded ... (an embedded object can only be retrieved using a reference from its containing object). 6.2  ... ); String s1 = oid.toString(); // s1 contains a temporary negative number pm.currentTransaction

[ODB1] Chapter 2 - A Quick Tour

, step by step. Both sample programs are contained in ObjectDB's samples directory. 2.1   ... of the second run is expected to be: Hello World 0 Hello World 1 After two runs, the database contains ... of a single source file, HelloWorld.java , containing a single class: 1 // A simple program that manages

[ODB1] Chapter 9 - ObjectDB Explorer

directory. Before using explorer.sh, you have to edit the paths that it contains . The following ... that the database contains (root objects are discussed in chapter 6 ). The "Query" window enables a user ... the "Tools | Options" menu command. The "General" Page The "General" page contains various options

JPA Tutorials

, so you should be able to run it on any servlet container (e.g. Apache Tomcat, Jetty, etc.), as well as ... application that should be deployed in a Java EE 6 container : Java EE 6 (J2EE) Web Tutorial

Step 3: Define an EJB Session Bean

application servers such as GlassFish and JBoss, and not by servlet containers , such as Tomcat and Jetty. By using EJB classes we can move some work from the application to the EJB container (i.e

Step 3: Define an EJB Session Bean

are only supported by Java EE application servers such as GlassFish and JBoss, and not by servlet containers ... container (i.e. to the application server). For instance, in this application the server: Manages

[ODB1] Chapter 4 - JDO Metadata

A JDO metadata file is an XML file with a '.jdo' suffix, containing information about one or ... metadata for fields: A single persistent class, test.A , is declared by a element containing sub elements ... contains all the fields with primitive types (e.g. int), types defined in java.lang (e.g. String

[ODB1] Chapter 8 - ObjectDB Server

application, packaged in the odbse.jar file. The jar file contains the entire ObjectDB ... directory containing all the database files that the server is allowed to access and manage. Please note ... in a multi user configuration, every user can be assigned a private subdirectory containing his or

[ODB1] Chapter 3 - Persistent Classes

, List and Map ) cannot refer to an unsupported collection, or a collection that contains objects ... the term 'persistence aware' refers to classes that are not persistent but contain code that accesses or

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:

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types: