Internal Website 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

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

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

Server User List

file contains the following element: The elements ... ... Every user is represented by a single element ... itself cannot be used to connect to the database. The element Every element may contain one or ... file permissions are granted. The comma separated string value may contain the following permissions

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

Database Explorer

. Running the Explorer The ObjectDB Explorer is contained in the explorer.jar executable jar file ... 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

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

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

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

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

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

JPA Primary Key

. Instances of other persistable types are always stored as part of their containing entity objects ... 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 of that embeddable class

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

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

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

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

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

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 Management Settings

The configuration element specifies back end (database engine) settings that are relevant on the server side and in embedded mode. The default configuration file contains the following element:    The element The element specifies the database file and page size settings: The initial

Apache License, Version 2.0, January 2004

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

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

Database Replication and Clustering

;password=b" ); A composite URL contains two or more database URLs separated by '|' . Usually

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

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

Retrieving JPA Entity Objects

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

JPA Queries

, and is equivalent to a JPQL query string (i.e. to a String instance containing JPQL). An essential

JPA Class Enhancer

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

[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

the database as part of a containing object. Objects stored explicitly by makePersistent ... or queried directly (an embedded object can only be retrieved using a reference from its containing ... .getObjectId(person); String s1 = oid.toString(); // s1 contains a temporary negative number pm

[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

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

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 8 - ObjectDB Server

application, packaged in the odbse.jar file. The jar file contains the entire ObjectDB ... to apply configuration changes. The element The element specifies the data directory containing ... configuration, every user can be assigned a private subdirectory containing his or her private database

[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

Step 5: Add a JSP Page

, which contains a simple form for signing the guestbook, followed by a list of all the guests

JPA Web App Tutorial - Maven Project

: mvn package jetty:run The current directory should be  guestbook-web ( containing the  pom

Report Generation with BIRT and JPA

Started tutorial. The database file contains 1,000 Point entity objects, which represent points

Step 1: Create a Maven Web Project

of the new created project is contained in a  pom.xml file that was created in the project main

Step 1: Create a Maven Web Project

the project. The configuration of the new created project is contained in a pom.xml file that was created

Getting Started with JPA and Eclipse

distribution zip file. The distribution zip contains everything necessary (no external dependencies

[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

ObjectDB 1.0 Manual

basic database programming using ObjectDB. Subsequent chapters contain detailed instructions

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types: