Top Description Constructors Methods
org.hibernate.dialect

public Class SybaseAnywhereDialect

extends AbstractTransactSQLDialect
Class Inheritance

SQL Dialect for Sybase Anywhere extending Sybase (Enterprise) Dialect (Tested on ASA 8.x)
Author
?

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
dropConstraints()

Overrides org.hibernate.dialect.Dialect.dropConstraints.

ASA does not require to drop constraint before dropping tables, so disable it.
public String
getNoColumnsInsertString()

Overrides org.hibernate.dialect.Dialect.getNoColumnsInsertString.

Sybase Anywhere syntax would require a "DEFAULT" for each column specified, but I suppose Hibernate use this syntax only with tables with just 1 column
public boolean
supportsInsertSelectIdentity()

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.supportsInsertSelectIdentity.

Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.
Inherited from org.hibernate.dialect.AbstractTransactSQLDialect:
appendIdentitySelectToInsertappendLockHintapplyLocksToSqldoesReadCommittedCauseWritersToBlockReadersdoesRepeatableReadCauseReadersToBlockWritersdropTemporaryTableAfterUsegenerateTemporaryTableNamegetAddColumnStringgetCurrentTimestampSelectStringgetForUpdateStringgetIdentityColumnStringgetIdentitySelectStringgetNullColumnStringgetResultSetgetSelectGUIDStringisCurrentTimestampSelectStringCallablequalifyIndexNameregisterResultSetOutParametersupportsCurrentTimestampSelectionsupportsEmptyInListsupportsExistsInSelectsupportsIdentityColumnssupportsTemporaryTablessupportsTupleDistinctCountssupportsUnionAll

Constructor Detail

SybaseAnywhereDialectback to summary
public SybaseAnywhereDialect()

Method Detail

dropConstraintsback to summary
public boolean dropConstraints()

Overrides org.hibernate.dialect.Dialect.dropConstraints.

ASA does not require to drop constraint before dropping tables, so disable it.

NOTE : Also, the DROP statement syntax used by Hibernate to drop constraints is not compatible with ASA.

Returns:boolean

Doc from org.hibernate.dialect.Dialect.dropConstraints.

True if constraints must be dropped prior to dropping the table; false otherwise.

getNoColumnsInsertStringback to summary
public String getNoColumnsInsertString()

Overrides org.hibernate.dialect.Dialect.getNoColumnsInsertString.

Sybase Anywhere syntax would require a "DEFAULT" for each column specified, but I suppose Hibernate use this syntax only with tables with just 1 column

Returns:String

Doc from org.hibernate.dialect.Dialect.getNoColumnsInsertString.

The appropriate empty values clause.

supportsInsertSelectIdentityback to summary
public boolean supportsInsertSelectIdentity()

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.supportsInsertSelectIdentity.

Doc from org.hibernate.dialect.Dialect.supportsInsertSelectIdentity.

Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.

Returns:boolean

True if the dialect supports selecting the just generated IDENTITY in the insert statement.