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
An implementation of the Criterion
interface that implements
spatial queries: queries to the effect that a geometry property has a
specific spatial relation to a test geometry
- See Also:
- Serialized Form
Constructor Summary |
SpatialRelateExpression(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value,
int spatialRelation)
|
Method Summary |
org.hibernate.engine.spi.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment |
java.lang.String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
Render the SQL fragment |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpatialRelateExpression
public SpatialRelateExpression(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value,
int spatialRelation)
getTypedValues
public org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.criterion.Criterion
- Return typed values for all parameters in the rendered SQL fragment
- Specified by:
getTypedValues
in interface org.hibernate.criterion.Criterion
- Parameters:
criteria
- The local criteriacriteriaQuery
- The overal criteria query
- Returns:
- The types values (for binding)
- Throws:
org.hibernate.HibernateException
- Problem determining types.
toSqlString
public java.lang.String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.criterion.Criterion
- Render the SQL fragment
- Specified by:
toSqlString
in interface org.hibernate.criterion.Criterion
- Parameters:
criteria
- The local criteriacriteriaQuery
- The overal criteria query
- Returns:
- The generated SQL fragment
- Throws:
org.hibernate.HibernateException
- Problem during rendering.