Interface CockroachSpatialDialectTrait
-
- All Superinterfaces:
Serializable,SpatialDialect
- All Known Implementing Classes:
CockroachDB202SpatialDialect
public interface CockroachSpatialDialectTrait extends SpatialDialect
-
-
Field Summary
Fields Modifier and Type Field Description static CockroachDBSpatialSupportDELEGATE
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddelegateContributeTypes(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry)default SpatialFunctionsRegistryfunctionsToRegister()default StringgetDWithinSQL(String columnName)Returns The SQL fragment when parsing aDWithinExpression.default StringgetHavingSridSQL(String columnName)Returns the SQL fragment when parsing aHavingSridExpression.default StringgetIsEmptySQL(String columnName, boolean isEmpty)Returns the SQL fragment when parsing aIsEmptyExpressionorIsNotEmptyexpression.default StringgetSpatialAggregateSQL(String columnName, int aggregation)Returns the SQL fragment for the specfied Spatial aggregate expression.default StringgetSpatialFilterExpression(String columnName)Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpressions into prepared statements.default StringgetSpatialRelateSQL(String columnName, int spatialRelation)Returns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpressions into prepared statements.default booleanisSpatial(int typeCode)default booleansupports(SpatialFunction function)Does this dialect supports the specifiedSpatialFunction.default booleansupportsFiltering()Returns true if thisSpatialDialectsupports a specific filtering function.
-
-
-
Field Detail
-
DELEGATE
static final CockroachDBSpatialSupport DELEGATE
-
-
Method Detail
-
functionsToRegister
default SpatialFunctionsRegistry functionsToRegister()
-
getSpatialRelateSQL
default String getSpatialRelateSQL(String columnName, int spatialRelation)
Description copied from interface:SpatialDialectReturns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpressions into prepared statements.- Specified by:
getSpatialRelateSQLin interfaceSpatialDialect- 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
-
delegateContributeTypes
default void delegateContributeTypes(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry)
-
getSpatialFilterExpression
default String getSpatialFilterExpression(String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpressions into prepared statements.- Specified by:
getSpatialFilterExpressionin interfaceSpatialDialect- Parameters:
columnName- The name of the geometry-typed column to which the filter is be applied- Returns:
- Rhe SQL fragment for the
SpatialFilterExpression
-
getSpatialAggregateSQL
default String getSpatialAggregateSQL(String columnName, int aggregation)
Description copied from interface:SpatialDialectReturns the SQL fragment for the specfied Spatial aggregate expression.- Specified by:
getSpatialAggregateSQLin interfaceSpatialDialect- Parameters:
columnName- The name of the Geometry propertyaggregation- The type ofSpatialAggregate- Returns:
- The SQL fragment for the projection
-
getDWithinSQL
default String getDWithinSQL(String columnName)
Description copied from interface:SpatialDialectReturns The SQL fragment when parsing aDWithinExpression.- Specified by:
getDWithinSQLin interfaceSpatialDialect- Parameters:
columnName- The geometry column to test against- Returns:
- The SQL fragment when parsing a
DWithinExpression.
-
getHavingSridSQL
default String getHavingSridSQL(String columnName)
Description copied from interface:SpatialDialectReturns the SQL fragment when parsing aHavingSridExpression.- Specified by:
getHavingSridSQLin interfaceSpatialDialect- Parameters:
columnName- The geometry column to test against- Returns:
- The SQL fragment for a
HavingSridExpression.
-
getIsEmptySQL
default String getIsEmptySQL(String columnName, boolean isEmpty)
Description copied from interface:SpatialDialectReturns the SQL fragment when parsing aIsEmptyExpressionorIsNotEmptyexpression.- Specified by:
getIsEmptySQLin interfaceSpatialDialect- Parameters:
columnName- The geometry columnisEmpty- Whether the geometry is tested for empty or non-empty- Returns:
- The SQL fragment for the isempty function
-
supportsFiltering
default boolean supportsFiltering()
Description copied from interface:SpatialDialectReturns true if thisSpatialDialectsupports a specific filtering function.This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
- Specified by:
supportsFilteringin interfaceSpatialDialect- Returns:
- True if filtering is supported
-
supports
default boolean supports(SpatialFunction function)
Description copied from interface:SpatialDialectDoes this dialect supports the specifiedSpatialFunction.- Specified by:
supportsin interfaceSpatialDialect- Parameters:
function-SpatialFunction- Returns:
- True if this
SpatialDialectsupports the spatial function specified by the function parameter.
-
isSpatial
default boolean isSpatial(int typeCode)
-
-