Top Description Methods
org.hibernate.boot.model

public Interface FunctionContributor

Known Direct Implementers
org.hibernate.dialect.Dialect
Annotations
@JavaServiceLoadable
Imports
org.hibernate.service.JavaServiceLoadable

On object that contributes custom HQL functions, eventually to a org.hibernate.query.sqm.function.SqmFunctionRegistry, via an instance of FunctionContributions.
Author
Karel Maesen
See Also
org.hibernate.query.sqm.function.SqmFunctionRegistry

Method Summary

Modifier and TypeMethod and Description
public void
contributeFunctions(FunctionContributions
The target for the contributions
functionContributions
)

Contribute functions

public default int

Returns:

the ordinal for this FunctionContributor
ordinal
()

Determines order in which the contributions will be applied (lowest ordinal first).

Method Detail

contributeFunctionsback to summary
public void contributeFunctions(FunctionContributions functionContributions)

Contribute functions

Parameters
functionContributions:FunctionContributions

The target for the contributions

ordinalback 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 "max", that will override Hibernate's standard function of that name.

Returns:int

the ordinal for this FunctionContributor