Package org.hibernate.spatial.criterion
Class SpatialRelateExpression
- java.lang.Object
-
- org.hibernate.spatial.criterion.SpatialRelateExpression
-
- All Implemented Interfaces:
Serializable,org.hibernate.criterion.Criterion
public class SpatialRelateExpression extends Object implements org.hibernate.criterion.Criterion
ACriterionconstraining aGeometryproperty to have specific spatial relation to a searchGeometry.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpatialRelateExpression(String propertyName, org.locationtech.jts.geom.Geometry value, int spatialRelation)Constructs an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.engine.spi.TypedValue[]getTypedValues(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)StringtoSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
-
-
-
Constructor Detail
-
SpatialRelateExpression
public SpatialRelateExpression(String propertyName, org.locationtech.jts.geom.Geometry value, int spatialRelation)
Constructs an instance- Parameters:
propertyName- The name of the property being constrainedvalue- The searchGeometryspatialRelation- The type ofSpatialRelationto use in the comparison
-
-
Method Detail
-
getTypedValues
public org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException- Specified by:
getTypedValuesin interfaceorg.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:
toSqlStringin interfaceorg.hibernate.criterion.Criterion- Throws:
org.hibernate.HibernateException
-
-