org.hibernate.query.sqm.function.SqmFunctionRegistry , via an
instance of FunctionContributions.
FunctionContributor is by
making it discoverable via the Java java.util.ServiceLoader
facility.
FunctionContributor may be programmatically supplied to
org.hibernate.cfg.Configuration#registerFunctionContributor(FunctionContributor)
or even org.hibernate.boot.MetadataBuilder#applyFunctions(FunctionContributor) .
org.hibernate.query.sqm.function.SqmFunctionRegistry
| Modifier and Type | Method and Description |
|---|---|
| public void | contributeFunctions(FunctionContributions
The target for the contributions functionContributions)Contribute functions |
| public default int | Returns: the ordinal for this FunctionContributorDetermines order in which the contributions will be applied (lowest ordinal first). |
| contributeFunctions | back to summary |
|---|---|
| public void contributeFunctions(FunctionContributions functionContributions) Contribute functions
| |
| ordinal | back to summary |
|---|---|
| public default int ordinal() Determines order in which the contributions will be applied (lowest ordinal first). The range 0-500 is reserved for Hibernate, range 500-1000 for libraries and 1000-Integer.MAX_VALUE for user-defined FunctionContributors.
Contributions from higher precedence contributors (higher numbers) effectively override
contributions from lower precedence. E.g. if a contributor with precedence 1000 contributes a
function named
| |