ObjectDB ObjectDB

Internal Website Search

11-20 of 49 resultsRefresh
45

Performance in large transactions

static List<Float> createFloatArray(float value) {   int values = 1;   List<Float> floats = new ArrayList<Float>(values);   for (float i = 0; i < values; i++) {    floats.add(value + (i / values));   }   return floats; } @Entity public static class MyEntity {   @OneToMany(cascade
18

Numbers in JPQL and Criteria Queries

, but all the numeric types (byte, short, int, long, float, double, BigInteger, BigDecimal) are supported. Unary
18

Literals in JPQL and Criteria Queries

, 07777L float: 3.14F, 0f, 1e2f, -2.f, 5.04e+17f double: 3.14, 0d, 1e2D, -2., 5.04e+17 ObjectDB
12

javax.persistence.criteria.CriteriaBuilder

<Float> x) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result. Create an aggregate expression applying the sum operation to a Float-valued ... <Double> Since: JPA 2.0 Expression<Float> toFloat( Expression<?> number) Typecast. Typecast. Returns same
9

javax.persistence.MappedSuperclass

") protected Float hourlyWage; public PartTimeEmployee() {} public Float getHourlyWage() { ... } public void setHourlyWage(Float wage) { ... } } Since: JPA 1.0
9

javax.persistence.AttributeOverride

{ // address field mapping overridden to ADDR protected Float wage(); public Float getHourlyWage() { ... } public void setHourlyWage(Float wage) { ... } } Example 2
7

sumAsDouble(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Double> sumAsDouble( Expression<Float> x ) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0
1

javax.jdo.spi.StateManager

value of the field Returns: the new value for the field Since: JDO 1.0 float getFloatField( PersistenceCapable pc, int field, float currentValue) Return the value for the field. Return the value ... of the field Since: JDO 1.0 void providedFloatField( PersistenceCapable pc, int field, float currentValue
0

javax.jdo.annotations.Column

when handling floating point values. Scale for the column when handling floating point values. Returns: the scale for the column when handling floating point values Default value: -1 Since: JDO 2.1
0

setFloatField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setFloatField( PersistenceCapable pc, int field, float currentValue, float newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field

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