Top Description Fields Constructors Methods
org.hibernate.dialect

public Class SybaseASEDialect

extends SybaseDialect
Class Inheritance
Imports
java.sql.DatabaseMetaData, .ResultSet, .SQLException, .Types, org.hibernate.LockMode, .LockOptions, org.hibernate.boot.model.TypeContributions, org.hibernate.cfg.DialectSpecificSettings, org.hibernate.dialect.pagination.LimitHandler, .TopLimitHandler, org.hibernate.engine.jdbc.Size, org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.exception.ConstraintViolationException, .LockTimeoutException, org.hibernate.exception.spi.SQLExceptionConversionDelegate, .TemplatedViolatedConstraintNameExtractor, .ViolatedConstraintNameExtractor, org.hibernate.internal.util.JdbcExceptionHelper, org.hibernate.internal.util.config.ConfigurationHelper, org.hibernate.query.sqm.IntervalType, .TemporalUnit, org.hibernate.service.ServiceRegistry, org.hibernate.sql.ast.SqlAstTranslator, .SqlAstTranslatorFactory, org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory, org.hibernate.sql.ast.tree.Statement, org.hibernate.sql.exec.spi.JdbcOperation, org.hibernate.type.descriptor.java.JavaType, org.hibernate.type.descriptor.jdbc.JdbcType, .TimestampJdbcType, .TinyIntJdbcType, org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry, org.hibernate.type.descriptor.sql.internal.CapacityDependentDdlType, org.hibernate.type.descriptor.sql.spi.DdlTypeRegistry, jakarta.persistence.TemporalType

A SQL dialect for Sybase Adaptive Server Enterprise 16 and above.

Field Summary

Modifier and TypeField and Description
private final boolean
private static final ViolatedConstraintNameExtractor
EXTRACTOR

Hides org.hibernate.dialect.Dialect.EXTRACTOR.

Constraint-name extractor for Sybase ASE constraint violation exceptions.
private static final DatabaseVersion
private final Dialect.SizeStrategy
Inherited from org.hibernate.dialect.SybaseDialect:
jtdsDriver

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public String
appendLockHint(LockOptions
The lock options to apply
mode
,
String
The name of the table to which to apply the lock hint.
tableName
)

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.appendLockHint.

Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appended to the table name in the from clause.
public SQLExceptionConversionDelegate
protected String
columnType(int
a SQL type code
sqlTypeCode
)

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.columnType.

The database column type name for a given JDBC type code defined in Types or SqlTypes.
public void
contributeTypes(TypeContributions
Callback to contribute the types
typeContributions
,
ServiceRegistry
The service registry
serviceRegistry
)

Overrides org.hibernate.dialect.SybaseDialect.contributeTypes.

A callback which allows the Dialect to contribute types.
public String
currentDate()

Overrides org.hibernate.dialect.Dialect.currentDate.

Translation of the HQL/JPQL current_date function, which maps to the Java type java.sql.Date, and of the HQL local_date function which maps to the Java type java.time.LocalDate.
public String
currentTime()

Overrides org.hibernate.dialect.Dialect.currentTime.

Translation of the HQL/JPQL current_time function, which maps to the Java type java.sql.Time which is a time with no time zone.
public String
currentTimestamp()

Overrides org.hibernate.dialect.Dialect.currentTimestamp.

Translation of the HQL/JPQL current_timestamp function, which maps to the Java type java.sql.Timestamp which is a datetime with no time zone.
public int
getDoublePrecision()

Overrides org.hibernate.dialect.Dialect.getDoublePrecision.

This is the default precision for a generated column mapped to a Java Double or double.
public int
getFloatPrecision()

Overrides org.hibernate.dialect.Dialect.getFloatPrecision.

This is the default precision for a generated column mapped to a Java Float or float.
public long
getFractionalSecondPrecisionInNanos()

Overrides org.hibernate.dialect.Dialect.getFractionalSecondPrecisionInNanos.

Sybase ASE in principle supports microsecond precision for {code bigdatetime}, but unfortunately its duration arithmetic functions have a nasty habit of overflowing.
public LimitHandler
public int
getMaxAliasLength()

Overrides org.hibernate.dialect.Dialect.getMaxAliasLength.

What is the maximum length Hibernate can use for generated aliases?
public int
getMaxIdentifierLength()

Overrides org.hibernate.dialect.SybaseDialect.getMaxIdentifierLength.

