Class SpatialFunctionContributor
- java.lang.Object
-
- org.hibernate.spatial.contributor.SpatialFunctionContributor
-
- All Implemented Interfaces:
FunctionContributor
public class SpatialFunctionContributor extends Object implements FunctionContributor
-
-
Constructor Summary
Constructors Constructor Description SpatialFunctionContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contributeFunctions(FunctionContributions functionContributions)
Contribute functionsint
ordinal()
Determines order in which the contributions will be applied (lowest ordinal first).
-
-
-
Method Detail
-
contributeFunctions
public void contributeFunctions(FunctionContributions functionContributions)
Description copied from interface:FunctionContributor
Contribute functions- Specified by:
contributeFunctions
in interfaceFunctionContributor
- Parameters:
functionContributions
- The target for the contributions
-
ordinal
public int ordinal()
Description copied from interface:FunctionContributor
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.- Specified by:
ordinal
in interfaceFunctionContributor
- Returns:
- the ordinal for this FunctionContributor
-
-