public class OracleSpatialSDO10gDialect extends org.hibernate.dialect.Oracle10gDialect implements SpatialDialect, Serializable
A Spatial Dialect for Oracle 10g/11g that uses the "native" SDO spatial operators. <p> Created by Karel Maesen, Geovise BVBA on 11/02/17.
Constructor and Description |
---|
OracleSpatialSDO10gDialect()
Constructs the dialect
|
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 <code>DWithinExpression</code>.
|
String |
getHavingSridSQL(String columnName)
Returns the SQL fragment when parsing a <code>HavingSridExpression</code>.
|
String |
getIsEmptySQL(String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a <code>IsEmptyExpression</code> or
<code>IsNotEmpty</code> 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
<code>org.hibernate.spatial.criterion.SpatialFilterExpression</code>s
into prepared statements.
|
String |
getSpatialRelateSQL(String columnName,
int spatialRelation)
Returns the SQL fragment for the SQL WHERE-clause when parsing
<code>org.hibernatespatial.criterion.SpatialRelateExpression</code>s
into prepared statements.
|
boolean |
supports(SpatialFunction function)
Does this dialect supports the specified <code>SpatialFunction</code>.
|
boolean |
supportsFiltering()
Returns true if this <code>SpatialDialect</code> supports a specific filtering function.
|
createOuterJoinFragment, getCrossJoinSeparator, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getResultSet, getResultSet, getWriteLockString, getWriteLockString, registerResultSetOutParameter, supportsSkipLocked
createCaseFragment, getCurrentTimestampSelectString, getCurrentTimestampSQLFunctionName, getForUpdateString, getLimitHandler, getLimitString, getReadLockString, getSelectClauseNullString, registerCharacterTypeMappings, registerDateTimeTypeMappings, supportsRowValueConstructorSyntaxInInList, supportsTupleDistinctCounts
bindLimitParametersInReverseOrder, buildSQLExceptionConversionDelegate, canCreateSchema, dropConstraints, forceLobAsLastValue, forUpdateOfColumns, getAddColumnString, getBasicSelectClauseNullString, getCallableStatementSupport, getCascadeConstraintsString, getCreateSequenceString, getCreateSequenceString, getCurrentSchemaCommand, getDefaultMultiTableBulkIdStrategy, getDropSequenceString, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getInExpressionCountLimit, getMaxAliasLength, getNotExpression, getQueryHintString, getQuerySequencesString, getResultSet, getSelectGUIDString, getSelectSequenceNextValString, getSequenceNextValString, getSqlTypeDescriptorOverride, getViolatedConstraintNameExtracter, isCurrentTimestampSelectStringCallable, registerDefaultProperties, registerFunctions, registerLargeObjectTypeMappings, registerNumericTypeMappings, registerResultSetOutParameter, registerReverseHibernateTypeMappings, statementType, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExistsInSelect, supportsLimit, supportsPartitionBy, supportsPooledSequences, supportsSequences, supportsUnionAll, useFollowOnLocking, useMaxForLimit
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, buildIdentifierHelper, buildSQLExceptionConverter, canCreateCatalog, cast, cast, cast, closeQuote, convertToFirstRowValue, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnSupport, getIndexExporter, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getReadLockString, getSchemaNameResolver, getSequenceExporter, getSequenceInformationExtractor, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsLimitOffset, supportsLobValueChangePropogation, supportsLockTimeouts, supportsNamedParameters, supportsNationalizedTypes, supportsNonQueryWithCTE, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTuplesInSubqueries, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useInputStreamToInsertBlob
public OracleSpatialSDO10gDialect()
Constructs the dialect
public void contributeTypes(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry)
contributeTypes
in class org.hibernate.dialect.Dialect
public String getSpatialFilterExpression(String columnName)
SpatialDialect
Returns the SQL fragment for the SQL WHERE-expression when parsing <code>org.hibernate.spatial.criterion.SpatialFilterExpression</code>s into prepared statements.
getSpatialFilterExpression
in interface SpatialDialect
columnName
- The name of the geometry-typed column to which the filter is
be appliedSpatialFilterExpression
public String getSpatialRelateSQL(String columnName, int spatialRelation)
SpatialDialect
Returns the SQL fragment for the SQL WHERE-clause when parsing <code>org.hibernatespatial.criterion.SpatialRelateExpression</code>s into prepared statements. <p/>
getSpatialRelateSQL
in interface SpatialDialect
columnName
- The name of the geometry-typed column to which the relation is
appliedspatialRelation
- The type of spatial relation (as defined in
<code>SpatialRelation</code>).SpatialRelateExpression
public String getSpatialAggregateSQL(String columnName, int aggregation)
SpatialDialect
Returns the SQL fragment for the specfied Spatial aggregate expression.
getSpatialAggregateSQL
in interface SpatialDialect
columnName
- The name of the Geometry propertyaggregation
- The type of <code>SpatialAggregate</code>public String getDWithinSQL(String columnName)
SpatialDialect
Returns The SQL fragment when parsing a <code>DWithinExpression</code>.
getDWithinSQL
in interface SpatialDialect
columnName
- The geometry column to test againstpublic String getHavingSridSQL(String columnName)
SpatialDialect
Returns the SQL fragment when parsing a <code>HavingSridExpression</code>.
getHavingSridSQL
in interface SpatialDialect
columnName
- The geometry column to test againstpublic String getIsEmptySQL(String columnName, boolean isEmpty)
SpatialDialect
Returns the SQL fragment when parsing a <code>IsEmptyExpression</code> or <code>IsNotEmpty</code> expression.
getIsEmptySQL
in interface SpatialDialect
columnName
- The geometry columnisEmpty
- Whether the geometry is tested for empty or non-emptypublic boolean supportsFiltering()
SpatialDialect
Returns true if this <code>SpatialDialect</code> supports a specific filtering function. <p> This is intended to signal DB-support for fast window queries, or MBR-overlap queries.</p>
supportsFiltering
in interface SpatialDialect
public boolean supports(SpatialFunction function)
SpatialDialect
Does this dialect supports the specified <code>SpatialFunction</code>.
supports
in interface SpatialDialect
function
- <code>SpatialFunction</code>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.