| Modifier and Type | Field and Description |
|---|---|
| private final SybaseDriverKind | |
| private static final int | |
| protected final boolean | jtdsDriver
Deprecated
for removal.
|
| private static final DatabaseVersion | |
| private static final int | |
| private final UniqueDelegate |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendDatetimeFormat(SqlAppender appender, String format)
Overrides org. java. to
whatever pattern language is understood by the
native datetime formatting function for this
database (often the to_char() function).
|
| public void | appendDateTimeLiteral(SqlAppender appender, TemporalAccessor temporalAccessor, TemporalType precision, TimeZone jdbcTimeZone)
Overrides org. java.
value to the given SqlAppender.
|
| public void | appendDateTimeLiteral(SqlAppender appender, Date date, TemporalType precision, TimeZone jdbcTimeZone)
Overrides org. Date
value to the given SqlAppender.
|
| public void | appendDateTimeLiteral(SqlAppender appender, Calendar calendar, TemporalType precision, TimeZone jdbcTimeZone)
Overrides org. Calendar
value to the given SqlAppender.
|
| public IdentifierHelper | buildIdentifierHelper(IdentifierHelperBuilder
A partially-configured builder, DatabaseMetaData IdentifierHelperBuilder.Access to the metadata returned from the driver if needed and if available dbMetaData)Warning it may be Overrides org. IdentifierHelper indicated by this dialect for handling identifier conversions.
|
| public boolean | canCreateSchema()
Does this dialect support creating and dropping schema?
|
| public String | castPattern(CastType
a from, CastType CastType indicating the
type of the value argumenta to)CastType indicating the
type the value argument is cast toOverrides org. cast() function call.
|
| public void | contributeTypes(TypeContributions
Callback to contribute the types typeContributions, ServiceRegistry The service registry serviceRegistry)Overrides org. Dialect to contribute types.
|
| public String | extractPattern(TemporalUnit
the first argument unit)Overrides org. extract() function call.
|
| public String | getAlterColumnTypeString(String
the name of the column columnName, String the new type of the column columnType, String the full column definition columnDefinition)Overrides org. alter table command which modifies a
column type, or null if column types cannot be modified.
|
| public CallableStatementSupport | getCallableStatementSupport()
Overrides org. CallableStatementSupport for this database.
|
| public String | getCurrentSchemaCommand()
Overrides org. |
| public SybaseDriverKind | |
| public IdentityColumnSupport | getIdentityColumnSupport()
Overrides org. IdentityColumnSupport for this dialect.
|
| public int | getInExpressionCountLimit()
Overrides org. IN predicate.
|
| public int | getMaxIdentifierLength()
Overrides org. |
| protected DatabaseVersion | getMinimumSupportedVersion()
Overrides org. |
| public NameQualifierSupport | |
| public NationalizationSupport | getNationalizationSupport()
Overrides org. |
| public String | getNullColumnString()
Overrides org. "",
but sometimes " null".
|
| public int | getParameterCountLimit()
Overrides org. |
| public SqlAstTranslatorFactory | getSqlAstTranslatorFactory()
Overrides org. SqlAstTranslatorFactory specific to this dialect, or null
to use the standard translator.
|
| public SqmTranslatorFactory | getSqmTranslatorFactory()
Overrides org. SqmTranslatorFactory specific to this dialect, or null
to use the standard translator.
|
| public UniqueDelegate | getUniqueDelegate()
Overrides org. UniqueDelegate supported by this dialect
|
| public void | initializeFunctionRegistry(FunctionContributions functionContributions)
Overrides org. |
| public JdbcType | resolveSqlTypeDescriptor(String
the column type name columnTypeName, int the jdbcTypeCode, int type codethe precision or 0 precision, int the scale or 0 scale, JdbcTypeRegistry jdbcTypeRegistry)Overrides org. JdbcType to a column of a JDBC
result set based on the column type name, JDBC type code,
precision, and scale.
|
| public boolean | supportsAlterColumnType()
Overrides org. |
| public boolean | supportsFractionalTimestampArithmetic()
Overrides org. timestamp + 0.5 second.
|
| public boolean | supportsNamedParameters(DatabaseMetaData databaseMetaData)
Overrides org. DatabaseMetaData#supportsNamedParameters().
|
| public boolean | supportsNullPrecedence()
Overrides org. nulls first and nulls last?
|
| public boolean | supportsStandardCurrentTimestampFunction()
Overrides org. current_timestamp function?
|
| 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. 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. timestampdiff() function call.
|
| public String | translateExtractField(TemporalUnit unit)
Overrides org. extract() function,
or of this dialect's equivalent
function.
|
| driverKind | back to summary |
|---|---|
| private final SybaseDriverKind driverKind | |
| IN_LIST_SIZE_LIMIT | back to summary |
|---|---|
| private static final int IN_LIST_SIZE_LIMIT | |
| jtdsDriver | back to summary |
|---|---|
| protected final boolean jtdsDriver
Deprecated for removal.
| |
| MINIMUM_VERSION | back to summary |
|---|---|
| private static final DatabaseVersion MINIMUM_VERSION | |
| PARAM_COUNT_LIMIT | back to summary |
|---|---|
| private static final int PARAM_COUNT_LIMIT | |
| uniqueDelegate | back to summary |
|---|---|
| private final UniqueDelegate uniqueDelegate | |
| SybaseDialect | back to summary |
|---|---|
| public SybaseDialect() | |
| SybaseDialect | back to summary |
|---|---|
| public SybaseDialect(DatabaseVersion version) | |
| SybaseDialect | back to summary |
|---|---|
| public SybaseDialect(DialectResolutionInfo info) | |
| appendDatetimeFormat | back to summary |
|---|---|
| public void appendDatetimeFormat(SqlAppender appender, String format) Overrides org. Doc from org. Translate the given datetime format string from
the pattern language defined by Java's
Since it's never possible to translate every
pattern letter sequences understood by
In addition, punctuation characters and single-quoted literal strings are accepted. Appends a pattern accepted by the function that formats dates and times in this dialect to a SQL fragment that is being constructed.
| |
| appendDateTimeLiteral | back to summary |
|---|---|
| public void appendDateTimeLiteral(SqlAppender appender, TemporalAccessor temporalAccessor, TemporalType precision, TimeZone jdbcTimeZone) Overrides org. Doc from org. Append a datetime literal representing the given
| |
| appendDateTimeLiteral | back to summary |
|---|---|
| public void appendDateTimeLiteral(SqlAppender appender, Date date, TemporalType precision, TimeZone jdbcTimeZone) Overrides org. Doc from org. Append a datetime literal representing the given
| |
| appendDateTimeLiteral | back to summary |
|---|---|
| public void appendDateTimeLiteral(SqlAppender appender, Calendar calendar, TemporalType precision, TimeZone jdbcTimeZone) Overrides org. Doc from org. Append a datetime literal representing the given
| |
| buildIdentifierHelper | back to summary |
|---|---|
| public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData) throws SQLException Overrides org. Doc from org. The The incoming builder will have the following set:
By default, Hibernate will do the following:
| |
| canCreateSchema | back to summary |
|---|---|
| public boolean canCreateSchema() Overrides org. Doc from org. Does this dialect support creating and dropping schema?
| |
| castPattern | back to summary |
|---|---|
| public String castPattern(CastType from, CastType to) Overrides org. Doc from org. Obtain a pattern for the SQL equivalent to a
| |
| contributeTypes | back to summary |
|---|---|
| public void contributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry) Overrides org. Doc from org. A callback which allows the
| |
| extractPattern | back to summary |
|---|---|
| public String extractPattern(TemporalUnit unit) Overrides org. Doc from org. Obtain a pattern for the SQL equivalent to an
This method does not need to handle
| |
| getAlterColumnTypeString | back to summary |
|---|---|
| public String getAlterColumnTypeString(String columnName, String columnType, String columnDefinition) Overrides org. Doc from org. The fragment of an | |
| getCallableStatementSupport | back to summary |
|---|---|
| public CallableStatementSupport getCallableStatementSupport() Overrides org. Doc from org. The
| |
| getCurrentSchemaCommand | back to summary |
|---|---|
| public String getCurrentSchemaCommand() Overrides org. Doc from org. Get the SQL command used to retrieve the current schema name.
Works in conjunction with | |
| getDriverKind | back to summary |
|---|---|
| public SybaseDriverKind getDriverKind() | |
| getIdentityColumnSupport | back to summary |
|---|---|
| public IdentityColumnSupport getIdentityColumnSupport() Overrides org. Doc from org. Get the appropriate
| |
| getInExpressionCountLimit | back to summary |
|---|---|
| public int getInExpressionCountLimit() Overrides org. Doc from org. Return the limit that the underlying database places on the number of
elements in an
| |
| getMaxIdentifierLength | back to summary |
|---|---|
| public int getMaxIdentifierLength() Overrides org. Doc from org. What is the maximum identifier length supported by this dialect?
| |
| getMinimumSupportedVersion | back to summary |
|---|---|
| protected DatabaseVersion getMinimumSupportedVersion() Overrides org. Doc from org. Get the version of the SQL dialect that is the minimum supported by this implementation.
| |
| getNameQualifierSupport | back to summary |
|---|---|
| public NameQualifierSupport getNameQualifierSupport() Overrides org. Doc from org. The support for qualified identifiers.
By default, decide based on
| |
| getNationalizationSupport | back to summary |
|---|---|
| public NationalizationSupport getNationalizationSupport() Overrides org. Doc from org. Determines whether this database requires the use of explicitly nationalized character (Unicode) data types.
That is, whether the use of
| |
| getNullColumnString | back to summary |
|---|---|
| public String getNullColumnString() Overrides org. Doc from org. The keyword used to specify a nullable column, usually
| |
| getParameterCountLimit | back to summary |
|---|---|
| public int getParameterCountLimit() Overrides org. Doc from org. Return the limit that the underlying database places on the number of parameters
that can be defined for a PreparedStatement. If the database defines no such
limits, simply return zero or a number smaller than zero. By default, Dialect
returns the same value as
| |
| getSqlAstTranslatorFactory | back to summary |
|---|---|
| public SqlAstTranslatorFactory getSqlAstTranslatorFactory() Overrides org. Doc from org. Return a
| |
| getSqmTranslatorFactory | back to summary |
|---|---|
| public SqmTranslatorFactory getSqmTranslatorFactory() Overrides org. Doc from org. Return a
Note that
| |
| getUniqueDelegate | back to summary |
|---|---|
| public UniqueDelegate getUniqueDelegate() Overrides org. Doc from org. Get the
| |
| initializeFunctionRegistry | back to summary |
|---|---|
| public void initializeFunctionRegistry(FunctionContributions functionContributions) Overrides org. Doc from org. Initialize the given registry with any dialect-specific functions. Support for certain SQL functions is required, and if the database does not support a required function, then the dialect must define a way to emulate it. These required functions include the functions defined by the JPA query language specification:
java.time
types:
extract(), and desugared by the parser:
second()
function returns a floating point value, contrary to the integer
type returned by the native function with this name on many databases.
Thus, we don't just naively map these HQL functions to the native SQL
functions with the same names.
| |
| resolveSqlTypeDescriptor | back to summary |
|---|---|
| public JdbcType resolveSqlTypeDescriptor(String columnTypeName, int jdbcTypeCode, int precision, int scale, JdbcTypeRegistry jdbcTypeRegistry) Overrides org. Doc from org. Assigns an appropriate | |
| supportsAlterColumnType | back to summary |
|---|---|
| public boolean supportsAlterColumnType() Overrides org. Doc from org. Does this dialect support modifying the type of an existing column?
| |
| supportsFractionalTimestampArithmetic | back to summary |
|---|---|
| public boolean supportsFractionalTimestampArithmetic() Overrides org. Doc from org. Whether the database supports adding a fractional interval to a timestamp,
for example
| |
| supportsNamedParameters | back to summary |
|---|---|
| public boolean supportsNamedParameters(DatabaseMetaData databaseMetaData) throws SQLException Overrides org. Doc from org. Override
| |
| supportsNullPrecedence | back to summary |
|---|---|
| public boolean supportsNullPrecedence() Overrides org. Doc from org. Does this dialect support
| |
| supportsStandardCurrentTimestampFunction | back to summary |
|---|---|
| public boolean supportsStandardCurrentTimestampFunction() Overrides org. Doc from org. Does this dialect have an ANSI SQL
| |
| timestampaddPattern | back to summary |
|---|---|
| public String timestampaddPattern(TemporalUnit unit, TemporalType temporalType, IntervalType intervalType) Overrides org. Doc from org. Obtain a pattern for the SQL equivalent to a
| |
| timestampdiffPattern | back to summary |
|---|---|
| public String timestampdiffPattern(TemporalUnit unit, TemporalType fromTemporalType, TemporalType toTemporalType) Overrides org. Doc from org. Obtain a pattern for the SQL equivalent to a
| |
| translateExtractField | back to summary |
|---|---|
| public String translateExtractField(TemporalUnit unit) Overrides org. Doc from org. Return the name used to identify the given field
as an argument to the
This method does not need to handle
| |