Internal Website Search

1-50 of 200 results

ObjectDB Object Database Features

support of the JPA and JDO APIs. Fundamental features of relational databases (e.g. primary keys ... ). Java Data Objects ( JDO ) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new ... optimizations. Configurable JPA eager/lazy fetch  and JPA query FETCH JOIN . Configurable JDO fetch

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR ... , the JDO Query Language). ObjectDB supports both forms. Binary AND (&&) Operator The following ... the Java/ JDO && operator as a synonym of AND as part of its JDO support. Binary OR (||) Operator

[ODB1] Chapter 5 - JDO Connections

environment for using JDO . Explanations on how to use this environment to do database operations, such as ... ( Chapter 6 ). 5.1  javax. jdo .PersistenceManagerFactory Most applications require multiple ... that every connection consumes. Database connections are managed in JDO by the javax. jdo

Is ObjectDB better than competing object databases?

of the Java Data Objects ( JDO ) API than competing object databases. By using a standard API such as JPA ... . The support of two standard APIs (JPA and JDO ) by ObjectDB minimizes the risk ... , including aggregate queries, as part of its support of JPQL (JPA Query Language) and JDOQL ( JDO Query Language). ObjectDB is faster than other products.

Index Definition

definition uses JDO’s @Index and @Unique annotations to define indexes (JPA's @Index  cannot be applied to fields): import javax. jdo .annotations.Index; import javax. jdo .annotations.Unique

JPA Persistence Unit

to annotations. Both JPA mapping files and JDO package. jdo files are supported. This manual focuses on using ... can be found in the JPA and JDO specifications and books. Managed Persistable Classes JPA requires

[ODB1] Chapter 4 - JDO Metadata

A JDO metadata file is an XML file with a '. jdo ' suffix, containing information about one or ... file. The metadata is used first by the JDO Enhancer, and later by the JDO system. Therefore, at deployment, . jdo metadata files must be packaged with an application's .class files

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

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:

What is the Java Data Objects (JDO)?

The Java Data Objects ( JDO ) is another standard for accessing persistent data in databases, using ... ), which is designated to be used with relational databases, JDO is designated to be used with both relational and object databases. JDO is supported by many object databases, including ObjectDB

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types:

JDO Internal Callbacks

The following interfaces can be implemented by persistence capable classes in order to response to JDO lifecycle events:

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types:

JDO Annotations for Fetch Settings

The following annotations are used to define JDO fetch groups and fetch plans:

JDO Annotations

JDO defines dozens of annotations that can be divided into the following groups:

JDO Exceptions

JDO exceptions are represented by the following exception classes:

JDO Miscellaneous Types

This section contains miscellaneous JDO types:

JDO Annotations for Index Definition

All about JDO Annotations for Index Definition in Java/JPA database - explanations, examples, references, links and related information.

JDO Predefined ID Classes

All about JDO Predefined ID Classes in Java/JPA database - explanations, examples, references, links and related information.

[ODB1] Chapter 2 - A Quick Tour

This chapter introduces basic ObjectDB and JDO concepts, using two sample programs. We start with the HelloWorld sample program, which is not JDO portable because it uses some ObjectDB extensions, but it is a good sample to start with because of its simplicity.  We then proceed with the JDO

[ODB1] Chapter 6 - Persistent Objects

Objects Persistent In JDO applications, every object in memory is either a persistent object, i.e ... ( ... ) , but rather, because of the persistence by reachability rule. According to this JDO rule ... broken references in the database and simplifies development. The JDO specification limits the use

[ODB1] Chapter 3 - Persistent Classes

Persistent Classes are user defined classes whose instances can be stored in a database using JDO ... . The JDO specification refers to persistent classes as persistence capable classes . 3.1   ... has to: be declared in a JDO metadata file in XML format. include a no-arg constructor. implement

[ODB1] Chapter 1 - About ObjectDB

ObjectDB for Java/ JDO is a powerful Object Database Management System (ODBMS) written entirely in ... with tables, records and SQL in addition to the application's classes and objects. ObjectDB is JDO Compliant ObjectDB is compliant with the JDO (Java Data Objects) standard, developed by Sun

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 JDO in a very short time. Guide Structure The first two chapters introduce ObjectDB: Chapter 1

[ODB1] Chapter 7 - JDOQL Queries

. When a more selective retrieval is needed, JDOQL ( JDO Query Language) is used. JDOQL for JDO is like ... result = (Collection)query.execute(); Queries are represented by the javax. jdo .Query interface. A Query ... (for future JDO extensions), so casting is required. Compilation and execution of queries

javax.jdo.PersistenceManager

JDO Interface PersistenceManager PersistenceManager is the primary interface for JDO -aware ... the PersistenceManagerFactory (recommended) or by construction. Since: JDO 1.0 Public Methods void ... - the lifecycle listener classes - the classes of interest to the listener Since: JDO 2.0 void

javax.jdo.PersistenceManagerFactory

