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

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


net.sf.hibernate.dialect
Class SybaseDialect

java.lang.Object
  extended bynet.sf.hibernate.dialect.Dialect
      extended bynet.sf.hibernate.dialect.SybaseDialect
Direct Known Subclasses:
SQLServerDialect, Sybase11_9_2Dialect, SybaseAnywhereDialect

public class SybaseDialect
extends Dialect

An SQL dialect compatible with Sybase and MS SQL Server.

Author:
Gavin King

Field Summary
 
Fields inherited from class net.sf.hibernate.dialect.Dialect
CLOSED_QUOTE, QUOTE
 
Constructor Summary
SybaseDialect()
           
 
Method Summary
 String appendIdentitySelectToInsert(String insertSQL)
          Generate SQL to get the identifier of an inserted row.
 String appendLockHint(LockMode mode, String tableName)
           
 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 getIdentitySelectString()
          The syntax that returns the identity value of the last insert, if identity column key generation is supported.
 String getNoColumnsInsertString()
          The keyword used to insert a row without specifying any column values
 String getNullColumnString()
          The keyword used to specify a nullable column.
 boolean qualifyIndexName()
          Do we need to qualify index names with the schema name?
 boolean supportsForUpdate()
          Does this dialect support the FOR UPDATE syntax?
 boolean supportsIdentityColumns()
          Does this dialect support identity column key generation?
 
Methods inherited from class net.sf.hibernate.dialect.Dialect
bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, closeQuote, createCaseFragment, createOuterJoinFragment, dropConstraints, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCascadeConstraintsString, getCreateSequenceString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceString, getFunctions, getIdentityInsertString, getLimitString, getLimitString, getLowercaseFunction, getQuerySequencesString, getSchemaSeparator, getSequenceNextValString, getTypeName, getTypeName, getViolatedConstraintNameExtracter, hasAlterTable, hasDataTypeInIdentityColumn, openQuote, registerColumnType, registerColumnType, registerFunction, supportsCheck, supportsForUpdateNowait, supportsForUpdateOf, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsLimit, supportsLimitOffset, supportsSequences, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toString, useMaxForLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SybaseDialect

public SybaseDialect()
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

getNullColumnString

public String getNullColumnString()
Description copied from class: Dialect
The keyword used to specify a nullable column.

Overrides:
getNullColumnString in class Dialect
Returns:
String

qualifyIndexName

public boolean qualifyIndexName()
Description copied from class: Dialect
Do we need to qualify index names with the schema name?

Overrides:
qualifyIndexName in class Dialect
Returns:
boolean

supportsForUpdate

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

Overrides:
supportsForUpdate in class Dialect
Returns:
boolean

supportsIdentityColumns

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

Overrides:
supportsIdentityColumns in class Dialect
Returns:
boolean

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

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

getNoColumnsInsertString

public String getNoColumnsInsertString()
Description copied from class: Dialect
The keyword used to insert a row without specifying any column values

Overrides:
getNoColumnsInsertString in class Dialect

appendIdentitySelectToInsert

public String appendIdentitySelectToInsert(String insertSQL)
Description copied from class: Dialect
Generate SQL to get the identifier of an inserted row. If the returned value is not null, the caller will prepare a statement from it, set SQL parameters just as it would for insertSQL, and execute it as a query which is expected to return the identifier of the inserted row. If the returned value is null, the caller will execute insertSQL as an update and then execute getIdentitySelectString() as a query. The default implementation (in this class) returns null.

Overrides:
appendIdentitySelectToInsert in class Dialect
Parameters:
insertSQL - a parameterized SQL statement to insert a row into a table.
Returns:
a SQL statement that has the same effect as insertSQL and also gets the identifier of the inserted row. Return null if this dialect doesn't support this feature.

appendLockHint

public String appendLockHint(LockMode mode,
                             String tableName)