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,
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
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public SpatialRelateExpression(String propertyName, com.vividsolutions.jts.geom.Geometry value, int spatialRelation)
propertyName
- The name of the property being constrainedvalue
- The search Geometry
spatialRelation
- The type of SpatialRelation
to use in the comparisonpublic TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem determining types.public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem during rendering.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.