ObjectDB ObjectDB

Internal Website Search

21-30 of 200 resultsRefresh
8

javax.persistence.TypedQuery

/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. int executeUpdate() Execute an update or delete ... and the transaction is rolled back Since: JPA 1.0 int getFirstResult() The position of the first result the query ... SELECT query or a Criteria API query Since: JPA 2.0 int getMaxResults() The maximum number of results
7

Strings in JPQL and Criteria Queries

the argument string as an int. For example: LENGTH('United States') is evaluated to 13. LENGTH
7

JPA Persistable Types

: boolean, byte, short, char, int, long, float and double. Equivalent wrapper classes from package
7

Literals in JPQL and Criteria Queries

. Following are examples of valid numeric literals in JPQL: int: 100, -127, 0, 07777 long: 100L, -127L, 0L
7

Query Parameters in JPA

(?) followed by a positive int number. Apart from the different notation, named parameters and ordinal
7

CRUD Database Operations with JPA

Given an EntityManager, em, that represents a JPA connection to the object database, we can use it to store, retrieve, update and delete database objects. Storing New Entity Objects The following code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int
7

Comparison in JPQL and Criteria API

, char, int, long, float, double), wrapper types (Byte, Short, Character, Integer, Long, Float
7

Chapter 1 - Quick Tour

that contains points in the plane. Each point is represented by an object with two int fields, x and y
1

Step 3: Add a Main Class

(); for (int i = 0; i < 1000; i++) { Point p = new Point(i, i
1

Step 3: Add a Main Class

(); for (int i = 0; i < 1000; i++) { Point p = new Point(i, i); em.persist(p

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support