public class MySQLSpatialDialect extends org.hibernate.dialect.MySQLDialect implements SpatialDialect
| Constructor and Description |
|---|
MySQLSpatialDialect()
Constructs an instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
contributeTypes(org.hibernate.boot.model.TypeContributions typeContributions,
org.hibernate.service.ServiceRegistry serviceRegistry) |
String |
getDWithinSQL(String columnName)
Returns The SQL fragment when parsing a
DWithinExpression. |
String |
getHavingSridSQL(String columnName)
Returns the SQL fragment when parsing a
HavingSridExpression. |
String |
getIsEmptySQL(String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a
IsEmptyExpression or
IsNotEmpty expression. |
String |
getSpatialAggregateSQL(String columnName,
int aggregation)
Returns the SQL fragment for the specfied Spatial aggregate expression.
|
String |
getSpatialFilterExpression(String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsing
org.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements. |
String |
getSpatialRelateSQL(String columnName,
int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsing
org.hibernatespatial.criterion.SpatialRelateExpressions
into prepared statements. |
boolean |
supports(SpatialFunction function)
Does this dialect supports the specified
SpatialFunction. |
boolean |
supportsFiltering()
Returns true if this
SpatialDialect supports a specific filtering function. |
areStringComparisonsCaseInsensitive, buildSQLExceptionConversionDelegate, canCreateCatalog, canCreateSchema, closeQuote, dropConstraints, escapeLiteral, fixedPointNumberCastTarget, floatingPointNumberCastTarget, getAddColumnString, getAddForeignKeyConstraintString, getCastTypeName, getColumnComment, getCreateCatalogCommand, getCreateSchemaCommand, getCurrentTimestampSelectString, getDefaultMultiTableBulkIdStrategy, getDefaultMySQLStorageEngine, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getEngineKeyword, getForUpdateString, getIdentityColumnSupport, getLimitHandler, getLimitString, getNotExpression, getReadLockString, getResultSet, getSelectGUIDString, getTableComment, getTableTypeString, getUniqueDelegate, getWriteLockString, hasSelfReferentialForeignKeyBug, isCurrentTimestampSelectStringCallable, isJdbcLogWarningsEnabledByDefault, openQuote, qualifyIndexName, registerResultSetOutParameter, registerVarcharTypes, renderOrderByElement, smallIntegerCastTarget, supportsCascadeDelete, supportsCurrentTimestampSelection, supportsEmptyInList, supportsIfExistsBeforeTableName, supportsLimit, supportsLobValueChangePropogation, supportsLockTimeouts, supportsRowValueConstructorSyntax, supportsSubqueryOnMutatingTableaddSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, augmentRecognizedTableTypes, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildIdentifierHelper, buildSQLExceptionConverter, cast, cast, cast, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getColumnAliasExtractor, getCreateMultisetTableString, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentSchemaCommand, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropSequenceString, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getQueryHintString, getQuerySequencesString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceExporter, getSequenceInformationExtractor, getSequenceNextValString, getSqlTypeDescriptorOverride, getTableExporter, getTypeName, getTypeName, getUniqueKeyExporter, getViolatedConstraintNameExtracter, getWriteLockString, hasAlterTable, inlineLiteral, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, prependComment, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsCommentOn, supportsExistsInSelect, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsJdbcConnectionLobCreation, supportsLimitOffset, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsNoWait, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPartitionBy, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntaxInInList, supportsSequences, supportsSkipLocked, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob, useMaxForLimitpublic void contributeTypes(org.hibernate.boot.model.TypeContributions typeContributions,
org.hibernate.service.ServiceRegistry serviceRegistry)
contributeTypes in class org.hibernate.dialect.Dialectpublic String getSpatialRelateSQL(String columnName, int spatialRelation)
SpatialDialectorg.hibernatespatial.criterion.SpatialRelateExpressions
into prepared statements.
getSpatialRelateSQL in interface SpatialDialectcolumnName - The name of the geometry-typed column to which the relation is
appliedspatialRelation - The type of spatial relation (as defined in
SpatialRelation).SpatialRelateExpressionpublic String getSpatialFilterExpression(String columnName)
SpatialDialectorg.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements.getSpatialFilterExpression in interface SpatialDialectcolumnName - The name of the geometry-typed column to which the filter is
be appliedSpatialFilterExpressionpublic String getSpatialAggregateSQL(String columnName, int aggregation)
SpatialDialectgetSpatialAggregateSQL in interface SpatialDialectcolumnName - The name of the Geometry propertyaggregation - The type of SpatialAggregatepublic String getDWithinSQL(String columnName)
SpatialDialectDWithinExpression.getDWithinSQL in interface SpatialDialectcolumnName - The geometry column to test againstDWithinExpression.public String getHavingSridSQL(String columnName)
SpatialDialectHavingSridExpression.getHavingSridSQL in interface SpatialDialectcolumnName - The geometry column to test againstHavingSridExpression.public String getIsEmptySQL(String columnName, boolean isEmpty)
SpatialDialectIsEmptyExpression or
IsNotEmpty expression.getIsEmptySQL in interface SpatialDialectcolumnName - The geometry columnisEmpty - Whether the geometry is tested for empty or non-emptypublic boolean supportsFiltering()
SpatialDialectSpatialDialect supports a specific filtering function.
This is intended to signal DB-support for fast window queries, or MBR-overlap queries.
supportsFiltering in interface SpatialDialectpublic boolean supports(SpatialFunction function)
SpatialDialectSpatialFunction.supports in interface SpatialDialectfunction - SpatialFunctionSpatialDialect supports the spatial function specified by the function parameter.Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.