站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SQLServerDialect (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.dialect
Class SQLServerDialect

java.lang.Object
  extended bynet.sf.hibernate.dialect.Dialect
      extended bynet.sf.hibernate.dialect.SybaseDialect
          extended bynet.sf.hibernate.dialect.SQLServerDialect

public class SQLServerDialect
extends SybaseDialect

A dialect for Microsoft SQL Server 2000

Author:
Gavin King

Field Summary
 
Fields inherited from class net.sf.hibernate.dialect.Dialect
CLOSED_QUOTE, QUOTE
 
Constructor Summary
SQLServerDialect()
           
 
Method Summary
 String appendIdentitySelectToInsert(String insertSQL)
          Use insert table(...) values(...) select SCOPE_IDENTITY()
 char closeQuote()
          The closing quote for a quoted identifier
 String getLimitString(String querySelect, boolean hasOffset, int limit)
           
 char openQuote()
          The opening quote for a quoted identifier
 boolean supportsLimit()
          Does this Dialect have some kind of LIMIT syntax?
 boolean supportsLimitOffset()
          Does this dialect support an offset?
 boolean supportsVariableLimit()
           
 boolean useMaxForLimit()
          Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows?
 
Methods inherited from class net.sf.hibernate.dialect.SybaseDialect
appendLockHint, getAddColumnString, getIdentityColumnString, getIdentitySelectString, getNoColumnsInsertString, getNullColumnString, qualifyIndexName, supportsForUpdate, supportsIdentityColumns
 
Methods inherited from class net.sf.hibernate.dialect.Dialect
bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, createCaseFragment, createOuterJoinFragment, dropConstraints, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCascadeConstraintsString, getCreateSequenceString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceString, getFunctions, getIdentityInsertString, getLimitString, getLowercaseFunction, getQuerySequencesString, getSchemaSeparator, getSequenceNextValString, getTypeName, getTypeName, getViolatedConstraintNameExtracter, hasAlterTable, hasDataTypeInIdentityColumn, registerColumnType, registerColumnType, registerFunction, supportsCheck, supportsForUpdateNowait, supportsForUpdateOf, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsSequences, supportsUnique, supportsUniqueConstraintInCreateAlterTable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLServerDialect

public SQLServerDialect()
Method Detail

getLimitString

public String getLimitString(String querySelect,
                             boolean hasOffset,
                             int limit)
Overrides:
getLimitString in class Dialect

appendIdentitySelectToInsert

public String appendIdentitySelectToInsert(String insertSQL)
Use insert table(...) values(...) select SCOPE_IDENTITY()

Overrides:
appendIdentitySelectToInsert in class SybaseDialect

supportsLimit

public boolean supportsLimit()
Description copied from class: Dialect
Does this Dialect have some kind of LIMIT syntax?

Overrides:
supportsLimit in class Dialect

useMaxForLimit

public boolean useMaxForLimit()
Description copied from class: Dialect
Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows?

Overrides:
useMaxForLimit in class Dialect

supportsLimitOffset

public boolean supportsLimitOffset()
Description copied from class: Dialect
Does this dialect support an offset?

Overrides:
supportsLimitOffset in class Dialect

supportsVariableLimit

public boolean supportsVariableLimit()
Overrides:
supportsVariableLimit in class Dialect

closeQuote

public char closeQuote()
Description copied from class: Dialect
The closing quote for a quoted identifier

Overrides:
closeQuote in class Dialect

openQuote

public char openQuote()
Description copied from class: Dialect
The opening quote for a quoted identifier

Overrides:
openQuote in class Dialect