public class PostgisPG91Dialect extends org.hibernate.dialect.PostgreSQL91Dialect implements SpatialDialect
PostgreSQL91Dialect to add support for the Postgis spatial types, functions and operators .
 Created by Karel Maesen, Geovise BVBA on 01/11/16.
| Constructor and Description | 
|---|
| PostgisPG91Dialect()Creates 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  IsEmptyExpressionorIsNotEmptyexpression. | 
| 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  SpatialDialectsupports a specific filtering function. | 
supportsNonQueryWithCTE, supportsPartitionBysupportsIfExistsBeforeConstraintNamegetDefaultMultiTableBulkIdStrategy, getDropSequenceString, supportsIfExistsBeforeTableName, supportsRowValueConstructorSyntaxInInList, supportsValuesListbindLimitParametersInReverseOrder, buildSQLExceptionConversionDelegate, dropConstraints, getAddColumnString, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getCreateSequenceString, getCreateSequenceString, getCurrentTimestampSelectString, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getForUpdateString, getIdentityColumnSupport, getLimitHandler, getLimitString, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getQuerySequencesString, getReadLockString, getReadLockString, getResultSet, getResultSet, getResultSet, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceNextValString, getSqlTypeDescriptorOverride, getViolatedConstraintNameExtracter, getWriteLockString, getWriteLockString, isCurrentTimestampSelectStringCallable, qualifyIndexName, registerResultSetOutParameter, requiresParensForTupleDistinctCounts, supportsCaseInsensitiveLike, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExpectedLobUsagePattern, supportsJdbcConnectionLobCreation, supportsLimit, supportsLobValueChangePropogation, supportsNationalizedTypes, supportsNoWait, supportsOuterJoinForUpdate, supportsPooledSequences, supportsRowValueConstructorSyntax, supportsSequences, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, toBooleanValueString, useInputStreamToInsertBlobaddSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, buildIdentifierHelper, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, closeQuote, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentSchemaCommand, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNotExpression, getNullColumnString, getQueryHintString, getQueryHintString, getSchemaNameResolver, getSelectGUIDString, getSequenceExporter, getSequenceInformationExtractor, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExistsInSelect, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsLimitOffset, supportsLockTimeouts, supportsNamedParameters, supportsNoColumnsInsert, supportsNotNullUnique, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useMaxForLimitpublic void contributeTypes(org.hibernate.boot.model.TypeContributions typeContributions,
                            org.hibernate.service.ServiceRegistry serviceRegistry)
contributeTypes in class org.hibernate.dialect.PostgreSQL82Dialectpublic String getSpatialRelateSQL(String columnName, int spatialRelation)
org.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)
org.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)
getSpatialAggregateSQL in interface SpatialDialectcolumnName - The name of the Geometry propertyaggregation - The type of SpatialAggregatepublic String getDWithinSQL(String columnName)
DWithinExpression.getDWithinSQL in interface SpatialDialectcolumnName - The geometry column to test againstDWithinExpression.public String getHavingSridSQL(String columnName)
HavingSridExpression.getHavingSridSQL in interface SpatialDialectcolumnName - The geometry column to test againstHavingSridExpression.public String getIsEmptySQL(String columnName, boolean isEmpty)
IsEmptyExpression or
 IsNotEmpty expression.getIsEmptySQL in interface SpatialDialectcolumnName - The geometry columnisEmpty - Whether the geometry is tested for empty or non-emptypublic boolean supportsFiltering()
SpatialDialect 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)
SpatialFunction.supports in interface SpatialDialectfunction - SpatialFunctionSpatialDialect supports the spatial function specified by the function parameter.Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.