public class DistanceOrder
extends org.hibernate.criterion.Order
ProjectionOrder if a projection for distance calculation have been
added| Constructor and Description |
|---|
DistanceOrder(com.vividsolutions.jts.geom.Point point) |
DistanceOrder(com.vividsolutions.jts.geom.Point point,
boolean ascending) |
| Modifier and Type | Method and Description |
|---|---|
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
public DistanceOrder(com.vividsolutions.jts.geom.Point point,
boolean ascending)
point - The point from which we calculate the distanceascending - Whether we sort Ascendingpublic DistanceOrder(com.vividsolutions.jts.geom.Point point)
point - the point from which we calculate the distance, default
ascending is truepublic String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
toSqlString in class org.hibernate.criterion.Orderorg.hibernate.HibernateExceptionCopyright © 2015. All rights reserved.