com.gisgraphy.hibernate.criterion
Class IntersectsRestriction
java.lang.Object
com.gisgraphy.hibernate.criterion.IntersectsRestriction
- All Implemented Interfaces:
- Serializable, org.hibernate.criterion.Criterion
public class IntersectsRestriction
- extends Object
- implements org.hibernate.criterion.Criterion
An implementation of the Criterion
interface that implements
restriction for a psql intersects restriction
- Author:
- David Masclet
- See Also:
- Serialized Form
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntersectsRestriction
public IntersectsRestriction(String columnName,
com.vividsolutions.jts.geom.Polygon polygon)
- Parameters:
columnName
- the name of the column that hold GIS information (typically shape column)polygon
- The shape we want to see if the column data intersects
getTypedValues
public org.hibernate.engine.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
getTypedValues
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
toSqlString
public String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
toSqlString
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
Copyright © 2012. All Rights Reserved.