类 SQLServer2008Dialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.SQLServerDialect
-
- org.hibernate.dialect.SQLServer2005Dialect
-
- org.hibernate.dialect.SQLServer2008Dialect
-
- 所有已实现的接口:
ConversionContext
- 直接已知子类:
SQLServer2012Dialect
public class SQLServer2008Dialect extends SQLServer2005Dialect
A dialect for Microsoft SQL Server 2008 with JDBC Driver 3.0 and above- 作者:
- Gavin King
-
-
构造器概要
构造器 构造器 说明 SQLServer2008Dialect()Constructs a SQLServer2008Dialect
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringapplyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns.StringgetAddColumnString()The syntax used to add a column to a table (optional).MultiTableBulkIdStrategygetDefaultMultiTableBulkIdStrategy()StringgetForUpdateString()Get the string to append to SELECT statements to acquire locks for this dialect.StringgetNullColumnString()The keyword used to specify a nullable column.ResultSetgetResultSet(CallableStatement ps)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.StringgetSelectGUIDString()Get the command used to select a GUID from the underlying database.booleanisCurrentTimestampSelectStringCallable()Should the value returned byDialect.getCurrentTimestampSelectString()be treated as callable.booleanqualifyIndexName()Do we need to qualify index names with the schema name?intregisterResultSetOutParameter(CallableStatement statement, int col)Registers a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by position*.StringrenderOrderByElement(String expression, String collation, String order, NullPrecedence nulls)Renders an ordering fragmentbooleansupportsCurrentTimestampSelection()Does this dialect support a way to retrieve the database's current timestamp value?booleansupportsEmptyInList()Does this dialect support empty IN lists?booleansupportsExistsInSelect()Does the dialect support an exists statement in the select clause?booleansupportsPartitionBy()Does the underlying database support partition bybooleansupportsTupleDistinctCounts()Does this dialect support `count(distinct a,b)`?booleansupportsTuplesInSubqueries()Does this dialect support tuples in subqueries?booleansupportsUnionAll()Does this dialect support UNION ALL, which is generally a faster variant of UNION?booleansupportsValuesList()Does this dialect/database support VALUES list (e.g.-
从类继承的方法 org.hibernate.dialect.SQLServer2005Dialect
appendLockHint, buildSQLExceptionConversionDelegate, getDefaultLimitHandler, supportsNonQueryWithCTE, supportsNoWait, supportsSkipLocked
-
从类继承的方法 org.hibernate.dialect.SQLServerDialect
areStringComparisonsCaseInsensitive, closeQuote, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, getCurrentSchemaCommand, getCurrentTimestampSelectString, getIdentityColumnSupport, getInExpressionCountLimit, getLimitHandler, getLimitString, getNoColumnsInsertString, getSqlTypeDescriptorOverride, openQuote, supportsCircularCascadeDeleteConstraints, supportsLimit, supportsLimitOffset, supportsLobValueChangePropogation, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsVariableLimit, useMaxForLimit
-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, augmentRecognizedTableTypes, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildIdentifierHelper, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, contributeTypes, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, dropConstraints, escapeLiteral, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceString, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNotExpression, getQueryHintString, getQueryHintString, getQuerySequencesString, getReadLockString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceExporter, getSequenceInformationExtractor, getSequenceNextValString, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getViolatedConstraintNameExtracter, getWriteLockString, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, prependComment, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsColumnCheck, supportsCommentOn, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsJdbcConnectionLobCreation, supportsLockTimeouts, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPooledSequences, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSelectAliasInGroupByClause, supportsSequences, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob
-
-
-
-
方法详细资料
-
renderOrderByElement
public String renderOrderByElement(String expression, String collation, String order, NullPrecedence nulls)
从类复制的说明:DialectRenders an ordering fragment- 覆盖:
renderOrderByElement在类中Dialect- 参数:
expression- The SQL order expression. In case of@OrderByannotation user receives property placeholder (e.g. attribute name enclosed in '{' and '}' signs).collation- Collation string in formatcollate IDENTIFIER, ornullif expression has not been explicitly specified.order- Order direction. Possible values:asc,desc, ornullif expression has not been explicitly specified.nulls- Nulls precedence. Default value:NullPrecedence.NONE.- 返回:
- Renders single element of
ORDER BYclause.
-
supportsValuesList
public boolean supportsValuesList()
从类复制的说明:DialectDoes this dialect/database support VALUES list (e.g. VALUES (1), (2), (3) )- 覆盖:
supportsValuesList在类中Dialect- 返回:
trueif VALUES list are supported
-
getAddColumnString
public String getAddColumnString()
从类复制的说明:DialectThe syntax used to add a column to a table (optional).- 覆盖:
getAddColumnString在类中Dialect- 返回:
- The "add column" fragment.
-
getNullColumnString
public String getNullColumnString()
从类复制的说明:DialectThe keyword used to specify a nullable column.- 覆盖:
getNullColumnString在类中Dialect- 返回:
- String
-
qualifyIndexName
public boolean qualifyIndexName()
从类复制的说明:DialectDo we need to qualify index names with the schema name?- 覆盖:
qualifyIndexName在类中Dialect- 返回:
- boolean
-
getForUpdateString
public String getForUpdateString()
从类复制的说明:DialectGet the string to append to SELECT statements to acquire locks for this dialect.- 覆盖:
getForUpdateString在类中Dialect- 返回:
- The appropriate FOR UPDATE clause string.
-
applyLocksToSql
public String applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)
从类复制的说明:DialectModifies the given SQL by applying the appropriate updates for the specified lock modes and key columns. The behavior here is that of an ANSI SQL SELECT FOR UPDATE. This method is really intended to allow dialects which do not support SELECT FOR UPDATE to achieve this in their own fashion.- 覆盖:
applyLocksToSql在类中Dialect- 参数:
sql- the SQL string to modifyaliasedLockOptions- lock options indexed by aliased table names.keyColumnNames- a map of key columns indexed by aliased table names.- 返回:
- the modified SQL string.
-
registerResultSetOutParameter
public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException
从类复制的说明:DialectRegisters a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by position*. Pre-Java 8, registering such ResultSet-returning parameters varied greatly across database and drivers; hence its inclusion as part of the Dialect contract.- 覆盖:
registerResultSetOutParameter在类中Dialect- 参数:
statement- The callable statement.col- The bind position at which to register the output param.- 返回:
- The number of (contiguous) bind positions used.
- 抛出:
SQLException- Indicates problems registering the param.
-
getResultSet
public ResultSet getResultSet(CallableStatement ps) throws SQLException
从类复制的说明:DialectGiven a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.- 覆盖:
getResultSet在类中Dialect- 参数:
ps- The callable statement.- 返回:
- The extracted result set.
- 抛出:
SQLException- Indicates problems extracting the result set.
-
supportsCurrentTimestampSelection
public boolean supportsCurrentTimestampSelection()
从类复制的说明:DialectDoes this dialect support a way to retrieve the database's current timestamp value?- 覆盖:
supportsCurrentTimestampSelection在类中Dialect- 返回:
- True if the current timestamp can be retrieved; false otherwise.
-
isCurrentTimestampSelectStringCallable
public boolean isCurrentTimestampSelectStringCallable()
从类复制的说明:DialectShould the value returned byDialect.getCurrentTimestampSelectString()be treated as callable. Typically this indicates that JDBC escape syntax is being used...- 覆盖:
isCurrentTimestampSelectStringCallable在类中Dialect- 返回:
- True if the
Dialect.getCurrentTimestampSelectString()return is callable; false otherwise.
-
getDefaultMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy()
-
getSelectGUIDString
public String getSelectGUIDString()
从类复制的说明:DialectGet the command used to select a GUID from the underlying database. Optional operation.- 覆盖:
getSelectGUIDString在类中Dialect- 返回:
- The appropriate command.
-
supportsEmptyInList
public boolean supportsEmptyInList()
从类复制的说明:DialectDoes this dialect support empty IN lists? For example, is [where XYZ in ()] a supported construct?- 覆盖:
supportsEmptyInList在类中Dialect- 返回:
- True if empty in lists are supported; false otherwise.
-
supportsUnionAll
public boolean supportsUnionAll()
从类复制的说明:DialectDoes this dialect support UNION ALL, which is generally a faster variant of UNION?- 覆盖:
supportsUnionAll在类中Dialect- 返回:
- True if UNION ALL is supported; false otherwise.
-
supportsExistsInSelect
public boolean supportsExistsInSelect()
从类复制的说明:DialectDoes the dialect support an exists statement in the select clause?- 覆盖:
supportsExistsInSelect在类中Dialect- 返回:
- True if exists checks are allowed in the select clause; false otherwise.
-
supportsTupleDistinctCounts
public boolean supportsTupleDistinctCounts()
从类复制的说明:DialectDoes this dialect support `count(distinct a,b)`?- 覆盖:
supportsTupleDistinctCounts在类中Dialect- 返回:
- True if the database supports counting distinct tuples; false otherwise.
-
supportsTuplesInSubqueries
public boolean supportsTuplesInSubqueries()
从类复制的说明:DialectDoes this dialect support tuples in subqueries? Ex: delete from Table1 where (col1, col2) in (select col1, col2 from Table2)- 覆盖:
supportsTuplesInSubqueries在类中Dialect- 返回:
- boolean
-
supportsPartitionBy
public boolean supportsPartitionBy()
从类复制的说明:DialectDoes the underlying database support partition by- 覆盖:
supportsPartitionBy在类中Dialect- 返回:
- boolean
-
-