public class SpatialRelateExpression extends java.lang.Object implements Criterion
Criterion constraining a Geometry property to have specific spatial relation
to a search Geometry.| Constructor and Description |
|---|
SpatialRelateExpression(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value,
int spatialRelation)
Constructs an instance
|
| Modifier and Type | Method and Description |
|---|---|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
java.lang.String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public SpatialRelateExpression(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value,
int spatialRelation)
propertyName - The name of the property being constrainedvalue - The search GeometryspatialRelation - The type of SpatialRelation to use in the comparisonpublic TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriongetTypedValues in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem determining types.public java.lang.String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriontoSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem during rendering.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.