public class IntersectsRestriction extends Object implements org.hibernate.criterion.Criterion
Criterion
interface that implements
restriction for a psql intersects restrictionConstructor and Description |
---|
IntersectsRestriction(String columnName,
com.vividsolutions.jts.geom.Polygon polygon) |
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 IntersectsRestriction(String columnName, com.vividsolutions.jts.geom.Polygon polygon)
columnName
- the name of the column that hold GIS information (typically shape column)polygon
- The shape we want to see if the column data intersectspublic 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.