Package org.hibernate.query.sqm.function
package org.hibernate.query.sqm.function
An SPI for defining, registering, and rendering functions in HQL. The
SqmFunctionRegistry
maintains
a list of function descriptors. User-written code may contribute function descriptors
by calling Configuration.addSqlFunction(java.lang.String, org.hibernate.query.sqm.function.SqmFunctionDescriptor)
or by
registering a FunctionContributor
.- See Also:
-
SqmFunctionDescriptor
SqmFunctionRegistry
Configuration.addSqlFunction(java.lang.String, org.hibernate.query.sqm.function.SqmFunctionDescriptor)
MetadataBuilder.applySqlFunction(java.lang.String, org.hibernate.query.sqm.function.SqmFunctionDescriptor)
FunctionContributor
QueryEngine.getSqmFunctionRegistry()
-
ClassDescriptionThe kind of function e.g.Support for
SqmFunctionDescriptor
s that ultimately want to perform SQL rendering themselves.Acts as a wrapper to anotherSqmFunctionDescriptor
, rendering the standard JDBC escape sequence{fn f(x, y)}
around the invocation syntax generated by its delegate.Support for overloaded functions defined in terms of a list of patterns, one for each possible function arity.Provides a standard implementation that supports the majority of the HQL functions that are translated to SQL.Provides a standard implementation that supports the majority of the HQL functions that are translated to SQL.Support for HQL functions that have different representations in different SQL dialects, where the difference can be handled via a pattern template.Representation of an aggregate function call in the SQL AST for impls that know how to render themselves.Representation of a function call in the SQL AST for impls that know how to render themselves.Representation of an aggregate function call in the SQL AST for impls that know how to render themselves.Representation of a window function call in the SQL AST for impls that know how to render themselves.Support forSqmSetReturningFunctionDescriptor
s that ultimately want to perform SQL rendering themselves.A factory for SQM nodes representing invocations of a certain named function.Defines a registry forSqmFunctionDescriptor
instances.A factory for SQM nodes representing invocations of a certain named set-returning function.