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 CockroachDBSpatialSupport
DELEGATE
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
delegateContributeTypes(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry)
default SpatialFunctionsRegistry
functionsToRegister()
default java.lang.String
getDWithinSQL(java.lang.String columnName)
Returns The SQL fragment when parsing aDWithinExpression
.default java.lang.String
getHavingSridSQL(java.lang.String columnName)
Returns the SQL fragment when parsing aHavingSridExpression
.default java.lang.String
getIsEmptySQL(java.lang.String columnName, boolean isEmpty)
Returns the SQL fragment when parsing aIsEmptyExpression
orIsNotEmpty
expression.default java.lang.String
getSpatialAggregateSQL(java.lang.String columnName, int aggregation)
Returns the SQL fragment for the specfied Spatial aggregate expression.default java.lang.String
getSpatialFilterExpression(java.lang.String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsingorg.hibernate.spatial.criterion.SpatialFilterExpression
s into prepared statements.default java.lang.String
getSpatialRelateSQL(java.lang.String columnName, int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpression
s into prepared statements.default boolean
isSpatial(int typeCode)
default boolean
supports(SpatialFunction function)
Does this dialect supports the specifiedSpatialFunction
.default boolean
supportsFiltering()
Returns true if thisSpatialDialect
supports 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:SpatialDialect
Returns the SQL fragment for the SQL WHERE-clause when parsingorg.hibernatespatial.criterion.SpatialRelateExpression
s into prepared statements.- Specified by:
getSpatialRelateSQL
in 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.SpatialFilterExpression
s into prepared statements.- Specified by:
getSpatialFilterExpression
in 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:SpatialDialect
Returns the SQL fragment for the specfied Spatial aggregate expression.- Specified by:
getSpatialAggregateSQL
in 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:SpatialDialect
Returns The SQL fragment when parsing aDWithinExpression
.- Specified by:
getDWithinSQL
in 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:SpatialDialect
Returns the SQL fragment when parsing aHavingSridExpression
.- Specified by:
getHavingSridSQL
in 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:SpatialDialect
Returns the SQL fragment when parsing aIsEmptyExpression
orIsNotEmpty
expression.- Specified by:
getIsEmptySQL
in 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:SpatialDialect
Returns true if thisSpatialDialect
supports a specific filtering function.This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
- Specified by:
supportsFiltering
in interfaceSpatialDialect
- Returns:
- True if filtering is supported
-
supports
default boolean supports(SpatialFunction function)
Description copied from interface:SpatialDialect
Does this dialect supports the specifiedSpatialFunction
.- Specified by:
supports
in interfaceSpatialDialect
- Parameters:
function
-SpatialFunction
- Returns:
- True if this
SpatialDialect
supports the spatial function specified by the function parameter.
-
isSpatial
default boolean isSpatial(int typeCode)
-
-