public class PostgisSupport extends java.lang.Object implements SpatialDialect, java.io.Serializable
| Constructor and Description |
|---|
PostgisSupport() |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.spatial.dialect.postgis.PostgisFunctions |
functionsToRegister() |
java.lang.String |
getDWithinSQL(java.lang.String columnName)
Returns The SQL fragment when parsing a
DWithinExpression. |
java.lang.String |
getHavingSridSQL(java.lang.String columnName)
Returns the SQL fragment when parsing a
HavingSridExpression. |
java.lang.String |
getIsEmptySQL(java.lang.String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a
IsEmptyExpression or
IsNotEmpty expression. |
java.lang.String |
getSpatialAggregateSQL(java.lang.String columnName,
int aggregation)
Returns the SQL fragment for the specfied Spatial aggregate expression.
|
java.lang.String |
getSpatialFilterExpression(java.lang.String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsing
org.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements. |
java.lang.String |
getSpatialRelateSQL(java.lang.String columnName,
int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsing
org.hibernatespatial.criterion.SpatialRelateExpressions
into prepared statements. |
boolean |
supports(SpatialFunction function)
Does this dialect supports the specified
SpatialFunction. |
boolean |
supportsFiltering()
Returns true if this
SpatialDialect supports a specific filtering function. |
public org.hibernate.spatial.dialect.postgis.PostgisFunctions functionsToRegister()
public java.lang.String getSpatialRelateSQL(java.lang.String columnName,
int spatialRelation)
org.hibernatespatial.criterion.SpatialRelateExpressions
into prepared statements.
getSpatialRelateSQL in interface SpatialDialectcolumnName - The name of the geometry-typed column to which the relation is
appliedspatialRelation - The type of spatial relation (as defined in
SpatialRelation).SpatialRelateExpressionpublic java.lang.String getSpatialFilterExpression(java.lang.String columnName)
org.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements.getSpatialFilterExpression in interface SpatialDialectcolumnName - The name of the geometry-typed column to which the filter is
be appliedSpatialFilterExpressionpublic java.lang.String getSpatialAggregateSQL(java.lang.String columnName,
int aggregation)
getSpatialAggregateSQL in interface SpatialDialectcolumnName - The name of the Geometry propertyaggregation - The type of SpatialAggregatepublic java.lang.String getDWithinSQL(java.lang.String columnName)
DWithinExpression.getDWithinSQL in interface SpatialDialectcolumnName - The geometry column to test againstDWithinExpression.public java.lang.String getHavingSridSQL(java.lang.String columnName)
HavingSridExpression.getHavingSridSQL in interface SpatialDialectcolumnName - The geometry column to test againstHavingSridExpression.public java.lang.String getIsEmptySQL(java.lang.String columnName,
boolean isEmpty)
IsEmptyExpression or
IsNotEmpty expression.getIsEmptySQL in interface SpatialDialectcolumnName - The geometry columnisEmpty - Whether the geometry is tested for empty or non-emptypublic boolean supportsFiltering()
SpatialDialect supports a specific filtering function.
This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
supportsFiltering in interface SpatialDialectpublic boolean supports(SpatialFunction function)
SpatialFunction.supports in interface SpatialDialectfunction - SpatialFunctionSpatialDialect supports the spatial function specified by the function parameter.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.