Top Description Fields Constructors Methods
org.hibernate.dialect

public Class SybaseDialect

extends AbstractTransactSQLDialect
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.Sybase11Dialect, org.hibernate.dialect.SybaseAnywhereDialect, org.hibernate.dialect.SybaseASE15Dialect
Imports
java.sql.DatabaseMetaData, .SQLException, .Types, org.hibernate.engine.jdbc.env.spi.IdentifierCaseStrategy, .IdentifierHelper, .IdentifierHelperBuilder, .NameQualifierSupport, org.hibernate.type.descriptor.sql.BlobTypeDescriptor, .ClobTypeDescriptor, .SqlTypeDescriptor

All Sybase dialects share an IN list size limit.
Author
Brett Meyer

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IdentifierHelper
buildIdentifierHelper(IdentifierHelperBuilder
A semi-configured IdentifierHelper builder.
builder
,
DatabaseMetaData
Access to the metadata returned from the driver if needed and if available.

Warning

may be null

dbMetaData
)

Overrides org.hibernate.dialect.Dialect.buildIdentifierHelper.

Build the IdentifierHelper indicated by this Dialect for handling identifier conversions.
public boolean
canCreateSchema()

Overrides org.hibernate.dialect.Dialect.canCreateSchema.

Does this dialect support schema creation?
public String
getCurrentSchemaCommand()

Overrides org.hibernate.dialect.Dialect.getCurrentSchemaCommand.

Get the SQL command used to retrieve the current schema name.
public int
getInExpressionCountLimit()

Overrides org.hibernate.dialect.Dialect.getInExpressionCountLimit.

Return the limit that the underlying database places on the number of elements in an IN predicate.
public NameQualifierSupport
getNameQualifierSupport()

Overrides org.hibernate.dialect.Dialect.getNameQualifierSupport.

By default interpret this based on DatabaseMetaData.
public String
getNullColumnString()

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.getNullColumnString.

The keyword used to specify a nullable column.
protected SqlTypeDescriptor
getSqlTypeDescriptorOverride(int
A Types constant indicating the SQL column type
sqlCode
)

Overrides org.hibernate.dialect.Dialect.getSqlTypeDescriptorOverride.

Returns the SqlTypeDescriptor that should be used to handle the given JDBC type code.
Inherited from org.hibernate.dialect.AbstractTransactSQLDialect:
appendLockHintapplyLocksToSqldoesReadCommittedCauseWritersToBlockReadersdoesRepeatableReadCauseReadersToBlockWritersgetAddColumnStringgetCurrentTimestampSelectStringgetDefaultMultiTableBulkIdStrategygetForUpdateStringgetIdentityColumnSupportgetResultSetgetSelectGUIDStringisCurrentTimestampSelectStringCallablequalifyIndexNameregisterResultSetOutParametersupportsCurrentTimestampSelectionsupportsEmptyInListsupportsExistsInSelectsupportsPartitionBysupportsTupleDistinctCountssupportsTuplesInSubqueriessupportsUnionAll

Field Detail

PARAM_LIST_SIZE_LIMITback to summary
private static final int PARAM_LIST_SIZE_LIMIT

Constructor Detail

SybaseDialectback to summary
public SybaseDialect()

Method Detail

buildIdentifierHelperback to summary
public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData) throws SQLException

Overrides org.hibernate.dialect.Dialect.buildIdentifierHelper.

Doc from org.hibernate.dialect.Dialect.buildIdentifierHelper.

Build the IdentifierHelper indicated by this Dialect for handling identifier conversions. Returning null is allowed and indicates that Hibernate should fallback to building a "standard" helper. In the fallback path, any changes made to the IdentifierHelperBuilder during this call will still be incorporated into the built IdentifierHelper.

The incoming builder will have the following set:

By default Hibernate will do the following:

Parameters
builder:IdentifierHelperBuilder

A semi-configured IdentifierHelper builder.

dbMetaData:DatabaseMetaData

Access to the metadata returned from the driver if needed and if available.

Warning

may be null

Returns:IdentifierHelper

The IdentifierHelper instance to use, or null to indicate Hibernate should use its fallback path

Annotations
@Override
Exceptions
SQLException:
Accessing the DatabaseMetaData can throw it. Just re-throw and Hibernate will handle.
canCreateSchemaback to summary
public boolean canCreateSchema()

Overrides org.hibernate.dialect.Dialect.canCreateSchema.

Doc from org.hibernate.dialect.Dialect.canCreateSchema.

Does this dialect support schema creation?

Returns:boolean

True if the dialect supports schema creation; false otherwise.

Annotations
@Override
getCurrentSchemaCommandback to summary
public String getCurrentSchemaCommand()

Overrides org.hibernate.dialect.Dialect.getCurrentSchemaCommand.

Doc from org.hibernate.dialect.Dialect.getCurrentSchemaCommand.

Get the SQL command used to retrieve the current schema name. Works in conjunction with getSchemaNameResolver(), unless the return from there does not need this information. E.g., a custom impl might make use of the Java 1.7 addition of the Connection#getSchema() method

Returns:String

The current schema retrieval SQL

Annotations
@Override
getInExpressionCountLimitback to summary
public int getInExpressionCountLimit()

Overrides org.hibernate.dialect.Dialect.getInExpressionCountLimit.

Doc from org.hibernate.dialect.Dialect.getInExpressionCountLimit.

Return the limit that the underlying database places on the number of elements in an IN predicate. If the database defines no such limits, simply return zero or less-than-zero.

Returns:int

int The limit, or zero-or-less to indicate no limit.

Annotations
@Override
getNameQualifierSupportback to summary
public NameQualifierSupport getNameQualifierSupport()

Overrides org.hibernate.dialect.Dialect.getNameQualifierSupport.

Doc from org.hibernate.dialect.Dialect.getNameQualifierSupport.

By default interpret this based on DatabaseMetaData.

Returns:NameQualifierSupport

The NameQualifierSupport.

Annotations
@Override
getNullColumnStringback to summary
public String getNullColumnString()

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.getNullColumnString.

Doc from org.hibernate.dialect.Dialect.getNullColumnString.

The keyword used to specify a nullable column.

Returns:String

String

Annotations
@Override
getSqlTypeDescriptorOverrideback to summary
protected SqlTypeDescriptor getSqlTypeDescriptorOverride(int sqlCode)

Overrides org.hibernate.dialect.Dialect.getSqlTypeDescriptorOverride.

Doc from org.hibernate.dialect.Dialect.getSqlTypeDescriptorOverride.

Returns the SqlTypeDescriptor that should be used to handle the given JDBC type code. Returns null if there is no override.

Parameters
sqlCode:int

A Types constant indicating the SQL column type

Returns:SqlTypeDescriptor

The SqlTypeDescriptor to use as an override, or null if there is no override.

Annotations
@Override