About int

11-20 of 200Refresh
Manual
13

Index Definition

indexedField1; @Index(unique="true") int indexedField2; // unique @Index(name="i3") int indexedField3 ... a value of one of the following persistable types: Primitive types: boolean, byte, short, char, int, long
Manual
13

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). From any object to any
Result
11

ObjectDB Object Database Features

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

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();
Manual
11

UPDATE SET Queries in JPA/JPQL

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

UPDATE SET Queries in JPA/JPQL [2011-11-22]

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

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
Manual
11

Running JPA Queries [2011-09-21]

the executeUpdate method. For example, the following query deletes all the Country instances: int count ... field in all the Country instances to zero: int count = em.createQuery("UPDATE Country SET area = 0
Manual
11

Running JPA Queries

the executeUpdate method. For example, the following query deletes all the Country instances: int count ... field in all the Country instances to zero: int count = em.createQuery("UPDATE Country SET area = 0
JPA Doc
9

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