org.hibernate.dialect

Class SybaseDialect

Known Direct Subclasses:
SQLServerDialect, Sybase11Dialect, 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 org.hibernate.dialect.Dialect

CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE

Constructor Summary

SybaseDialect()

Method Summary

String
appendIdentitySelectToInsert(String insertSQL)
String
appendLockHint(LockMode mode, String tableName)
String
applyLocksToSql(String sql, Map aliasedLockModes, Map keyColumnNames)
boolean
doesReadCommittedCauseWritersToBlockReaders()
boolean
doesRepeatableReadCauseReadersToBlockWriters()
boolean
dropTemporaryTableAfterUse()
String
generateTemporaryTableName(String baseTableName)
String
getAddColumnString()
String
getCurrentTimestampSelectString()
String
getForUpdateString()
String
getIdentityColumnString()
String
getIdentitySelectString()
String
getNullColumnString()
ResultSet
getResultSet(CallableStatement ps)
boolean
isCurrentTimestampSelectStringCallable()
boolean
qualifyIndexName()
int
registerResultSetOutParameter(CallableStatement statement, int col)
boolean
supportsCurrentTimestampSelection()
boolean
supportsEmptyInList()
boolean
supportsExistsInSelect()
boolean
supportsIdentityColumns()
boolean
supportsInsertSelectIdentity()
boolean
supportsTemporaryTables()

Methods inherited from class org.hibernate.dialect.Dialect

appendIdentitySelectToInsert, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, closeQuote, createCaseFragment, createOuterJoinFragment, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, dropConstraints, dropTemporaryTableAfterUse, forUpdateOfColumns, generateTemporaryTableName, getAddColumnString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCascadeConstraintsString, getCastTypeName, getColumnComment, getCreateMultisetTableString, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCreateTemporaryTablePostfix, getCreateTemporaryTableString, getCurrentTimestampSQLFunctionName, getCurrentTimestampSelectString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceString, getDropSequenceStrings, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnString, getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, getIdentitySelectString, getKeywords, getLimitString, getLimitString, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNativeIdentifierGeneratorClass, getNoColumnsInsertString, getNullColumnString, getQuerySequencesString, getResultSet, getSelectClauseNullString, getSelectGUIDString, getSelectSequenceNextValString, getSequenceNextValString, getTableComment, getTableTypeString, getTypeName, getTypeName, getViolatedConstraintNameExtracter, hasAlterTable, hasDataTypeInIdentityColumn, hasSelfReferentialForeignKeyBug, isCurrentTimestampSelectStringCallable, openQuote, performTemporaryTableDDLInIsolation, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExistsInSelect, supportsExpectedLobUsagePattern, supportsIdentityColumns, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsInsertSelectIdentity, supportsLimit, supportsLimitOffset, supportsLobValueChangePropogation, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSequences, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTemporaryTables, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useInputStreamToInsertBlob, useMaxForLimit

Constructor Details

SybaseDialect

public SybaseDialect()

Method Details

appendIdentitySelectToInsert

public String appendIdentitySelectToInsert(String insertSQL)
Overrides:
appendIdentitySelectToInsert in interface Dialect

appendLockHint

public String appendLockHint(LockMode mode,
                             String tableName)
Overrides:
appendLockHint in interface Dialect

applyLocksToSql

public String applyLocksToSql(String sql,
                              Map aliasedLockModes,
                              Map keyColumnNames)
Overrides:
applyLocksToSql in interface Dialect

doesReadCommittedCauseWritersToBlockReaders

public boolean doesReadCommittedCauseWritersToBlockReaders()
Overrides:
doesReadCommittedCauseWritersToBlockReaders in interface Dialect

doesRepeatableReadCauseReadersToBlockWriters

public boolean doesRepeatableReadCauseReadersToBlockWriters()
Overrides:
doesRepeatableReadCauseReadersToBlockWriters in interface Dialect

dropTemporaryTableAfterUse

public boolean dropTemporaryTableAfterUse()
Overrides:
dropTemporaryTableAfterUse in interface Dialect

generateTemporaryTableName

public String generateTemporaryTableName(String baseTableName)
Overrides:
generateTemporaryTableName in interface Dialect

getAddColumnString

public String getAddColumnString()
Overrides:
getAddColumnString in interface Dialect

getCurrentTimestampSelectString

public String getCurrentTimestampSelectString()
Overrides:
getCurrentTimestampSelectString in interface Dialect

getForUpdateString

public String getForUpdateString()
Overrides:
getForUpdateString in interface Dialect

getIdentityColumnString

public String getIdentityColumnString()
Overrides:
getIdentityColumnString in interface Dialect

getIdentitySelectString

public String getIdentitySelectString()
Overrides:
getIdentitySelectString in interface Dialect

getNullColumnString

public String getNullColumnString()
Overrides:
getNullColumnString in interface Dialect

getResultSet

public ResultSet getResultSet(CallableStatement ps)
            throws SQLException
Overrides:
getResultSet in interface Dialect

isCurrentTimestampSelectStringCallable

public boolean isCurrentTimestampSelectStringCallable()
Overrides:
isCurrentTimestampSelectStringCallable in interface Dialect

qualifyIndexName

public boolean qualifyIndexName()
Overrides:
qualifyIndexName in interface Dialect

registerResultSetOutParameter

public int registerResultSetOutParameter(CallableStatement statement,
                                         int col)
            throws SQLException
Overrides:
registerResultSetOutParameter in interface Dialect

supportsCurrentTimestampSelection

public boolean supportsCurrentTimestampSelection()
Overrides:
supportsCurrentTimestampSelection in interface Dialect

supportsEmptyInList

public boolean supportsEmptyInList()
Overrides:
supportsEmptyInList in interface Dialect

supportsExistsInSelect

public boolean supportsExistsInSelect()
Overrides:
supportsExistsInSelect in interface Dialect

supportsIdentityColumns

public boolean supportsIdentityColumns()
Overrides:
supportsIdentityColumns in interface Dialect

supportsInsertSelectIdentity

public boolean supportsInsertSelectIdentity()
Overrides:
supportsInsertSelectIdentity in interface Dialect

supportsTemporaryTables

public boolean supportsTemporaryTables()
Overrides:
supportsTemporaryTables in interface Dialect