Package org.hibernate.spatial.criterion
Class SpatialRelateExpression
- java.lang.Object
-
- org.hibernate.spatial.criterion.SpatialRelateExpression
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.criterion.Criterion
public class SpatialRelateExpression extends java.lang.Object implements org.hibernate.criterion.Criterion
ACriterion
constraining aGeometry
property to have specific spatial relation to a searchGeometry
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpatialRelateExpression(java.lang.String propertyName, com.vividsolutions.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)
java.lang.String
toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
-
-
-
Constructor Detail
-
SpatialRelateExpression
public SpatialRelateExpression(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value, int spatialRelation)
Constructs an instance- Parameters:
propertyName
- The name of the property being constrainedvalue
- The searchGeometry
spatialRelation
- The type ofSpatialRelation
to 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:
getTypedValues
in interfaceorg.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
-
toSqlString
public java.lang.String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
- Specified by:
toSqlString
in interfaceorg.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
-
-