Interface CockroachSpatialDialectTrait
-
- All Superinterfaces:
java.io.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 java.lang.StringgetDWithinSQL(java.lang.String columnName)Returns The SQL fragment when parsing aDWithinExpression.default java.lang.StringgetHavingSridSQL(java.lang.String columnName)Returns the SQL fragment when parsing aHavingSridExpression.default java.lang.StringgetIsEmptySQL(java.lang.String columnName, boolean isEmpty)Returns the SQL fragment when parsing aIsEmptyExpressionorIsNotEmptyexpression.default java.lang.StringgetSpatialAggregateSQL(java.lang.String columnName, int aggregation)Returns the SQL fragment for the specfied Spatial aggregate expression.default java.lang.StringgetSpatialFilterExpression(java.lang.String columnName)Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpressions into prepared statements.default java.lang.StringgetSpatialRelateSQL(java.lang.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 java.lang.String getSpatialRelateSQL(java.lang.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 java.lang.String getSpatialFilterExpression(java.lang.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 java.lang.String getSpatialAggregateSQL(java.lang.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 java.lang.String getDWithinSQL(java.lang.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 java.lang.String getHavingSridSQL(java.lang.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 java.lang.String getIsEmptySQL(java.lang.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)
-
-