public class HavingSridExpression extends Object implements Criterion
Criterion constraining a geometry property to have a specified SRID.| Constructor and Description | 
|---|
HavingSridExpression(String propertyName,
                    int srid)
Constructs an instance for the specified property and srid 
 | 
| 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 HavingSridExpression(String propertyName, int srid)
propertyName - The name of the property being constrainedsrid - The sridpublic String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriontoSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem during rendering.public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriongetTypedValues in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem determining types.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.