public class DistanceRestriction extends Object implements org.hibernate.criterion.Criterion
Criterion
interface that implements
distance restrictionConstructor and Description |
---|
DistanceRestriction(com.vividsolutions.jts.geom.Point point,
double distance) |
DistanceRestriction(com.vividsolutions.jts.geom.Point point,
double distance,
boolean useIndex) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.engine.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
public DistanceRestriction(com.vividsolutions.jts.geom.Point point, double distance, boolean useIndex)
point
- Point we have to calculate the distance fromdistance
- The distance restrictionuseIndex
- Wether we must use index or notpublic DistanceRestriction(com.vividsolutions.jts.geom.Point point, double distance)
point
- Point we have to calculate the distance fromdistance
- The distance restriction by default use indexpublic org.hibernate.engine.TypedValue[] getTypedValues(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
getTypedValues
in interface org.hibernate.criterion.Criterion
org.hibernate.HibernateException
public String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
toSqlString
in interface org.hibernate.criterion.Criterion
org.hibernate.HibernateException
Copyright © 2015. All rights reserved.