What is the maximum identifier length supported by this dialect?
public int
getMaxVarcharLength()

Overrides org.hibernate.dialect.Dialect.getMaxVarcharLength.

The biggest size value that can be supplied as argument to a java.sql.Types#VARCHAR-like type.
public Dialect.SizeStrategy
public SqlAstTranslatorFactory
public String
getTableTypeString()

Overrides org.hibernate.dialect.Dialect.getTableTypeString.

An arbitrary fragment appended to the end of the create table statement.
public ViolatedConstraintNameExtractor
private static boolean
public boolean
protected void
registerColumnTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)

Overrides org.hibernate.dialect.Dialect.registerColumnTypes.

Register ANSI-standard column types using the length limits defined by getMaxVarcharLength(), getMaxNVarcharLength(), and getMaxVarbinaryLength().
protected void
registerDefaultKeywords()

Overrides org.hibernate.dialect.Dialect.registerDefaultKeywords.

Register the reserved words of ANSI-standard SQL as keywords.
public int
resolveSqlTypeLength(String
the name of the column type
columnTypeName
,
int
the JDBC type code of the column type
jdbcTypeCode
,
int
the (numeric) precision or (character) length of the column
precision
,
int
the scale of a numeric column
scale
,
int
the display size of the column
displaySize
)

Overrides org.hibernate.dialect.Dialect.resolveSqlTypeLength.

Determine the length/precision of a column based on information in the JDBC java.sql.ResultSetMetaData.
public boolean

Returns:

false
supportsBitType
()

Overrides org.hibernate.dialect.Dialect.supportsBitType.

The Sybase ASE BIT type does not allow null values, so we don't use it.
public boolean
supportsCascadeDelete()

Overrides org.hibernate.dialect.Dialect.supportsCascadeDelete.

Does this dialect support on delete actions in foreign key definitions?
public boolean
supportsDistinctFromPredicate()

Overrides org.hibernate.dialect.Dialect.supportsDistinctFromPredicate.

Does this dialect support some kind of distinct from predicate?
public boolean
supportsLobValueChangePropagation()

Overrides org.hibernate.dialect.Dialect.supportsLobValueChangePropagation.

Does the dialect support propagating changes to LOB values back to the database?
public boolean
supportsLockTimeouts()

Overrides org.hibernate.dialect.Dialect.supportsLockTimeouts.

Does this dialect support specifying timeouts when requesting locks.
public boolean
supportsOrderByInSubquery()

Overrides org.hibernate.dialect.Dialect.supportsOrderByInSubquery.

Does this dialect support the order by clause in subqueries?
public boolean
public boolean
supportsSkipLocked()

Overrides org.hibernate.dialect.Dialect.supportsSkipLocked.

Does this dialect support SKIP_LOCKED timeout.
public boolean
supportsUnionInSubquery()

Overrides org.hibernate.dialect.Dialect.supportsUnionInSubquery.

Does this dialect support UNION in a subquery.
public String
timestampaddPattern(TemporalUnit
The unit to add to the temporal
unit
,
TemporalType
The type of the temporal
temporalType
,
IntervalType
The type of interval to add or null if it's not a native interval
intervalType
)

Overrides org.hibernate.dialect.SybaseDialect.timestampaddPattern.

Obtain a pattern for the SQL equivalent to a timestampadd() function call.
public String
timestampdiffPattern(TemporalUnit
the first argument
unit
,
TemporalType
true if the first argument is a timestamp, false if a date
fromTemporalType
,
TemporalType
true if the second argument is
toTemporalType
)

Overrides org.hibernate.dialect.SybaseDialect.timestampdiffPattern.

Obtain a pattern for the SQL equivalent to a timestampdiff() function call.
public String
toQuotedIdentifier(String
The value to be quoted.
name
)

Overrides org.hibernate.dialect.Dialect.toQuotedIdentifier.

Apply dialect-specific quoting.
Inherited from org.hibernate.dialect.SybaseDialect:
appendDatetimeFormatappendDateTimeLiteralappendDateTimeLiteralappendDateTimeLiteralbuildIdentifierHelpercanCreateSchemacastPatternextractPatterngetAlterColumnTypeStringgetCallableStatementSupportgetCurrentSchemaCommandgetDriverKindgetIdentityColumnSupportgetInExpressionCountLimitgetMinimumSupportedVersiongetNameQualifierSupportgetNationalizationSupportgetNullColumnStringgetParameterCountLimitgetSqmTranslatorFactorygetUniqueDelegateinitializeFunctionRegistryresolveSqlTypeDescriptorsupportsAlterColumnTypesupportsFractionalTimestampArithmeticsupportsNamedParameterssupportsNullPrecedencesupportsStandardCurrentTimestampFunctiontranslateExtractField

