# Internal Website Search

21-30 of 85 resultsRefresh
33

## Geospatial functions

given latitude/longitude) ?Normally you would calculate the distance like: double cx = Math.toRadians(fromLat); double cy = Math.toRadians(fromLon); double px = Math.toRadians(toLat); double py = Math.toRadians(toLon); // see http://de.wikipedia.org/wiki/Orthodrome double gamma = Math.acos
11

## javax.persistence.criteria.CriteriaBuilder

.0 Expression<Double> avg( Expression<N> x) Create an aggregate expression applying the avg operation ... Expression<Double> sqrt( Expression<?> x) Create an expression that returns the square root of its argument ... - expression y - expression Returns: sum Since: JPA 2.0 Expression<Double> sumAsDouble( Expression
6

## toDouble(number)

Method javax.persistence.criteria.CriteriaBuilder Expression<Double> toDouble( Expression<?> number ) Typecast. Returns same expression object. Parameters: number - numeric expression Returns: Expression<Double> Since: JPA 2.0
6

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

## Step 6: Set the Spring XML

clicking and selecting Edit or by double click and then moving to the XML tab in the editor window
2

## Step 2: Entity Class and Persistence Unit

the persistence.xml file in a text editor (by right clicking and selecting Edit or by double click
2

## Step 6: Set the Spring XML

right clicking and selecting Open With > Text Editor or by double click and then moving to the Source
1

## javax.jdo.spi.StateManager

Returns: the new value for the field Since: JDO 1.0 double getDoubleField( PersistenceCapable pc, int field, double currentValue) Return the value for the field. Return the value for the field. Parameters ... ( PersistenceCapable pc, int field, double currentValue) The value of the field requested to be provided
0

## javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager

to be stored into the ObjectId. Since: JDO 1.0 double fetchDoubleField(int fieldNumber) Fetch one field ... of the field from the ObjectId. Since: JDO 1.0 void storeDoubleField(int fieldNumber, double value) Store
0

## setDoubleField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setDoubleField( PersistenceCapable pc, int field, double currentValue, double 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