Home » Search

About int

11-20 of 200 Refresh
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
12

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();
Result
12

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
12

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
12

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
12

UPDATE SET Queries in JPA/JPQL

.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();
JPA Doc
10

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

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 i