Field Detail

ansiNullback to summary
private final boolean ansiNull
EXTRACTORback to summary
private static final ViolatedConstraintNameExtractor EXTRACTOR

Hides org.hibernate.dialect.Dialect.EXTRACTOR.

Constraint-name extractor for Sybase ASE constraint violation exceptions. Orginally contributed by Denny Bartelt.

MINIMUM_VERSIONback to summary
private static final DatabaseVersion MINIMUM_VERSION

Hides org.hibernate.dialect.SybaseDialect.MINIMUM_VERSION.

sizeStrategyback to summary
private final Dialect.SizeStrategy sizeStrategy

Hides org.hibernate.dialect.Dialect.sizeStrategy.

Constructor Detail

SybaseASEDialectback to summary
public SybaseASEDialect()
SybaseASEDialectback to summary
public SybaseASEDialect(DatabaseVersion version)
SybaseASEDialectback to summary
public SybaseASEDialect(DialectResolutionInfo info)

Method Detail

appendLockHintback to summary
public String appendLockHint(LockOptions mode, String tableName)

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.appendLockHint.

Doc from org.hibernate.dialect.Dialect.appendLockHint.

Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appended to the table name in the from clause.

Parameters
mode:LockOptions

The lock options to apply

tableName:String

The name of the table to which to apply the lock hint.

Returns:String

The table with any required lock hints.

Annotations
@Override
buildSQLExceptionConversionDelegateback to summary
public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate()

Overrides org.hibernate.dialect.Dialect.buildSQLExceptionConversionDelegate.

Doc from org.hibernate.dialect.Dialect.buildSQLExceptionConversionDelegate.

An instance of SQLExceptionConversionDelegate for interpreting dialect-specific error or SQLState codes.

If this method is overridden to return a non-null value, the default SQLExceptionConverter will use the returned SQLExceptionConversionDelegate in addition to the following standard delegates:

  1. a "static" delegate based on the JDBC4-defined SQLException hierarchy, and
  2. a delegate that interprets SQLState codes as either X/Open or SQL-2003 codes, depending on what is reported by the JDBC driver.

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

Returns:SQLExceptionConversionDelegate

The SQLExceptionConversionDelegate for this dialect

Annotations
@Override
columnTypeback to summary
protected String columnType(int sqlTypeCode)

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.columnType.

Doc from org.hibernate.dialect.Dialect.columnType.

The database column type name for a given JDBC type code defined in Types or SqlTypes. This default implementation returns the ANSI-standard type name.

This method may be overridden by concrete Dialects as an alternative to registerColumnTypes(TypeContributions, ServiceRegistry) for simple registrations.

Note that:

  1. Implementations of this method are expected to define a sensible mapping forTypes#NCLOB Types#NCHAR, and Types#NVARCHAR. On some database, these types are simply remapped to CLOB, CHAR, and VARCHAR.
  2. Mappings for Types#TIMESTAMP and Types#TIMESTAMP_WITH_TIMEZONE should support explicit specification of precision if possible.
  3. As specified by DdlTypeRegistry#getDescriptor(int), this method never receives Types#LONGVARCHAR, Types#LONGNVARCHAR, nor Types#LONGVARBINARY, which are considered synonyms for their non-LONG counterparts.
  4. On the other hand, the types SqlTypes#LONG32VARCHAR, SqlTypes#LONG32NVARCHAR, and SqlTypes#LONG32VARBINARY are not synonyms, and implementations of this method must define sensible mappings, for example to database-native TEXT or CLOB types.
Parameters
sqlTypeCode:int

a SQL type code

Returns:String

a column type name, with $l, $p, $s placeholders for length, precision, scale

Annotations
@Override
contributeTypesback to summary
public void contributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)

Overrides org.hibernate.dialect.SybaseDialect.contributeTypes.

Doc from org.hibernate.dialect.Dialect.contributeTypes.

A callback which allows the Dialect to contribute types.

Parameters
typeContributions:TypeContributions

Callback to contribute the types

serviceRegistry:ServiceRegistry

The service registry

