|
|||||||||
| 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.SQLServerDialect
org.hibernate.dialect.SQLServer2005Dialect
org.hibernate.dialect.SQLServer2008Dialect
org.hibernate.spatial.dialect.sqlserver.SqlServer2008SpatialDialect
public class SqlServer2008SpatialDialect
The SpatialDialect for Microsoft SQL Server (2008).
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_TYPE
|
static java.lang.String |
SHORT_NAME
|
| Fields inherited from class org.hibernate.dialect.Dialect |
|---|
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE |
| Constructor Summary | |
|---|---|
SqlServer2008SpatialDialect()
|
|
| Method Summary | |
|---|---|
java.lang.String |
applyLocksToSql(java.lang.String sql,
org.hibernate.LockOptions aliasedLockOptions,
java.util.Map keyColumnNames)
Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns. |
boolean |
dropTemporaryTableAfterUse()
Do we need to drop the temporary table after use? |
java.lang.String |
generateTemporaryTableName(java.lang.String baseTableName)
Generate a temporary table name given the base table. |
java.lang.String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
java.lang.String |
getDWithinSQL(java.lang.String columnName)
Returns the SQL fragment when parsing a DWithinExpression. |
java.lang.String |
getForUpdateString()
Get the string to append to SELECT statements to acquire locks for this dialect. |
java.lang.String |
getHavingSridSQL(java.lang.String columnName)
Returns the SQL fragment when parsing an HavingSridExpression. |
java.lang.String |
getIdentityColumnString()
The syntax used during DDL to define a column as being an IDENTITY. |
java.lang.String |
getIdentitySelectString()
Get the select command to use to retrieve the last generated IDENTITY value. |
java.lang.String |
getIsEmptySQL(java.lang.String columnName,
boolean isEmpty)
Returns the SQL fragment when parsing a IsEmptyExpression or
IsNotEmpty expression. |
java.lang.String |
getNullColumnString()
The keyword used to specify a nullable column. |
java.sql.ResultSet |
getResultSet(java.sql.CallableStatement ps)
Given a callable statement previously processed by Dialect.registerResultSetOutParameter(java.sql.CallableStatement, int),
extract the ResultSet from the OUT parameter. |
java.lang.String |
getSelectGUIDString()
Get the command used to select a GUID from the underlying database. |
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. |
boolean |
isCurrentTimestampSelectStringCallable()
Should the value returned by Dialect.getCurrentTimestampSelectString()
be treated as callable. |
boolean |
qualifyIndexName()
Do we need to qualify index names with the schema name? |
int |
registerResultSetOutParameter(java.sql.CallableStatement statement,
int col)
Registers an OUT parameter which will be returning a ResultSet. |
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 |
supportsCurrentTimestampSelection()
Does this dialect support a way to retrieve the database's current timestamp value? |
boolean |
supportsEmptyInList()
Does this dialect support empty IN lists? For example, is [where XYZ in ()] a supported construct? |
boolean |
supportsExistsInSelect()
Does the dialect support an exists statement in the select clause? |
boolean |
supportsFiltering()
Returns true if this SpatialDialect supports a specific filtering function. |
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsInsertSelectIdentity()
Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement. |
boolean |
supportsTemporaryTables()
Does this dialect support temporary tables? |
boolean |
supportsTupleDistinctCounts()
Does this dialect support `count(distinct a,b)`? |
boolean |
supportsUnionAll()
Does this dialect support UNION ALL, which is generally a faster variant of UNION? |
| Methods inherited from class org.hibernate.dialect.SQLServer2005Dialect |
|---|
appendLockHint, buildLimitHandler, buildSQLExceptionConversionDelegate |
| Methods inherited from class org.hibernate.dialect.SQLServerDialect |
|---|
appendIdentitySelectToInsert, areStringComparisonsCaseInsensitive, closeQuote, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, getCurrentTimestampSelectString, getInExpressionCountLimit, getLimitString, getNoColumnsInsertString, openQuote, supportsCircularCascadeDeleteConstraints, supportsLimit, supportsLimitOffset, supportsLobValueChangePropogation, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsVariableLimit, useMaxForLimit |
| Methods inherited from class org.hibernate.dialect.Dialect |
|---|
appendLockHint, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, cast, cast, cast, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, dropConstraints, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getCascadeConstraintsString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateMultisetTableString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCreateTemporaryTablePostfix, getCreateTemporaryTableString, getCrossJoinSeparator, getCurrentTimestampSQLFunctionName, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceStrings, getDropTableString, getDropTemporaryTableString, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, getKeywords, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNativeIdentifierGeneratorClass, getNotExpression, getQuerySequencesString, getReadLockString, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceNextValString, getTableComment, getTableTypeString, getTypeName, getViolatedConstraintNameExtracter, getWriteLockString, hasAlterTable, hasDataTypeInIdentityColumn, hasSelfReferentialForeignKeyBug, isLockTimeoutParameterized, performTemporaryTableDDLInIsolation, quote, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsColumnCheck, supportsCommentOn, supportsExpectedLobUsagePattern, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsLockTimeouts, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPooledSequences, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSequences, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useInputStreamToInsertBlob |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SHORT_NAME
public static final java.lang.String COLUMN_TYPE
| Constructor Detail |
|---|
public SqlServer2008SpatialDialect()
| Method Detail |
|---|
public java.lang.String getTypeName(int code,
long length,
int precision,
int scale)
throws org.hibernate.HibernateException
org.hibernate.dialect.DialectTypes typecode with the given storage specification
parameters.
getTypeName in class org.hibernate.dialect.Dialectcode - The Types typecodelength - The datatype lengthprecision - The datatype precisionscale - The datatype scale
org.hibernate.HibernateException - If no mapping was specified for that type.public 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 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 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 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.public java.lang.String getAddColumnString()
org.hibernate.dialect.Dialect
getAddColumnString in class org.hibernate.dialect.Dialectpublic java.lang.String getNullColumnString()
org.hibernate.dialect.Dialect
getNullColumnString in class org.hibernate.dialect.Dialectpublic boolean qualifyIndexName()
org.hibernate.dialect.Dialect
qualifyIndexName in class org.hibernate.dialect.Dialectpublic java.lang.String getForUpdateString()
org.hibernate.dialect.Dialect
getForUpdateString in class org.hibernate.dialect.Dialectpublic boolean supportsIdentityColumns()
org.hibernate.dialect.Dialect
supportsIdentityColumns in class org.hibernate.dialect.Dialectpublic java.lang.String getIdentitySelectString()
org.hibernate.dialect.Dialect
getIdentitySelectString in class org.hibernate.dialect.Dialectpublic java.lang.String getIdentityColumnString()
org.hibernate.dialect.Dialect
getIdentityColumnString in class org.hibernate.dialect.Dialectpublic boolean supportsInsertSelectIdentity()
org.hibernate.dialect.Dialect
supportsInsertSelectIdentity in class org.hibernate.dialect.Dialect
public java.lang.String applyLocksToSql(java.lang.String sql,
org.hibernate.LockOptions aliasedLockOptions,
java.util.Map keyColumnNames)
org.hibernate.dialect.Dialect
applyLocksToSql in class org.hibernate.dialect.Dialectsql - the SQL string to modifyaliasedLockOptions - lock options indexed by aliased table names.keyColumnNames - a map of key columns indexed by aliased table names.
public int registerResultSetOutParameter(java.sql.CallableStatement statement,
int col)
throws java.sql.SQLException
org.hibernate.dialect.DialectResultSet. How this is accomplished varies greatly
from DB to DB, hence its inclusion (along with Dialect.getResultSet(java.sql.CallableStatement)) here.
registerResultSetOutParameter in class org.hibernate.dialect.Dialectstatement - The callable statement.col - The bind position at which to register the OUT param.
java.sql.SQLException - Indicates problems registering the OUT param.
public java.sql.ResultSet getResultSet(java.sql.CallableStatement ps)
throws java.sql.SQLException
org.hibernate.dialect.DialectDialect.registerResultSetOutParameter(java.sql.CallableStatement, int),
extract the ResultSet from the OUT parameter.
getResultSet in class org.hibernate.dialect.Dialectps - The callable statement.
java.sql.SQLException - Indicates problems extracting the result set.public boolean supportsCurrentTimestampSelection()
org.hibernate.dialect.Dialect
supportsCurrentTimestampSelection in class org.hibernate.dialect.Dialectpublic boolean isCurrentTimestampSelectStringCallable()
org.hibernate.dialect.DialectDialect.getCurrentTimestampSelectString()
be treated as callable. Typically this indicates that JDBC escape
syntax is being used...
isCurrentTimestampSelectStringCallable in class org.hibernate.dialect.DialectDialect.getCurrentTimestampSelectString() return
is callable; false otherwise.public boolean supportsTemporaryTables()
org.hibernate.dialect.Dialect
supportsTemporaryTables in class org.hibernate.dialect.Dialectpublic java.lang.String generateTemporaryTableName(java.lang.String baseTableName)
org.hibernate.dialect.Dialect
generateTemporaryTableName in class org.hibernate.dialect.DialectbaseTableName - The table name from which to base the temp table name.
public boolean dropTemporaryTableAfterUse()
org.hibernate.dialect.Dialect
dropTemporaryTableAfterUse in class org.hibernate.dialect.Dialectpublic java.lang.String getSelectGUIDString()
org.hibernate.dialect.Dialect
getSelectGUIDString in class org.hibernate.dialect.Dialectpublic boolean supportsEmptyInList()
org.hibernate.dialect.Dialect
supportsEmptyInList in class org.hibernate.dialect.Dialectpublic boolean supportsUnionAll()
org.hibernate.dialect.Dialect
supportsUnionAll in class org.hibernate.dialect.Dialectpublic boolean supportsExistsInSelect()
org.hibernate.dialect.Dialect
supportsExistsInSelect in class org.hibernate.dialect.Dialectpublic boolean supportsTupleDistinctCounts()
org.hibernate.dialect.Dialect
supportsTupleDistinctCounts in class org.hibernate.dialect.Dialect
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||