org.hibernate.query.sqm.function.SqmFunctionDescriptor
describing a range of relatively-sophisticated SQL functions available in various dialects.
| Modifier and Type | Class and Description |
|---|---|
| public class | AggregateWindowEmulationQueryTransformer
Since the query spec will render a hypothetical set window function instead of an aggregate, the following query transformer will wrap the query spec and apply aggregation in the outer query. |
| public class | AvgFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | CaseLeastGreatestEmulation
Deprecated
as a consequence of Some databases don't have a function like AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
least() or greatest(),
and on those platforms we emulate the function using case.
|
| public class | CastFunction
Deprecated
as a consequence of ANSI SQL-inspired AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
cast() function, where the target types
are enumerated by CastType, and portability is achieved
by delegating to Dialect#castPattern(CastType, CastType).
|
| public class | CastingConcatFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | CastStrEmulation
The HQL |
| public class | ChrLiteralEmulation
Deprecated
as a consequence of A chr implementation that translates integer literals to string literals.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | |
| public class | CommonFunctionFactory
Enumeratoes common function template definitions. |
| public class | ConcatPipeFunction
Deprecated
as a consequence of A concat function with a pattern for clob arguments.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | CountFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | CurrentFunction
Deprecated
as a consequence of A "function" with no parameters that returns the current date, time, or timestamp.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | DateTruncEmulation
Deprecated
as a consequence of Emulation of FunctionRenderer being deprecated.
trunc(datetime, temporal_unit) function that leverages
formatting the datetime to string and back to truncate it
|
| public class | DB2FormatEmulation
Deprecated
as a consequence of DB2's varchar_format() can't handle quoted literal strings in
the format pattern.
FormatFunction being deprecated.
|
| public class | DB2PositionFunction
Deprecated
as a consequence of DB2's position() function always requires a code unit before version 11.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | DB2SubstringFunction
Deprecated
as a consequence of DB2's substring() function requires a code unit and substr() can't optionally take it,
so we render substr() by default.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | DerbyLpadEmulation
Deprecated
as a consequence of A derby implementation for lpad.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | DerbyRpadEmulation
Deprecated
as a consequence of A derby implementation for rpad.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | EveryAnyEmulation
Deprecated
as a consequence of Most databases don't have a function like AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
every() or any().
|
| public class | ExtractFunction
Deprecated
as a consequence of ANSI SQL-inspired FunctionRenderer being deprecated.
extract() function, where the date/time fields
are enumerated by TemporalUnit, and portability is achieved
by delegating to Dialect#extractPattern(TemporalUnit).
|
| public class | FormatFunction
Deprecated
as a consequence of A format function with support for composite temporal expressions.
FunctionRenderer being deprecated.
|
| public class | HypotheticalSetFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | HypotheticalSetWindowEmulation
Deprecated
as a consequence of
HypotheticalSetFunction being deprecated.
|
| public class | InsertSubstringOverlayEmulation
Emulates the ANSI SQL-standard |
| public class | IntegralTimestampaddFunction
Deprecated
as a consequence of Used in place of TimestampaddFunction being deprecated.
TimestampaddFunction for databases which don't
support fractional seconds in the timestampadd() function.
|
| public class | InverseDistributionFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | InverseDistributionWindowEmulation
Deprecated
as a consequence of
InverseDistributionFunction being deprecated.
|
| public class | LengthFunction
Deprecated
as a consequence of A length function with separate patterns for string and clob argument.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | ListaggFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | ListaggGroupConcatEmulation
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | ListaggStringAggEmulation
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | LocatePositionEmulation
Emulates the ANSI SQL-standard |
| public class | LpadRpadPadEmulation
HQL function inspired by the ANSI SQL trim function,
with a funny syntax involving a |
| public class | MinMaxCaseEveryAnyEmulation
Deprecated
as a consequence of Most databases don't have a function like AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
every() or any().
|
| public class | ModeStatsModeEmulation
Deprecated
as a consequence of
InverseDistributionFunction being deprecated.
|
| public class | NvlCoalesceEmulation
Oracle 8i had no |
| public class | OracleTruncFunction
Custom |
| public class | PostgreSQLMinMaxFunction
Deprecated
as a consequence of PostgreSQL doesn't support min/max for uuid yet,
but since that type is comparable we want to support this operation.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | PostgreSQLTruncFunction
Custom |
| public class | PostgreSQLTruncRoundFunction
Deprecated
as a consequence of PostgreSQL only supports the two-argument FunctionRenderer being deprecated.
trunc and round functions
with the following signatures:
|
| public class | QuantifiedLeastGreatestEmulation
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | SqlFunction
Deprecated
as a consequence of A function to pass through a SQL fragment.
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| public class | SqlServerConvertTruncFunction
Custom |
| public class | SQLServerEveryAnyEmulation
Deprecated
as a consequence of SQL Server doesn't have a function like AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
every() or any().
|
| public class | SQLServerFormatEmulation
Deprecated
as a consequence of SQL Server behaves strangely when the first argument to format is of the type time, so we cast to datetime.
FormatFunction being deprecated.
|
| public class | StandardSQLFunction
Deprecated
as a consequence of Simplified API allowing users to contribute
NamedSqmFunctionDescriptor being deprecated.
org.s
to HQL.
|
| pack-priv class | SumReturnTypeResolver
Resolve according to JPA spec 4.8.5
|
| public class | SybaseTruncFunction
Custom |
| public class | TimestampaddFunction
Deprecated
as a consequence of The AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
timestampadd() or dateadd() function has a funny
syntax which accepts a TemporalUnit as the first argument,
and the actual set of accepted units varies widely.
|
| public class | TimestampdiffFunction
Deprecated
as a consequence of The AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
timestampdiff() or datediff() function has a funny
syntax which accepts a TemporalUnit as the first argument, and
the actual set of accepted units varies widely.
|
| public class | TransactSQLStrFunction
Deprecated
as a consequence of A special function that renders a T-SQL FunctionRenderer being deprecated.
str() function
if more than a single argument is given, or otherwise renders
a cast() expression just like CastStrEmulation.
|
| public class | TrimFunction
Deprecated
as a consequence of ANSI SQL-standard AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
trim() function, which has a funny syntax
involving a TrimSpec, and portability is achieved using
Dialect#trimPattern(TrimSpec, boolean).
|
| public class | TruncFunction
Custom function that manages both numeric and datetime truncation |