12 | 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 | 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 | 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 | 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 | 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 Country SET population = 0, area = 0"); int updateCount = em.executeUpdate ... " + "WHERE population < :p"); int updateCount = query.setParameter(p, 100000).executeUpdate(); |
10 | (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 | , 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 | private String lastName; 8 private int age; 9 10 // Constructors: 11 public Person() {} 12 public Person(String firstName, String lastName, int age) { 13 |
0 | (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 |