Annotations
@Override
currentDateback to summary
public String currentDate()

Overrides org.hibernate.dialect.Dialect.currentDate.

Doc from org.hibernate.dialect.Dialect.currentDate.

Translation of the HQL/JPQL current_date function, which maps to the Java type java.sql.Date, and of the HQL local_date function which maps to the Java type java.time.LocalDate.

Annotations
@Override
currentTimeback to summary
public String currentTime()

Overrides org.hibernate.dialect.Dialect.currentTime.

Doc from org.hibernate.dialect.Dialect.currentTime.

Translation of the HQL/JPQL current_time function, which maps to the Java type java.sql.Time which is a time with no time zone. This contradicts ANSI SQL where current_time has the type TIME WITH TIME ZONE.

It is recommended to override this in dialects for databases which support localtime or time at local.

Annotations
@Override
currentTimestampback to summary
public String currentTimestamp()

Overrides org.hibernate.dialect.Dialect.currentTimestamp.

Doc from org.hibernate.dialect.Dialect.currentTimestamp.

Translation of the HQL/JPQL current_timestamp function, which maps to the Java type java.sql.Timestamp which is a datetime with no time zone. This contradicts ANSI SQL where current_timestamp has the type TIMESTAMP WITH TIME ZONE.

It is recommended to override this in dialects for databases which support localtimestamp or timestamp at local.

Annotations
@Override
getDoublePrecisionback to summary
public int getDoublePrecision()

Overrides org.hibernate.dialect.Dialect.getDoublePrecision.

Doc from org.hibernate.dialect.Dialect.getDoublePrecision.

This is the default precision for a generated column mapped to a Java Double or double. That is, a value representing "double precision".

Usually 53 binary digits, at least for databases with a conventional interpretation of the ANSI SQL specification.

Returns:int

a value representing "double precision", usually in binary digits, but sometimes in decimal digits

Annotations
@Override
getFloatPrecisionback to summary
public int getFloatPrecision()

Overrides org.hibernate.dialect.Dialect.getFloatPrecision.

Doc from org.hibernate.dialect.Dialect.getFloatPrecision.

This is the default precision for a generated column mapped to a Java Float or float. That is, a value representing "single precision".

Usually 24 binary digits, at least for databases with a conventional interpretation of the ANSI SQL specification.

Returns:int

a value representing "single precision", usually in binary digits, but sometimes in decimal digits

Annotations
@Override
getFractionalSecondPrecisionInNanosback to summary
public long getFractionalSecondPrecisionInNanos()

Overrides org.hibernate.dialect.Dialect.getFractionalSecondPrecisionInNanos.

Sybase ASE in principle supports microsecond precision for {code bigdatetime}, but unfortunately its duration arithmetic functions have a nasty habit of overflowing. So to give ourselves a little extra headroom, we will use millisecond as the native unit of precision.

Returns:long

Doc from org.hibernate.dialect.Dialect.getFractionalSecondPrecisionInNanos.

the precision, specified as a quantity of nanoseconds

Annotations
@Override
getLimitHandlerback to summary
public LimitHandler getLimitHandler()

Overrides org.hibernate.dialect.Dialect.getLimitHandler.

Doc from org.hibernate.dialect.Dialect.getLimitHandler.

Obtain a LimitHandler that implements pagination support for Query#setMaxResults(int) and Query#setFirstResult(int).

Annotations
@Override
getMaxAliasLengthback to summary
public int getMaxAliasLength()

Overrides org.hibernate.dialect.Dialect.getMaxAliasLength.

Doc from org.hibernate.dialect.Dialect.getMaxAliasLength.

What is the maximum length Hibernate can use for generated aliases?

Returns:int

The maximum length.

Annotations
@Override
getMaxIdentifierLengthback to summary
public int getMaxIdentifierLength()

Overrides org.hibernate.dialect.SybaseDialect.getMaxIdentifierLength.

Doc from org.hibernate.dialect.Dialect.getMaxIdentifierLength.

What is the maximum identifier length supported by this dialect?

Returns:int

The maximum length.

Annotations
@Override
getMaxVarcharLengthback to summary
public int getMaxVarcharLength()

Overrides org.hibernate.dialect.Dialect.getMaxVarcharLength.

Doc from org.hibernate.dialect.Dialect.getMaxVarcharLength.

The biggest size value that can be supplied as argument to a java.sql.Types#VARCHAR-like type.

For longer column lengths, use some sort of text-like type for the column.

