Internal Website Search

1-50 of 200 results

Warmup ( preLoad all table rows into memory )

when my software boots up.   2-) Also for speed up I am inserting a message into table ... Hi , I have 3 questions for objectdb : 1-) How can i preload all table rows into memory in ... to prevent writing into disk for objectdb. So i can query from guava cachebuilder then objectdb. Do i

How to define database structure and insert some initial objects from scratch

a script ? In SQL world we have scripts like " insert into ..." - Can we use main objectdb.jar library

javax.persistence.MapKeyJoinColumn.insertable

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.MapKeyColumn.insertable

JPA Annotation Attribute in javax.persistence.MapKeyColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.OrderColumn.insertable

JPA Annotation Attribute in javax.persistence.OrderColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.Column.insertable

JPA Annotation Attribute in javax.persistence.Column boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0

javax.persistence.JoinColumn.insertable

JPA Annotation Attribute in javax.persistence.JoinColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0

JPA Class Enhancer

Enhancement Enhancement can be integrated into the build process. The following Maven build file ... Similarly, enhancement can be also be integrated into an ANT build script, as so: Enhancement API ... into the JVM by running the application with objectdb.jar as a Java agent. For example, if objectdb

Numbers in JPQL and Criteria Queries

and functions to combine simple numeric values into a more complex expression. Arithmetic Operators ... an extension). For example: MOD(11, 3) is evaluated to 2 (3 goes into 11 three times with a remainder of 2) MOD(8, 4) is evaluated to 0 (4 goes into 8 twice with a remainder of 0) The MOD function takes

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse ... automatically injects the version value into that field. Version fields should be treated as read only by

Detached Entity Objects

the database unless modified detached objects are merged back into an EntityManager to become managed ... of the specified detached entity object is copied into an existing managed entity object

JPA Queries

) can be done by concatenating JPQL strings into a valid complete JPQL query. JPA 2 introduced the JPA Criteria ... are organized in this reference into three groups. SELECT and ORDER BY elements (including tuples): FROM clause

Database Schema Evolution

of an old schema is loaded into memory it is automatically converted into an instance of the up to date

Paths and Types in JPQL and Criteria API

can be divided into two main groups: FROM variable expressions , represented by subinterfaces of From ... directly. The constructed expression must be integrated into query clauses explicitly

Database Explorer

side of the Explorer when a database is open: The [Database] window is split into two sub windows. The top sub window ... into the clipboard (in any viewer window) and then pasted on a reference that has to be set

ObjectDB needs "insert ignore"

Hi, The command " insert ignore into " in mysql can avoid interruptions caused by program errors ... have to create a repeated topic. how to implement insert ignore in objectdb? gzdillon Lai Yang ... have to do this for inserting : @NamedQuery( name="isExistName", query="SELECT count(c) FROM Student c WHERE c

javax.persistence.CacheStoreMode

insert into cache. Since: JPA 2.0 REFRESH Insert /update entity data into cache when read from database ... 2.0 USE Insert entity data into cache when read from database and insert /update entity data ... when data is read from the database and when data is committed into the database. Since: JPA 2.0

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

extreme situations this might cause the retrieval of the entire database into the memory

JPA Named Queries

rather than embedding literals dynamically into the query string and results in more efficient queries. @NamedQuery

DELETE Queries in JPA/JPQL

As explained in chapter 2 , entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager . Removing these objects from the EntityManager  within an active transaction, either explicitly by calling the  remove method or implicitly

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:

What's next?

This chapter introduced the basic principles of JPA using ObjectDB. You can go into details by reading the other chapters of this manual. If you prefer to get started with ObjectDB right away you can follow one of the following tutorials to create and run the example program that was described in

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 you productive with ObjectDB and JPA in a short time. Guide Structure This manual is divided into

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

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as explained in chapter 2 , by: Retrieving the entity objects into an EntityManager . Updating the relevant entity object fields within an active transaction. Applying changes to the database by calling the commit method. JPQL UPDATE queries

JPA Primary Key

the primary key value is automatically injected into that field by ObjectDB. The 

javax.persistence.CacheStoreMode.USE

JPA Enum Constant in javax.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert /update entity data when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: JPA 2.0

Step 6: Design a BIRT Report Table

In this final step we will add a simple table to the report: Open the [ Insert Table] dialog box by dragging a Table from the [Palette] window and dropping it on the report design (.rptdesign) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X

Step 3: Define an EJB Session Bean

of the EJB class and injects an instance of the EJB class into the servlet (as shown in the  next step ). Prepares an  EntityManager automatically and injects it into the  em field

Step 3: Define a Spring DAO Component

the instantiation of the DAO component class and injects an instance of the DAO component class into ... it into the  em field (because it is annotated with the  @PersistenceContext annotation

Step 3: Define a Spring DAO Component

the instantiation of the DAO component class and injects an instance of the DAO component class into ... it into the  em field (because it is annotated with the  @PersistenceContext annotation

Step 3: Define an EJB Session Bean

the instantiation of the EJB class and injects an instance of the EJB class into the servlet (as shown in the next step ). Prepares an EntityManager automatically and injects it into the em field

Step 4: Add a Controller Class

. A GuestDao component is automatically constructed and injected by Spring into the guestDao field

Step 2: Define a JPA Entity Class

the new class. Copy and paste the following code into the newly created Point class: package tutorial

Step 6: Set the Spring XML

To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the  web.xml configuration file and to configure that servlet using another xml configuration file. Open the  web.xml file (under src/main/webapp/WEB-INF) in a text

Step 6: Set the Spring XML

To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the web.xml configuration file and to configure that servlet using another xml configuration file. Open the web.xml file (under Web Pages WEB-INF) in a text editor (by right

Java EE 6 JPA Tutorial - Eclipse Project

when the Maven project is imported into the IDE). Choose or define the server and click  Finish

Spring MVC JPA Tutorial - Eclipse Project

project is imported into the IDE). Choose or define the server and click  Finish . Eclipse

Step 4: Add a Controller Class

is automatically constructed and injected by Spring into the guestDao field (because it is annotated

JPA Web App Tutorial - Eclipse Project

is imported into the IDE). Choose or define the server and click Finish . Eclipse should open an internal

Step 4: Add a Servlet Class

; GuestDao session bean, which is instantiated and injected by the application server into the 

Step 4: Add a Servlet Class

the application server into the guestDao field automatically (since the field is marked with the @EJB

[ODB1] Chapter 3 - Persistent Classes

enhancer into the IDE Build command. A simple alternative that does not require a plugin and works on any ... , which enables transparent use of old schema instances. When an old instance is loaded into the memory it is automatically converted into an instance of the new up-to-date persistent class. The conversion

[ODB1] Chapter 9 - ObjectDB Explorer

at the bottom. The "Database" window is also split into two sub windows. The top sub window displays general ... JDOQL queries that you test in the Explorer into your Java code. Refreshing the Cache When a database

[ODB1] Chapter 1 - About ObjectDB

one of the ObjectDB editions can be easily integrated into any JSP/servlet web application. The JDO ... system that supports servlets/JSP. Just drop the JDO and ObjectDB jar files into the WEB-INF/lib

[ODB1] Chapter 6 - Persistent Objects

free edition. 6.6  Object States Objects in a JDO application are divided into persistent

JDO Annotations

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

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:

[ODB1] Chapter 7 - JDOQL Queries

can also be separated into two commands: Query query = pm.newQuery(Person.class, "this.age = 18"); query.compile