ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
12

Numbers in JPQL and Criteria Queries

numeric promotion principles. For example, the resulting type of a binary arithmetic operation on an int ... Java (e.g. for int and long operands the MOD function returns a long value). The SQRT Function ... , but all the numeric types (byte, short, int, long, float, double, BigInteger, BigDecimal) are supported. Unary
12

Database Schema Evolution

int to Date) the fields are not considered as matching and the new field is initialized ... to any numeric type. In this context numeric types are: byte, short, char, int, long, float, double ... long as the elements are convertible (e.g. from int[] to ArrayList<Long>). From any object to any
10

Storing JPA Entity Objects

can be used to save memory in large transactions: em.getTransaction().begin(); for (int i = 1; i ... .getTransaction().begin(); for (int i = 1; i <= 1000000; i++) { Point point = new Point(i, i
10

DELETE Queries in JPA/JPQL

method:   int deletedCount = em.createQuery("DELETE FROM Country").executeUpdate ... = em.createQuery(       "DELETE FROM Country c WHERE c.population < :p");   int deletedCount = query.setParameter(p, 100000).executeUpdate();
10

Running JPA Queries

all the Country instances: int count = em.createQuery("DELETE FROM Country").executeUpdate(); The following query resets the area field in all the Country instances to zero: int count = em.createQuery
10

UPDATE SET Queries in JPA/JPQL

(       "UPDATE Country SET population = 0, area = 0");   int updateCount = em.executeUpdate ... " +       "WHERE population < :p");   int updateCount = query.setParameter(p, 100000).executeUpdate();
10

ObjectDB Object Database Features

(for persistent fields) Primitive types (boolean, byte, short, char, int, long, float, double). Wrapper ... , char, int, long, float and double). Wrappers (Boolean, Byte, Short, Character, Integer, Long
1

[ODB1] Chapter 4 - JDO Metadata

, the group contains all the fields with primitive types (e.g. int), types defined in java.lang (e.g ... , short, char, int, long, float or double) embedded wrapper (Boolean, Byte, Short, Character ... "> <collection element-type="int" /> </field> <extension vendor-name="objectdb
1

[ODB1] Chapter 2 - A Quick Tour

private String lastName; 8 private int age; 9 10 // Constructors: 11 public Person() {} 12 public Person(String firstName, String lastName, int age) { 13
0

javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager

(int fieldNumber) Fetch one field from the field manager. Fetch one field from the field manager ... byte fetchByteField(int fieldNumber) Fetch one field from the field manager. Fetch one field from ... the ObjectId. Since: JDO 1.0 char fetchCharField(int fieldNumber) Fetch one field from the field manager

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