|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hibernate.dialect.Dialect
org.hibernate.dialect.PostgreSQL81Dialect
org.hibernate.dialect.PostgreSQL82Dialect
org.hibernate.dialect.PostgreSQLDialect
org.hibernate.spatial.dialect.postgis.PostgisDialect
public class PostgisDialect
Extends the PostgreSQLDialect by also including information on spatial operators, constructors and processing functions.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.dialect.Dialect |
|---|
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE |
| Constructor Summary | |
|---|---|
PostgisDialect()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDWithinSQL(java.lang.String columnName)
Returns the SQL fragment when parsing a DWithinExpression. |
java.lang.String |
getHavingSridSQL(java.lang.String columnName)
Returns the SQL fragment when parsing an HavingSridExpression. |
java.lang.String |
getIsEmptySQL(java.lang.String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a IsEmptyExpression or
IsNotEmpty expression. |
java.lang.String |
getSpatialAggregateSQL(java.lang.String columnName,
int aggregation)
|
java.lang.String |
getSpatialFilterExpression(java.lang.String columnName)
Returns the SQL fragment for the SQL WHERE-expression when parsing org.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements. |
java.lang.String |
getSpatialRelateSQL(java.lang.String columnName,
int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsing org.hibernatespatial.criterion.SpatialRelateExpressions
into prepared statements. |
java.lang.String |
getTypeName(int code,
long length,
int precision,
int scale)
Get the name of the database type associated with the given Types typecode with the given storage specification
parameters. |
org.hibernate.type.descriptor.sql.SqlTypeDescriptor |
remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)
Allows the dialect to override a SqlTypeDescriptor. |
boolean |
supports(SpatialFunction function)
Does this dialect supports the specified SpatialFunction. |
boolean |
supportsFiltering()
Returns true if this SpatialDialect supports a specific filtering function. |
| Methods inherited from class org.hibernate.dialect.PostgreSQL82Dialect |
|---|
supportsIfExistsBeforeTableName |
| Methods inherited from class org.hibernate.dialect.PostgreSQL81Dialect |
|---|
bindLimitParametersInReverseOrder, buildSQLExceptionConversionDelegate, dropConstraints, getAddColumnString, getCascadeConstraintsString, getCaseInsensitiveLike, getCreateSequenceString, getCreateTemporaryTablePostfix, getCreateTemporaryTableString, getCurrentTimestampSelectString, getDropSequenceString, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getIdentityColumnString, getIdentitySelectString, getLimitString, getNativeIdentifierGeneratorClass, getNoColumnsInsertString, getQuerySequencesString, getReadLockString, getResultSet, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceNextValString, getSqlTypeDescriptorOverride, getViolatedConstraintNameExtracter, getWriteLockString, hasDataTypeInIdentityColumn, isCurrentTimestampSelectStringCallable, registerResultSetOutParameter, supportsCaseInsensitiveLike, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExpectedLobUsagePattern, supportsIdentityColumns, supportsLimit, supportsLobValueChangePropogation, supportsOuterJoinForUpdate, supportsPooledSequences, supportsRowValueConstructorSyntax, supportsSequences, supportsTemporaryTables, supportsTupleDistinctCounts, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, toBooleanValueString, useInputStreamToInsertBlob |
| Methods inherited from class org.hibernate.dialect.Dialect |
|---|
appendIdentitySelectToInsert, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, bindLimitParametersFirst, buildLimitHandler, buildSQLExceptionConverter, cast, cast, cast, closeQuote, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, dropTemporaryTableAfterUse, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, generateTemporaryTableName, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateMultisetTableString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentTimestampSQLFunctionName, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceStrings, getDropTableString, getDropTemporaryTableString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityInsertString, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNotExpression, getNullColumnString, getSelectGUIDString, getTableComment, getTableTypeString, getTypeName, hasAlterTable, hasSelfReferentialForeignKeyBug, isLockTimeoutParameterized, openQuote, performTemporaryTableDDLInIsolation, qualifyIndexName, quote, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExistsInSelect, supportsIfExistsAfterTableName, supportsInsertSelectIdentity, supportsLimitOffset, supportsLockTimeouts, supportsNotNullUnique, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntaxInInList, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toString, transformSelectString, useFollowOnLocking, useMaxForLimit |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PostgisDialect()
| Method Detail |
|---|
public java.lang.String getTypeName(int code,
long length,
int precision,
int scale)
throws org.hibernate.HibernateException
Types typecode with the given storage specification
parameters. In the case of typecode == 3000, it returns this dialect's spatial type which is
GEOMETRY.
getTypeName in class org.hibernate.dialect.Dialectcode - The Types typecodelength - The datatype lengthprecision - The datatype precisionscale - The datatype scale
org.hibernate.HibernateExceptionpublic org.hibernate.type.descriptor.sql.SqlTypeDescriptor remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)
org.hibernate.dialect.DialectSqlTypeDescriptor.
If the passed sqlTypeDescriptor allows itself to be remapped (per
SqlTypeDescriptor.canBeRemapped()), then this method uses
Dialect.getSqlTypeDescriptorOverride(int) to get an optional override based on the SQL code returned by
SqlTypeDescriptor.getSqlType().
If this dialect does not provide an override or if the sqlTypeDescriptor doe not allow itself to be
remapped, then this method simply returns the original passed sqlTypeDescriptor
remapSqlTypeDescriptor in class org.hibernate.dialect.DialectsqlTypeDescriptor - The SqlTypeDescriptor to override
SqlTypeDescriptor that should be used for this dialect;
if there is no override, then original sqlTypeDescriptor is returned.Dialect.getSqlTypeDescriptorOverride(int)
public java.lang.String getSpatialRelateSQL(java.lang.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).
public java.lang.String getDWithinSQL(java.lang.String columnName)
SpatialDialectDWithinExpression.
getDWithinSQL in interface SpatialDialectcolumnName - the geometry column to test against
public java.lang.String getHavingSridSQL(java.lang.String columnName)
SpatialDialectHavingSridExpression.
getHavingSridSQL in interface SpatialDialectcolumnName - the geometry column to test against
public java.lang.String getIsEmptySQL(java.lang.String columnName,
boolean isEmpty)
SpatialDialectIsEmptyExpression or
IsNotEmpty expression.
getIsEmptySQL in interface SpatialDialectcolumnName - the geometry columnisEmpty - whether the geometry is tested for empty or non-empty
public java.lang.String getSpatialFilterExpression(java.lang.String columnName)
SpatialDialectorg.hibernate.spatial.criterion.SpatialFilterExpressions
into prepared statements.
getSpatialFilterExpression in interface SpatialDialect
public java.lang.String getSpatialAggregateSQL(java.lang.String columnName,
int aggregation)
getSpatialAggregateSQL in interface SpatialDialectcolumnName - the name of the Geometry propertyaggregation - the type of SpatialAggregate
public 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 - SpatialFunction
SpatialDialect supports the spatial function specified by the function parameter.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||