Package org.hibernate.spatial
Interface SpatialDialect
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DB2SpatialDialect,GeoDBDialect,HANASpatialDialect,MySQL56InnoDBSpatialDialect,MySQL56SpatialDialect,MySQL5InnoDBSpatialDialect,MySQL5SpatialDialect,MySQLSpatialDialect,OracleSpatial10gDialect,OracleSpatialSDO10gDialect,PostgisDialect,PostgisNoSQLMM,PostgisPG82Dialect,PostgisPG91Dialect,PostgisPG92Dialect,PostgisPG93Dialect,PostgisPG94Dialect,PostgisPG95Dialect,PostgisPG9Dialect,PostgisSupport,SqlServer2008SpatialDialect
public interface SpatialDialect extends Serializable
Describes the features of a spatially enabled dialect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDWithinSQL(String columnName)Returns The SQL fragment when parsing aDWithinExpression.StringgetHavingSridSQL(String columnName)Returns the SQL fragment when parsing aHavingSridExpression.StringgetIsEmptySQL(String columnName, boolean isEmpty)Returns the SQL fragment when parsing aIsEmptyExpressionorIsNotEmptyexpression.StringgetSpatialAggregateSQL(String columnName, int aggregation)Returns the SQL fragment for the specfied Spatial aggregate expression.StringgetSpatialFilterExpression(String columnName)Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpressions into prepared statements.StringgetSpatialRelateSQL(String columnName, int spatialRelation)Returns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpressions into prepared statements.booleansupports(SpatialFunction function)Does this dialect supports the specifiedSpatialFunction.booleansupportsFiltering()Returns true if thisSpatialDialectsupports a specific filtering function.
-
-
-
Method Detail
-
getSpatialRelateSQL
String getSpatialRelateSQL(String columnName, int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpressions into prepared statements.- Parameters:
columnName- The name of the geometry-typed column to which the relation is appliedspatialRelation- The type of spatial relation (as defined inSpatialRelation).- Returns:
- SQL fragment
SpatialRelateExpression
-
getSpatialFilterExpression
String getSpatialFilterExpression(String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpressions into prepared statements.- Parameters:
columnName- The name of the geometry-typed column to which the filter is be applied- Returns:
- Rhe SQL fragment for the
SpatialFilterExpression
-
getSpatialAggregateSQL
String getSpatialAggregateSQL(String columnName, int aggregation)
Returns the SQL fragment for the specfied Spatial aggregate expression.- Parameters:
columnName- The name of the Geometry propertyaggregation- The type ofSpatialAggregate- Returns:
- The SQL fragment for the projection
-
getDWithinSQL
String getDWithinSQL(String columnName)
Returns The SQL fragment when parsing aDWithinExpression.- Parameters:
columnName- The geometry column to test against- Returns:
- The SQL fragment when parsing a
DWithinExpression.
-
getHavingSridSQL
String getHavingSridSQL(String columnName)
Returns the SQL fragment when parsing aHavingSridExpression.- Parameters:
columnName- The geometry column to test against- Returns:
- The SQL fragment for a
HavingSridExpression.
-
getIsEmptySQL
String getIsEmptySQL(String columnName, boolean isEmpty)
Returns the SQL fragment when parsing aIsEmptyExpressionorIsNotEmptyexpression.- Parameters:
columnName- The geometry columnisEmpty- Whether the geometry is tested for empty or non-empty- Returns:
- The SQL fragment for the isempty function
-
supportsFiltering
boolean supportsFiltering()
Returns true if thisSpatialDialectsupports a specific filtering function.This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
- Returns:
- True if filtering is supported
-
supports
boolean supports(SpatialFunction function)
Does this dialect supports the specifiedSpatialFunction.- Parameters:
function-SpatialFunction- Returns:
- True if this
SpatialDialectsupports the spatial function specified by the function parameter.
-
-