Uses of Interface
org.hibernate.query.sqm.function.SqmFunctionDescriptor
-
Packages that use SqmFunctionDescriptor Package Description org.hibernate.boot This package contains the interfaces that make up the bootstrap API for Hibernate.org.hibernate.boot.internal org.hibernate.boot.spi A range of SPIs allowing integration with—and customization of—the process of building metadata.org.hibernate.cfg This package defines APIs for configuring Hibernate.org.hibernate.dialect.function Contains implementations ofSqmFunctionDescriptordescribing a range of relatively-sophisticated SQL functions available in various dialects.org.hibernate.envers.function org.hibernate.query.spi Contains a range of internal abstractions for dealing with query execution, query plans, query options, and query parameters.org.hibernate.query.sqm.function Package defining support for HQL, including JPQL as a subset of HQL.org.hibernate.query.sqm.produce.function Package defining support forSqmFunctionDescriptorhandling.org.hibernate.query.sqm.tree.expression Nodes representing expressions in the SQM tree.org.hibernate.spatial org.hibernate.spatial.dialect.hana org.hibernate.spatial.dialect.oracle org.hibernate.testing.boot -
-
Uses of SqmFunctionDescriptor in org.hibernate.boot
Methods in org.hibernate.boot that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>Metadata. getSqlFunctionMap()Methods in org.hibernate.boot with parameters of type SqmFunctionDescriptor Modifier and Type Method Description MetadataBuilderMetadataBuilder. applySqlFunction(String functionName, SqmFunctionDescriptor function)Contribute aSqmFunctionDescriptorto HQL.SessionFactoryBuilderSessionFactoryBuilder. applySqlFunction(String registrationName, SqmFunctionDescriptor functionDescriptor)Register aSQL functionwith the underlyingSqmFunctionRegistry. -
Uses of SqmFunctionDescriptor in org.hibernate.boot.internal
Methods in org.hibernate.boot.internal that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>SessionFactoryOptionsBuilder. getCustomSqlFunctionMap()Map<String,SqmFunctionDescriptor>InFlightMetadataCollectorImpl. getSqlFunctionMap()Map<String,SqmFunctionDescriptor>MetadataImpl. getSqlFunctionMap()Map<String,SqmFunctionDescriptor>BootstrapContextImpl. getSqlFunctions()Methods in org.hibernate.boot.internal with parameters of type SqmFunctionDescriptor Modifier and Type Method Description voidBootstrapContextImpl. addSqlFunction(String functionName, SqmFunctionDescriptor function)MetadataBuilderMetadataBuilderImpl. applySqlFunction(String functionName, SqmFunctionDescriptor function)SessionFactoryBuilderSessionFactoryBuilderImpl. applySqlFunction(String registrationName, SqmFunctionDescriptor functionDescriptor)voidSessionFactoryOptionsBuilder. applySqlFunction(String registrationName, SqmFunctionDescriptor sqlFunction) -
Uses of SqmFunctionDescriptor in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>AbstractDelegatingSessionFactoryOptions. getCustomSqlFunctionMap()Map<String,SqmFunctionDescriptor>AbstractDelegatingMetadata. getSqlFunctionMap()Map<String,SqmFunctionDescriptor>BootstrapContext. getSqlFunctions()Access to any SQL functions explicitly registered with theMetadataBuilder.Methods in org.hibernate.boot.spi with parameters of type SqmFunctionDescriptor Modifier and Type Method Description MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applySqlFunction(String functionName, SqmFunctionDescriptor function)TAbstractDelegatingSessionFactoryBuilder. applySqlFunction(String registrationName, SqmFunctionDescriptor sqlFunction) -
Uses of SqmFunctionDescriptor in org.hibernate.cfg
Methods in org.hibernate.cfg that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>Configuration. getSqlFunctions()Methods in org.hibernate.cfg with parameters of type SqmFunctionDescriptor Modifier and Type Method Description ConfigurationConfiguration. addSqlFunction(String functionName, SqmFunctionDescriptor function)Adds a SQL function descriptor to this configuration. -
Uses of SqmFunctionDescriptor in org.hibernate.dialect.function
Classes in org.hibernate.dialect.function that implement SqmFunctionDescriptor Modifier and Type Class Description classAvgFunctionclassCaseLeastGreatestEmulationSome databases don't have a function likeleast()orgreatest(), and on those platforms we emulate the function usingcase.classCastFunctionANSI SQL-inspiredcast()function, where the target types are enumerated byCastType, and portability is achieved by delegating toDialect.castPattern(CastType, CastType).classCastingConcatFunctionclassCastStrEmulationThe HQLstr()function is now considered a synonym forcast(x as String).classChrLiteralEmulationA chr implementation that translates integer literals to string literals.classCoalesceIfnullEmulationclassConcatPipeFunctionA concat function with a pattern for clob arguments.classCountFunctionclassCurrentFunctionA "function" with no parameters that returns the current date, time, or timestamp.classDateTruncEmulationEmulation oftrunc(datetime, temporal_unit)function that leverages formatting the datetime to string and back to truncate itclassDB2FormatEmulationDB2's varchar_format() can't handle quoted literal strings in the format pattern.classDB2PositionFunctionDB2's position() function always requires a code unit before version 11.classDB2SubstringFunctionDB2's substring() function requires a code unit and substr() can't optionally take it, so we render substr() by default.classDerbyLpadEmulationA derby implementation for lpad.classDerbyRpadEmulationA derby implementation for rpad.classEveryAnyEmulationMost databases don't have a function likeevery()orany().classExtractFunctionANSI SQL-inspiredextract()function, where the date/time fields are enumerated byTemporalUnit, and portability is achieved by delegating toDialect.extractPattern(TemporalUnit).classFormatFunctionA format function with support for composite temporal expressions.classHypotheticalSetFunctionclassHypotheticalSetWindowEmulationclassInsertSubstringOverlayEmulationEmulates the ANSI SQL-standardoverlay()function usinginsert()substring(), andconcat().classIntegralTimestampaddFunctionUsed in place ofTimestampaddFunctionfor databases which don't support fractional seconds in thetimestampadd()function.classInverseDistributionFunctionclassInverseDistributionWindowEmulationclassLengthFunctionA length function with separate patterns for string and clob argument.classListaggFunctionclassListaggGroupConcatEmulationclassListaggStringAggEmulationclassLocatePositionEmulationEmulates the ANSI SQL-standardposition()function usinglocate().classLpadRpadPadEmulationHQL function inspired by the ANSI SQL trim function, with a funny syntax involving aTrimSpec.classMinMaxCaseEveryAnyEmulationMost databases don't have a function likeevery()orany().classModeStatsModeEmulationclassNvlCoalesceEmulationOracle 8i had nocoalesce()function, so we emulate it using chainednvl()s.classOracleTruncFunctionCustomTruncFunctionfor Oracle which uses emulation when truncating datetimes to secondsclassPostgreSQLMinMaxFunctionPostgreSQL doesn't support min/max for uuid yet, but since that type is comparable we want to support this operation.classPostgreSQLTruncFunctionCustomTruncFunctionfor PostgreSQL which uses the dialect-specific function for numeric truncationclassPostgreSQLTruncRoundFunctionPostgreSQL only supports the two-argumenttruncandroundfunctions with the following signatures:trunc(numeric, integer)round(numeric, integer)classQuantifiedLeastGreatestEmulationclassSqlFunctionA function to pass through a SQL fragment.classSqlServerConvertTruncFunctionCustomTruncFunctionfor SQL Server versions < 16 which uses the customSqlServerConvertTruncFunction.DateTruncConvertEmulationclassSQLServerEveryAnyEmulationSQL Server doesn't have a function likeevery()orany().classSQLServerFormatEmulationSQL Server behaves strangely when the first argument to format is of the type time, so we cast to datetime.classStandardSQLFunctionSimplified API allowing users to contributeSqmFunctionDescriptors to HQL.classSybaseTruncFunctionCustomTruncFunctionfor Sybase which uses a dialect-specific emulation function for datetimesclassTimestampaddFunctionThetimestampadd()ordateadd()function has a funny syntax which accepts aTemporalUnitas the first argument, and the actual set of accepted units varies widely.classTimestampdiffFunctionThetimestampdiff()ordatediff()function has a funny syntax which accepts aTemporalUnitas the first argument, and the actual set of accepted units varies widely.classTransactSQLStrFunctionA special function that renders a T-SQLstr()function if more than a single argument is given, or otherwise renders acast()expression just likeCastStrEmulation.classTrimFunctionANSI SQL-standardtrim()function, which has a funny syntax involving aTrimSpec, and portability is achieved usingDialect.trimPattern(TrimSpec, char).classTruncFunctionCustom function that manages both numeric and datetime truncationConstructors in org.hibernate.dialect.function with parameters of type SqmFunctionDescriptor Constructor Description FormatSqmFunction(SqmFunctionDescriptor descriptor, FunctionRenderingSupport renderingSupport, List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, boolean supportsPatternLiterals, QueryEngine queryEngine) -
Uses of SqmFunctionDescriptor in org.hibernate.envers.function
Classes in org.hibernate.envers.function that implement SqmFunctionDescriptor Modifier and Type Class Description classOrderByFragmentFunctionEnvers specific FunctionContributor -
Uses of SqmFunctionDescriptor in org.hibernate.query.spi
Methods in org.hibernate.query.spi that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>QueryEngineOptions. getCustomSqlFunctionMap()User defined SQM functions available for use in HQL and Criteria. -
Uses of SqmFunctionDescriptor in org.hibernate.query.sqm.function
Classes in org.hibernate.query.sqm.function that implement SqmFunctionDescriptor Modifier and Type Class Description classAbstractSqmFunctionDescriptorclassAbstractSqmSelfRenderingFunctionDescriptorclassJdbcEscapeFunctionDescriptorActs as a wrapper to anotherSqmFunctionDescriptor, rendering the standard JDBC escape sequence{fn f(x, y)}around the invocation syntax generated by its delegate.classMultipatternSqmFunctionDescriptorSupport for overloaded functions defined in terms of a list of patterns, one for each possible function arity.classNamedSqmFunctionDescriptorProvides a standard implementation that supports the majority of the HQL functions that are translated to SQL.classPatternBasedSqmFunctionDescriptorSupport for HQL functions that have different representations in different SQL dialects, where the difference can be handled via a pattern template.Methods in org.hibernate.query.sqm.function that return SqmFunctionDescriptor Modifier and Type Method Description SqmFunctionDescriptorSqmFunctionRegistry. findFunctionDescriptor(String functionName)Find a SqmFunctionTemplate by name.SqmFunctionDescriptorMultipatternSqmFunctionDescriptor. getFunction(int argumentCount)SqmFunctionDescriptorSqmFunctionRegistry. register(String registrationKey, SqmFunctionDescriptor function)Register a function descriptor by nameSqmFunctionDescriptorSqmFunctionRegistry. registerNamed(String name)Register a named descriptor by name.SqmFunctionDescriptorSqmFunctionRegistry. registerNamed(String name, BasicType returnType)Register a named descriptor by name and invariant return type.SqmFunctionDescriptorSqmFunctionRegistry. registerNoArgs(String name)Specialized registration method for registering a named descriptor for functions expecting zero arguments.SqmFunctionDescriptorSqmFunctionRegistry. registerNoArgs(String registrationKey, String name)SqmFunctionDescriptorSqmFunctionRegistry. registerNoArgs(String registrationKey, String name, BasicType returnType)SqmFunctionDescriptorSqmFunctionRegistry. registerNoArgs(String name, BasicType returnType)SqmFunctionDescriptorSqmFunctionRegistry. registerPattern(String name, String pattern)Register a pattern-based descriptor by name.SqmFunctionDescriptorSqmFunctionRegistry. registerPattern(String name, String pattern, BasicType returnType)Register a pattern-based descriptor by name and invariant return type.SqmFunctionDescriptorSqmFunctionRegistry. wrapInJdbcEscape(String name, SqmFunctionDescriptor wrapped)Methods in org.hibernate.query.sqm.function that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Stream<Map.Entry<String,SqmFunctionDescriptor>>SqmFunctionRegistry. getFunctionsByName()Useful for diagnostics - not efficient: do not use in production code.Methods in org.hibernate.query.sqm.function with parameters of type SqmFunctionDescriptor Modifier and Type Method Description SqmFunctionDescriptorSqmFunctionRegistry. register(String registrationKey, SqmFunctionDescriptor function)Register a function descriptor by nameSqmFunctionDescriptorSqmFunctionRegistry. wrapInJdbcEscape(String name, SqmFunctionDescriptor wrapped)Constructors in org.hibernate.query.sqm.function with parameters of type SqmFunctionDescriptor Constructor Description JdbcEscapeFunctionDescriptor(String name, SqmFunctionDescriptor wrapped)MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[] functions, BasicType<?> type, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes)Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template.MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[] functions, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes)Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template.SelfRenderingSqmAggregateFunction(SqmFunctionDescriptor descriptor, FunctionRenderingSupport renderingSupport, List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, ReturnableType<T> impliedResultType, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name)SelfRenderingSqmFunction(SqmFunctionDescriptor descriptor, FunctionRenderingSupport renderingSupport, List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name)SelfRenderingSqmOrderedSetAggregateFunction(SqmFunctionDescriptor descriptor, FunctionRenderingSupport renderingSupport, List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, SqmOrderByClause withinGroup, ReturnableType<T> impliedResultType, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name)SelfRenderingSqmWindowFunction(SqmFunctionDescriptor descriptor, FunctionRenderingSupport renderingSupport, List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, Boolean respectNulls, Boolean fromFirst, ReturnableType<T> impliedResultType, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name) -
Uses of SqmFunctionDescriptor in org.hibernate.query.sqm.produce.function
Methods in org.hibernate.query.sqm.produce.function that return SqmFunctionDescriptor Modifier and Type Method Description SqmFunctionDescriptorNamedFunctionDescriptorBuilder. descriptor()SqmFunctionDescriptorPatternFunctionDescriptorBuilder. descriptor()SqmFunctionDescriptorNamedFunctionDescriptorBuilder. register()SqmFunctionDescriptorPatternFunctionDescriptorBuilder. register() -
Uses of SqmFunctionDescriptor in org.hibernate.query.sqm.tree.expression
Methods in org.hibernate.query.sqm.tree.expression that return SqmFunctionDescriptor Modifier and Type Method Description SqmFunctionDescriptorSqmCoalesce. getFunctionDescriptor()SqmFunctionDescriptorSqmFunction. getFunctionDescriptor()Constructors in org.hibernate.query.sqm.tree.expression with parameters of type SqmFunctionDescriptor Constructor Description SqmFunction(String functionName, SqmFunctionDescriptor functionDescriptor, SqmExpressible<T> type, List<? extends SqmTypedNode<?>> arguments, NodeBuilder criteriaBuilder) -
Uses of SqmFunctionDescriptor in org.hibernate.spatial
Fields in org.hibernate.spatial with type parameters of type SqmFunctionDescriptor Modifier and Type Field Description protected Map<FunctionKey,SqmFunctionDescriptor>BaseSqmFunctionDescriptors. mapMethods in org.hibernate.spatial that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<FunctionKey,SqmFunctionDescriptor>BaseSqmFunctionDescriptors. asMap()Map<FunctionKey,SqmFunctionDescriptor>KeyedSqmFunctionDescriptors. asMap()Return the SqmFunctionDescriptors as map ofFunctionKeytoSqmFunctionDescriptor -
Uses of SqmFunctionDescriptor in org.hibernate.spatial.dialect.hana
Classes in org.hibernate.spatial.dialect.hana that implement SqmFunctionDescriptor Modifier and Type Class Description classHANASpatialAggregateclassHANASpatialFunction -
Uses of SqmFunctionDescriptor in org.hibernate.spatial.dialect.oracle
Classes in org.hibernate.spatial.dialect.oracle that implement SqmFunctionDescriptor Modifier and Type Class Description classOracleSpatialFunctionclassOracleSpatialSQLMMFunctionclassSDOGetGeometryTypeclassSDOMethodDescriptorclassSDORelateFunctionclassSTRelateFunctionMethods in org.hibernate.spatial.dialect.oracle that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<FunctionKey,SqmFunctionDescriptor>OracleSDOFunctionDescriptors. asMap()Map<FunctionKey,SqmFunctionDescriptor>OracleSQLMMFunctionDescriptors. asMap() -
Uses of SqmFunctionDescriptor in org.hibernate.testing.boot
Methods in org.hibernate.testing.boot that return types with arguments of type SqmFunctionDescriptor Modifier and Type Method Description Map<String,SqmFunctionDescriptor>BootstrapContextImpl. getSqlFunctions()
-