public class ExpressionUtil extends Object
This class assists in the formation of a SQL-fragment in the various spatial query expressions.
| Modifier and Type | Method and Description |
|---|---|
static String |
findColumn(String propertyName,
org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
Determines the column name corresponding to the specified property path.
|
static SpatialDialect |
getSpatialDialect(org.hibernate.criterion.CriteriaQuery criteriaQuery,
SpatialFunction function)
Determines the
SpatialDialect for the specified CriteriaQuery, and checks if the
specified function is supported. |
public static SpatialDialect getSpatialDialect(org.hibernate.criterion.CriteriaQuery criteriaQuery, SpatialFunction function)
Determines the SpatialDialect for the specified CriteriaQuery, and checks if the
specified function is supported.
criteriaQuery - The CriteriaQuery for which the dialect is soughtfunction - The function for which to check supportSpatialDialect associated with the specified CriteriaQueryorg.hibernate.HibernateException - If the dialect for the specified CriteriaQuery is not a SpatialDialect.
or the specified SpatialFunction is not supported by the dialect.public static String findColumn(String propertyName, org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery)
Determines the column name corresponding to the specified property path.
propertyName - The property pathcriteria - The criteriacriteriaQuery - The criteria queryorg.hibernate.HibernateException - If the property could not be resolved, or more than one column is mapped by the property path.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.