Annotations
@Override
getSizeStrategyback to summary
public Dialect.SizeStrategy getSizeStrategy()

Overrides org.hibernate.dialect.Dialect.getSizeStrategy.

Doc from org.hibernate.dialect.Dialect.getSizeStrategy.

A custom SizeStrategy for column types.

Annotations
@Override
getSqlAstTranslatorFactoryback to summary
public SqlAstTranslatorFactory getSqlAstTranslatorFactory()

Overrides org.hibernate.dialect.SybaseDialect.getSqlAstTranslatorFactory.

Doc from org.hibernate.dialect.Dialect.getSqlAstTranslatorFactory.

Return a SqlAstTranslatorFactory specific to this dialect, or null to use the standard translator.

Annotations
@Override
getTableTypeStringback to summary
public String getTableTypeString()

Overrides org.hibernate.dialect.Dialect.getTableTypeString.

Doc from org.hibernate.dialect.Dialect.getTableTypeString.

An arbitrary fragment appended to the end of the create table statement.

Annotations
@Override
getViolatedConstraintNameExtractorback to summary
public ViolatedConstraintNameExtractor getViolatedConstraintNameExtractor()

Overrides org.hibernate.dialect.Dialect.getViolatedConstraintNameExtractor.

Implements org.hibernate.exception.spi.ConversionContext.getViolatedConstraintNameExtractor.

Doc from org.hibernate.dialect.Dialect.getViolatedConstraintNameExtractor.

A ViolatedConstraintNameExtractor for extracting the name of a violated constraint from a SQLException.

Annotations
@Override
isAnsiNullback to summary
private static boolean isAnsiNull(DialectResolutionInfo info)
isAnsiNullOnback to summary
public boolean isAnsiNullOn()

Overrides org.hibernate.dialect.Dialect.isAnsiNullOn.

Doc from org.hibernate.dialect.Dialect.isAnsiNullOn.

A setting specific to SybaseASEDialect.

Annotations
@Override
registerColumnTypesback to summary
protected void registerColumnTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)

Overrides org.hibernate.dialect.Dialect.registerColumnTypes.

Doc from org.hibernate.dialect.Dialect.registerColumnTypes.

Register ANSI-standard column types using the length limits defined by getMaxVarcharLength(), getMaxNVarcharLength(), and getMaxVarbinaryLength().

This method is always called when a Dialect is instantiated.

Annotations
@Override
registerDefaultKeywordsback to summary
protected void registerDefaultKeywords()

Overrides org.hibernate.dialect.Dialect.registerDefaultKeywords.

Doc from org.hibernate.dialect.Dialect.registerDefaultKeywords.

Register the reserved words of ANSI-standard SQL as keywords.

Annotations
@Override
resolveSqlTypeLengthback to summary
public int resolveSqlTypeLength(String columnTypeName, int jdbcTypeCode, int precision, int scale, int displaySize)

Overrides org.hibernate.dialect.Dialect.resolveSqlTypeLength.

Doc from org.hibernate.dialect.Dialect.resolveSqlTypeLength.

Determine the length/precision of a column based on information in the JDBC java.sql.ResultSetMetaData. Note that what JDBC reports as a "precision" might actually be the column length.

Parameters
columnTypeName:String

the name of the column type

jdbcTypeCode:int

the JDBC type code of the column type

precision:int

the (numeric) precision or (character) length of the column

scale:int

the scale of a numeric column

displaySize:int

the display size of the column

Returns:int

the precision or length of the column

Annotations
@Override
supportsBitTypeback to summary
public boolean supportsBitType()

Overrides org.hibernate.dialect.Dialect.supportsBitType.

The Sybase ASE BIT type does not allow null values, so we don't use it.

Returns:boolean

false

Annotations
@Override
supportsCascadeDeleteback to summary
public boolean supportsCascadeDelete()

Overrides org.hibernate.dialect.Dialect.supportsCascadeDelete.

Doc from org.hibernate.dialect.Dialect.supportsCascadeDelete.

Does this dialect support on delete actions in foreign key definitions?

Returns:boolean

true if the dialect does support the on delete clause.

Annotations
@Override
supportsDistinctFromPredicateback to summary
public boolean supportsDistinctFromPredicate()

Overrides org.hibernate.dialect.Dialect.supportsDistinctFromPredicate.

Doc from org.hibernate.dialect.Dialect.supportsDistinctFromPredicate.