JDO Interface PersistenceManagerFactory Super Interfaces: Serializable ... pooling, connection pooling, operational parameters) must not be serialized. Since: JDO 1.0 Public ... } ("manageMetadata") Since: JDO 2.2 void addInstanceLifecycleListener ( InstanceLifecycleListener  listener

[ODB1] Chapter 9 - ObjectDB Explorer

command (or the equivalent context menu command). Notice that JDO metadata for the class (as discussed ... all the Extents. This tool is useful when changing the value of the "requires-extent" attribute (in the JDO ... database and rebuilds all the indexes. This tool is useful when adding a new index (in the JDO

javax.jdo.JDOHelper

JDO Class JDOHelper java.lang.Object ∟  javax. jdo .JDOHelper Implemented Interfaces: Constants This class can be used by a JDO -aware application to call the JDO behavior of PersistenceCapable ... a PersistenceManagerFactory via various methods. This helper class defines static methods that allow a JDO -aware

javax.jdo.spi.StateManager

JDO Interface StateManager This interface is the point of contact between managed instances of PersistenceCapable classes and the JDO implementation. It contains the methods used by PersistenceCapable instances to delegate behavior to the JDO implementation. Each managed PersistenceCapable

javax.jdo.spi.PersistenceCapable

JDO Interface PersistenceCapable A class that can be managed by a binary-compatible JDO ... to manage the instances. It also defines methods that allow a JDO aware application to examine ... , object identity, and version if it has one. In the Reference Implementation, the JDO Enhancer modifies

javax.jdo.Query

JDO Interface Query Super Interfaces: Serializable The Query interface allows applications ... are used only for this execution, and are not remembered for future execution. Since: JDO 1.0 Public ... recognized. Parameters: key - the key of the extension value - the value of the extension Since: JDO 2.0

javax.jdo.spi.JDOImplHelper

JDO Class JDOImplHelper java.lang.Object ∟  javax. jdo .spi.JDOImplHelper This class is a helper class for JDO implementations. It contains methods to register metadata for persistence-capable ... restriction on this access. JDO implementations get access to the functions provided by this class

PersistenceManagerFactory.supportedOptions() - JDO Method

JDO Method in javax. jdo .PersistenceManagerFactory Collection supportedOptions () The application ... are supported by the JDO implementation. Each supported JDO feature is represented by a String with one of the following values: javax. jdo .option.TransientTransactional javax. jdo .option

javax.jdo.annotations.Persistent

JDO Annotation Persistent Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces ... "field" and "property". Since: JDO 2.1 Public Annotation Attributes String cacheable default "true" Whether this field/property is cacheable in a Level2 cache. Since: JDO 2.2 String column default

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader,pmfLoader) - JDO Static Method

JDO Static Method in javax. jdo .JDOHelper PersistenceManagerFactory getPersistenceManagerFactory ... are standard key names: "javax. jdo .PersistenceManagerFactoryClass" "javax. jdo .option.Optimistic", "javax. jdo .option.RetainValues", "javax. jdo .option.RestoreValues", "javax. jdo .option.IgnoreCache", "javax

javax.jdo.FetchPlan

JDO Interface FetchPlan Fetch groups are activated using methods on this interface. An instance ... Extent 's FetchPlan are not reflected in the FetchPlan of the PersistenceManager . Since: JDO 2.0 Public ... fetch groups. Return: the FetchPlan Since: JDO 2.0 FetchPlan clearGroups () Remove all active groups

javax.jdo.Transaction

JDO Interface Transaction The JDO Transaction interface provides for initiation and completion ... may only be used with bean-managed transaction semantics. Since: JDO 1.0 Public Methods void begin ... if the transaction is already active. See Also: setOptimistic getOptimistic Since: JDO 1.0 void commit

javax.jdo.FetchGroup

JDO Interface FetchGroup FetchGroup represents a named fetch group for a specific class or ... .addFetchGroups , it is unscoped. Since: JDO 2.2 Public Methods FetchGroup addCategory (String categoryName ... : the FetchGroup Throws: JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2 FetchGroup

javax.jdo.spi.StateInterrogation

JDO Interface StateInterrogation This interface is implemented by a non-binary-compatible JDO ... this interface must be registered with the JDOImplHelper . Since: JDO 2.0 Public Methods Object getObjectId (Object pc) Return a copy of the JDO identity associated with the parameter instance

javax.jdo.JDOFatalException

JDO Exception JDOFatalException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  javax. jdo .JDOException ∟  javax. jdo ... it cannot be bypassed even if the operation is retried. Since: JDO 1.0 Public Constructors

javax.jdo.JDOCanRetryException

JDO Exception JDOCanRetryException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  javax. jdo .JDOException ∟  javax. jdo .JDOCanRetryException This is the base class for exceptions that can be retried. Since: JDO 1.0 Public

javax.jdo.annotations.Value

JDO Annotation Value Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the value of a map relation. Corresponds to the xml element "value". Since: JDO 2 ... . Since: JDO 2.1 Column [] columns default {} The column(s) for the value. Since: JDO 2.1

javax.jdo.annotations.Key

JDO Annotation Key Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the key of a map relation. Corresponds to the xml element "key". Since: JDO 2.1 ... . Since: JDO 2.1 Column [] columns default {} The column(s) for the key Since: JDO 2.1 ForeignKeyAction

javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache

JDO Class EmptyDataStoreCache java.lang.Object ∟  javax. jdo .datastore.DataStoreCache ... . Since: JDO 2.0 Public Constructors EmptyDataStoreCache () Since: JDO 2.0 Public Methods void evict (Object oid) Since: JDO 2.0 void evictAll () Since: JDO 2.0 void evictAll (Class pcClass

javax.jdo.JDOException

JDO Exception JDOException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  javax. jdo .JDOException This is the root of all JDO ... failed object. Since: JDO 1.0 Public Constructors JDOException () Constructs a new JDOException

javax.jdo.annotations.Element

JDO Annotation Element Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces ... "element". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column to store the element in. Since: JDO 2.1 Column [] columns default {} The column(s) for the element