public class DistanceOrder
extends org.hibernate.criterion.Order
ProjectionOrder
if a projection for distance calculation have been
addedConstructor 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.Order
org.hibernate.HibernateException
Copyright © 2015. All rights reserved.