Does this dialect support some kind of distinct from predicate?

That is, does it support syntax like:

... where FIRST_NAME IS DISTINCT FROM LAST_NAME
Returns:boolean

True if this SQL dialect is known to support some kind of distinct from predicate; false otherwise

Annotations
@Override
supportsLobValueChangePropagationback to summary
public boolean supportsLobValueChangePropagation()

Overrides org.hibernate.dialect.Dialect.supportsLobValueChangePropagation.

Doc from org.hibernate.dialect.Dialect.supportsLobValueChangePropagation.

Does the dialect support propagating changes to LOB values back to the database? Talking about mutating the internal value of the locator, as opposed to supplying a new locator instance.

Returns:boolean

True if the changes are propagated back to the database; false otherwise.

Annotations
@Override
supportsLockTimeoutsback to summary
public boolean supportsLockTimeouts()

Overrides org.hibernate.dialect.Dialect.supportsLockTimeouts.

Doc from org.hibernate.dialect.Dialect.supportsLockTimeouts.

Does this dialect support specifying timeouts when requesting locks.

Returns:boolean

True is this dialect supports specifying lock timeouts.

Annotations
@Override
supportsOrderByInSubqueryback to summary
public boolean supportsOrderByInSubquery()

Overrides org.hibernate.dialect.Dialect.supportsOrderByInSubquery.

Doc from org.hibernate.dialect.Dialect.supportsOrderByInSubquery.

Does this dialect support the order by clause in subqueries?

For example:

select * from Table1 where col1 in (select col1 from Table2 order by col2 limit 1)
Returns:boolean

true if it does

Annotations
@Override
supportsPartitionByback to summary
public boolean supportsPartitionBy()

Overrides org.hibernate.dialect.AbstractTransactSQLDialect.supportsPartitionBy.

Doc from org.hibernate.dialect.Dialect.supportsPartitionBy.

Does is dialect support partition by?

Annotations
@Override
supportsSkipLockedback to summary
public boolean supportsSkipLocked()

Overrides org.hibernate.dialect.Dialect.supportsSkipLocked.

Doc from org.hibernate.dialect.Dialect.supportsSkipLocked.

Does this dialect support SKIP_LOCKED timeout.

Returns:boolean

true if SKIP_LOCKED is supported

Annotations
@Override
supportsUnionInSubqueryback to summary
public boolean supportsUnionInSubquery()

Overrides org.hibernate.dialect.Dialect.supportsUnionInSubquery.

Doc from org.hibernate.dialect.Dialect.supportsUnionInSubquery.

Does this dialect support UNION in a subquery.

Returns:boolean

True if UNION is supported in a subquery; false otherwise.

Annotations
@Override
timestampaddPatternback to summary
public String timestampaddPattern(TemporalUnit unit, TemporalType temporalType, IntervalType intervalType)

Overrides org.hibernate.dialect.SybaseDialect.timestampaddPattern.

Doc from org.hibernate.dialect.Dialect.timestampaddPattern.

Obtain a pattern for the SQL equivalent to a timestampadd() function call. The resulting pattern must contain ?1, ?2, and ?3 placeholders for the arguments.

Parameters
unit:TemporalUnit

The unit to add to the temporal

temporalType:TemporalType

The type of the temporal

intervalType:IntervalType

The type of interval to add or null if it's not a native interval

Annotations
@Override
timestampdiffPatternback to summary
public String timestampdiffPattern(TemporalUnit unit, TemporalType fromTemporalType, TemporalType toTemporalType)

Overrides org.hibernate.dialect.SybaseDialect.timestampdiffPattern.

Doc from org.hibernate.dialect.Dialect.timestampdiffPattern.

Obtain a pattern for the SQL equivalent to a timestampdiff() function call. The resulting pattern must contain ?1, ?2, and ?3 placeholders for the arguments.

Parameters
unit:TemporalUnit

the first argument

fromTemporalType:TemporalType

true if the first argument is a timestamp, false if a date

toTemporalType:TemporalType

true if the second argument is

Annotations
@Override
toQuotedIdentifierback to summary
public String toQuotedIdentifier(String name)

Overrides org.hibernate.dialect.Dialect.toQuotedIdentifier.

Doc from org.hibernate.dialect.Dialect.toQuotedIdentifier.

Apply dialect-specific quoting.

Parameters
name:String

The value to be quoted.

Returns:String

The quoted value.

Annotations
@Override