public interface CockroachSpatialDialectTrait extends SpatialDialect
Modifier and Type | Field and Description |
---|---|
static CockroachDBSpatialSupport |
DELEGATE |
Modifier and Type | Method and Description |
---|---|
default void |
delegateContributeTypes(TypeContributions typeContributions,
ServiceRegistry serviceRegistry) |
default SpatialFunctionsRegistry |
functionsToRegister() |
default String |
getDWithinSQL(String columnName)
Returns The SQL fragment when parsing a
DWithinExpression . |
default String |
getHavingSridSQL(String columnName)
Returns the SQL fragment when parsing a
HavingSridExpression . |
default String |
getIsEmptySQL(String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a
IsEmptyExpression or
IsNotEmpty expression. |
default String |
getSpatialAggregateSQL(String columnName,
int aggregation)
Returns the SQL fragment for the specfied Spatial aggregate expression.
|
default String |
getSpatialFilterExpression(String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsing
org.hibernate.spatial.criterion.SpatialFilterExpression s
into prepared statements. |
default String |
getSpatialRelateSQL(String columnName,
int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsing
org.hibernatespatial.criterion.SpatialRelateExpression s
into prepared statements. |
default boolean |
supports(SpatialFunction function)
Does this dialect supports the specified
SpatialFunction . |
default boolean |
supportsFiltering()
Returns true if this
SpatialDialect supports a specific filtering function. |
static final CockroachDBSpatialSupport DELEGATE
default SpatialFunctionsRegistry functionsToRegister()
default String getSpatialRelateSQL(String columnName, int spatialRelation)
SpatialDialect
org.hibernatespatial.criterion.SpatialRelateExpression
s
into prepared statements.
getSpatialRelateSQL
in interface SpatialDialect
columnName
- The name of the geometry-typed column to which the relation is
appliedspatialRelation
- The type of spatial relation (as defined in
SpatialRelation
).SpatialRelateExpression
default void delegateContributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
default String getSpatialFilterExpression(String columnName)
org.hibernate.spatial.criterion.SpatialFilterExpression
s
into prepared statements.getSpatialFilterExpression
in interface SpatialDialect
columnName
- The name of the geometry-typed column to which the filter is
be appliedSpatialFilterExpression
default String getSpatialAggregateSQL(String columnName, int aggregation)
SpatialDialect
getSpatialAggregateSQL
in interface SpatialDialect
columnName
- The name of the Geometry propertyaggregation
- The type of SpatialAggregate
default String getDWithinSQL(String columnName)
SpatialDialect
DWithinExpression
.getDWithinSQL
in interface SpatialDialect
columnName
- The geometry column to test againstDWithinExpression
.default String getHavingSridSQL(String columnName)
SpatialDialect
HavingSridExpression
.getHavingSridSQL
in interface SpatialDialect
columnName
- The geometry column to test againstHavingSridExpression
.default String getIsEmptySQL(String columnName, boolean isEmpty)
SpatialDialect
IsEmptyExpression
or
IsNotEmpty
expression.getIsEmptySQL
in interface SpatialDialect
columnName
- The geometry columnisEmpty
- Whether the geometry is tested for empty or non-emptydefault boolean supportsFiltering()
SpatialDialect
SpatialDialect
supports a specific filtering function.
This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
supportsFiltering
in interface SpatialDialect
default boolean supports(SpatialFunction function)
SpatialDialect
SpatialFunction
.supports
in interface SpatialDialect
function
- SpatialFunction
SpatialDialect
supports the spatial function specified by the function parameter.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.