Home » Search

About double

21-30 of 76Refresh
Forum
6

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
JDO Doc
6

getDoubleField(pc, field, currentValue)

Method javax.jdo.spi.StateManager double getDoubleField(   PersistenceCapable pc,   int field,   double currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
6

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
JPA Doc
6

sumAsDouble(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Double> sumAsDouble(   Expression 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
JPA Doc
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
Forum
5

Problem with Criteria Querys

.getTransaction().begin();         for (double i=0.0; i<10.0;i++){          em.persist(new DataObject(i ... (DataObject.class);   q.select(d);   ParameterExpression<Double> p1 = cb.parameter(Double.class);   ParameterExpression<Double> p2 = cb.parameter(Double.class);   q.where(    cb.and(     cb.gt(d
JPA Doc
4

avg(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Double> avg(   Expression x ) Create an aggregate expression applying the avg operation. Parameters: x - expression representing input value to avg operation Returns: avg expression Since: JPA 2.0
JDO Doc
4

providedDoubleField(pc, field, currentValue)

Method javax.jdo.spi.StateManager void providedDoubleField(   PersistenceCapable pc,   int field,   double currentValue ) The value of the field requested to be provided to the StateManager. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Since: JDO 1.0
JDO Doc
4

replacingDoubleField(pc, field)

Method javax.jdo.spi.StateManager double replacingDoubleField(   PersistenceCapable pc,   int field ) The replacement value of the field in the calling instance. Parameters: pc - the calling PersistenceCapable instance field - the field number Returns: the new value for the field Since: JDO 1.0
JDO Doc
4

setResultClass(cls)

, Double, String, or Object[]; or one of the java.math classes BigInteger or BigDecimal; or the java.util