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

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


net.sf.hibernate.dialect
Class HSQLDialect

java.lang.Object
  extended bynet.sf.hibernate.dialect.Dialect
      extended bynet.sf.hibernate.dialect.HSQLDialect

public class HSQLDialect
extends Dialect

An SQL dialect compatible with HSQLDB (Hypersonic SQL).

Author:
Christoph Sturm

Field Summary
 
Fields inherited from class net.sf.hibernate.dialect.Dialect
CLOSED_QUOTE, QUOTE
 
Constructor Summary
HSQLDialect()
           
 
Method Summary
 boolean bindLimitParametersFirst()
          Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?
 SQLExceptionConverter buildSQLExceptionConverter()
          Build an instance of the SQLExceptionConverter preferred by this dialect for converting SQLExceptions into Hibernate's JDBCException hierarchy.
 CaseFragment createCaseFragment()
          Create a CaseFragment for this dialect.
 String getAddColumnString()
          The syntax used to add a column to a table (optional).
 String getIdentityColumnString()
          The keyword used to specify an identity column, if identity column key generation is supported.
 String getIdentityInsertString()
          The keyword used to insert a generated value into an identity column (or null)
 String getIdentitySelectString()
          The syntax that returns the identity value of the last insert, if identity column key generation is supported.
 String getLimitString(String sql, boolean hasOffset)
          Add a LIMIT clause to the given SQL SELECT
 boolean supportsCheck()
          Does this dialect support check constraints?
 boolean supportsForUpdate()
          Does this dialect support the FOR UPDATE syntax?
 boolean supportsIdentityColumns()
          Does this dialect support identity column key generation?
 boolean supportsIfExistsAfterTableName()
           
 boolean supportsLimit()
          Does this Dialect have some kind of LIMIT syntax?
 boolean supportsUnique()
          Not supported in 1.7.1 (1.7.2 only)
 
Methods inherited from class net.sf.hibernate.dialect.Dialect
appendIdentitySelectToInsert, bindLimitParametersInReverseOrder, closeQuote, createOuterJoinFragment, dropConstraints, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCascadeConstraintsString, getCreateSequenceString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceString, getFunctions, getLimitString, getLowercaseFunction, getNoColumnsInsertString, getNullColumnString, getQuerySequencesString, getSchemaSeparator, getSequenceNextValString, getTypeName, getTypeName, getViolatedConstraintNameExtracter, hasAlterTable, hasDataTypeInIdentityColumn, openQuote, qualifyIndexName, registerColumnType, registerColumnType, registerFunction, supportsForUpdateNowait, supportsForUpdateOf, supportsIfExistsBeforeTableName, supportsLimitOffset, supportsSequences, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toString, useMaxForLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HSQLDialect

public HSQLDialect()
Method Detail

getAddColumnString

public String getAddColumnString()
Description copied from class: Dialect
The syntax used to add a column to a table (optional).

Overrides:
getAddColumnString in class Dialect

supportsIdentityColumns

public boolean supportsIdentityColumns()
Description copied from class: Dialect
Does this dialect support identity column key generation?

Overrides:
supportsIdentityColumns in class Dialect
Returns:
boolean

getIdentityColumnString

public String getIdentityColumnString()
Description copied from class: Dialect
The keyword used to specify an identity column, if identity column key generation is supported.

Overrides:
getIdentityColumnString in class Dialect

getIdentitySelectString

public String getIdentitySelectString()
Description copied from class: Dialect
The syntax that returns the identity value of the last insert, if identity column key generation is supported.

Overrides:
getIdentitySelectString in class Dialect

getIdentityInsertString

public String getIdentityInsertString()
Description copied from class: Dialect
The keyword used to insert a generated value into an identity column (or null)

Overrides:
getIdentityInsertString in class Dialect
Returns:
String

supportsForUpdate

public boolean supportsForUpdate()
Description copied from class: Dialect
Does this dialect support the FOR UPDATE syntax?

Overrides:
supportsForUpdate in class Dialect
Returns:
boolean

supportsUnique

public boolean supportsUnique()
Not supported in 1.7.1 (1.7.2 only)

Overrides:
supportsUnique in class Dialect
Returns:
boolean

supportsLimit

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

Overrides:
supportsLimit in class Dialect

getLimitString

public String getLimitString(String sql,
                             boolean hasOffset)
Description copied from class: Dialect
Add a LIMIT clause to the given SQL SELECT

Overrides:
getLimitString in class Dialect
Returns:
the modified SQL

createCaseFragment

public CaseFragment createCaseFragment()
Description copied from class: Dialect
Create a CaseFragment for this dialect.

Overrides:
createCaseFragment in class Dialect
Returns:
OuterJoinGenerator

bindLimitParametersFirst

public boolean bindLimitParametersFirst()
Description copied from class: Dialect
Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?

Overrides:
bindLimitParametersFirst in class Dialect
Returns:
true if limit parameters should come before other parameters

supportsIfExistsAfterTableName

public boolean supportsIfExistsAfterTableName()
Overrides:
supportsIfExistsAfterTableName in class Dialect

supportsCheck

public boolean supportsCheck()
Description copied from class: Dialect
Does this dialect support check constraints?

Overrides:
supportsCheck in class Dialect

buildSQLExceptionConverter

public SQLExceptionConverter buildSQLExceptionConverter()
Build an instance of the SQLExceptionConverter preferred by this dialect for converting SQLExceptions into Hibernate's JDBCException hierarchy. The default Dialect implementation simply returns a converter based on X/Open SQLState codes.

It is strongly recommended that specific Dialect implementations override this method, since interpretation of a SQL error is much more accurate when based on the ErrorCode rather than the SQLState. Unfortunately, the ErrorCode is a vendor- specific approach.

Overrides:
buildSQLExceptionConverter in class Dialect
Returns:
The Dialect's preferred SQLExceptionConverter.