About int

11-20 of 200Refresh
Manual
14

Numbers in JPQL and Criteria Queries

on an int value and a double value is double. The ABS Function The ABS function removes the minus sign from ... in Java (e.g. for int and long operands the MOD function returns a long value). The SQRT Function ... The above examples demonstrate only integer expressions, but all the numeric types (byte, short, int, 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

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

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

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

Chapter 1 - Quick Tour

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

Comparison in JPQL and Criteria API

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