public class IntersectsRestriction extends Object implements org.hibernate.criterion.Criterion
Criterion interface that implements
restriction for a psql intersects restriction| Constructor 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.Criterionorg.hibernate.HibernateExceptionpublic String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
toSqlString in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionCopyright © 2015. All rights reserved.