public class SpatialRelateExpression extends Object implements Criterion
Criterion constraining a Geometry property to have specific spatial relation
to a search Geometry.| Constructor and Description |
|---|
SpatialRelateExpression(String propertyName,
org.locationtech.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
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public SpatialRelateExpression(String propertyName, org.locationtech.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 overall criteria queryHibernateException - Problem determining types.public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriontoSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overall criteria queryHibernateException - Problem during rendering.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.