SqmFunctionDescriptor instances.
The SqmFunctionRegistry may be configured by a org..
org.hibernate.boot.model.FunctionContributor , org.hibernate.boot.model.FunctionContributions
| Modifier and Type | Field and Description |
|---|---|
| private final CaseInsensitiveDictionary | |
| private final CaseInsensitiveDictionary | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public SqmFunctionDescriptor | |
| public Stream | |
| public Set | |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe function name (and registration key) name)Get a builder for creating and registering a name-based aggregate function descriptor using the passed name as both the registration key and underlying SQL function name |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The underlying SQL function name to use name)Get a builder for creating and registering a name-based aggregate function descriptor. |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe function name (and registration key) name)Get a builder for creating and registering a name-based function descriptor using the passed name as both the registration key and underlying SQL function name |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The underlying SQL function name to use name)Get a builder for creating and registering a name-based function descriptor. |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe function name (and registration key) name)Get a builder for creating and registering a name-based ordered set-aggregate function descriptor using the passed name as both the registration key and underlying SQL function name |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The underlying SQL function name to use name)Get a builder for creating and registering a name-based ordered set-aggregate function descriptor. |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe function name (and registration key) name)Get a builder for creating and registering a name-based window function descriptor using the passed name as both the registration key and underlying SQL function name |
| public NamedFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The underlying SQL function name to use name)Get a builder for creating and registering a name-based window function descriptor. |
| public NamedFunctionDescriptorBuilder | |
| public NamedFunctionDescriptorBuilder | |
| public void | overlay(SqmFunctionRegistry registryToOverly)
Overlay the functions registered here on top of the incoming registry, potentially overriding its registrations |
| public PatternFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The pattern defining the underlying function call pattern)Get a builder for creating and registering a pattern-based aggregate function descriptor. |
| public PatternFunctionDescriptorBuilder | Returns: The builderThe name under which the descriptor will get registered registrationKey, String The pattern defining the underlying function call pattern)Get a builder for creating and registering a pattern-based function descriptor. |
| public SqmFunctionDescriptor | register(String registrationKey, SqmFunctionDescriptor function)
Register a function descriptor by name |
| public void | |
| public MultipatternSqmFunctionDescriptor | registerBinaryTernaryPattern(String name, BasicType<?> type, String pattern2, String pattern3, FunctionParameterType parameterType1, FunctionParameterType parameterType2, FunctionParameterType parameterType3, TypeConfiguration typeConfiguration)
Register a binary/ternary function. |
| public SqmFunctionDescriptor | registerNamed(String
The function name (and registration key) name)Register a named descriptor by name. |
| public SqmFunctionDescriptor | registerNamed(String
The function name (and registration key) name, BasicType<T> returnType)Register a named descriptor by name and invariant return type. |
| public SqmFunctionDescriptor | registerNoArgs(String
The function name (and registration key) name)Specialized registration method for registering a named descriptor for functions expecting zero arguments. |
| public SqmFunctionDescriptor | |
| public SqmFunctionDescriptor | |
| public SqmFunctionDescriptor | |
| public MultipatternSqmFunctionDescriptor | registerNullaryUnaryPattern(String name, BasicType<T> type, String pattern0, String pattern1, FunctionParameterType parameterType, TypeConfiguration typeConfiguration)
Register a nullary/unary function. |
| public SqmFunctionDescriptor | |
| public SqmFunctionDescriptor | registerPattern(String name, String pattern, BasicType<T> returnType)
Register a pattern-based descriptor by name and invariant return type. |
| private MultipatternSqmFunctionDescriptor | registerPatterns(String name, FunctionParameterType[] parameterTypes, TypeConfiguration typeConfiguration, String... patterns)
|
| private MultipatternSqmFunctionDescriptor | registerPatterns(String name, BasicType<?> type, FunctionParameterType[] parameterTypes, TypeConfiguration typeConfiguration, String... patterns)
|
| public MultipatternSqmFunctionDescriptor | registerTernaryQuaternaryPattern(String name, BasicType<?> type, String pattern3, String pattern4, FunctionParameterType parameterType1, FunctionParameterType parameterType2, FunctionParameterType parameterType3, FunctionParameterType parameterType4, TypeConfiguration typeConfiguration)
Register a ternary/quaternary function. |
| public MultipatternSqmFunctionDescriptor | registerUnaryBinaryPattern(String name, String pattern1, String pattern2, FunctionParameterType parameterType1, FunctionParameterType parameterType2, TypeConfiguration typeConfiguration)
Register a unary/binary function. |
| public MultipatternSqmFunctionDescriptor | registerUnaryBinaryPattern(String name, BasicType<?> type, String pattern1, String pattern2, FunctionParameterType parameterType1, FunctionParameterType parameterType2, TypeConfiguration typeConfiguration)
Register a unary/binary function. |
| public SqmFunctionDescriptor |
| alternateKeyMap | back to summary |
|---|---|
| private final CaseInsensitiveDictionary<String> alternateKeyMap | |
| functionMap | back to summary |
|---|---|
| private final CaseInsensitiveDictionary<SqmFunctionDescriptor> functionMap | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| SqmFunctionRegistry | back to summary |
|---|---|
| public SqmFunctionRegistry() | |
| close | back to summary |
|---|---|
| public void close() | |
| findFunctionDescriptor | back to summary |
|---|---|
| public SqmFunctionDescriptor findFunctionDescriptor(String functionName) Find a SqmFunctionTemplate by name. Returns | |
| getFunctionsByName | back to summary |
|---|---|
| public Stream Useful for diagnostics - not efficient: do not use in production code. | |
| getValidFunctionKeys | back to summary |
|---|---|
| public Set | |
| namedAggregateDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedAggregateDescriptorBuilder(String name) Get a builder for creating and registering a name-based aggregate function descriptor using the passed name as both the registration key and underlying SQL function name
| |
| namedAggregateDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedAggregateDescriptorBuilder(String registrationKey, String name) Get a builder for creating and registering a name-based aggregate function descriptor.
| |
| namedDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedDescriptorBuilder(String name) Get a builder for creating and registering a name-based function descriptor using the passed name as both the registration key and underlying SQL function name
| |
| namedDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedDescriptorBuilder(String registrationKey, String name) Get a builder for creating and registering a name-based function descriptor.
| |
| namedOrderedSetAggregateDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedOrderedSetAggregateDescriptorBuilder(String name) Get a builder for creating and registering a name-based ordered set-aggregate function descriptor using the passed name as both the registration key and underlying SQL function name
| |
| namedOrderedSetAggregateDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedOrderedSetAggregateDescriptorBuilder(String registrationKey, String name) Get a builder for creating and registering a name-based ordered set-aggregate function descriptor.
| |
| namedWindowDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedWindowDescriptorBuilder(String name) Get a builder for creating and registering a name-based window function descriptor using the passed name as both the registration key and underlying SQL function name
| |
| namedWindowDescriptorBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder namedWindowDescriptorBuilder(String registrationKey, String name) Get a builder for creating and registering a name-based window function descriptor.
| |
| noArgsBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder noArgsBuilder(String name) | |
| noArgsBuilder | back to summary |
|---|---|
| public NamedFunctionDescriptorBuilder noArgsBuilder(String registrationKey, String name) | |
| overlay | back to summary |
|---|---|
| public void overlay(SqmFunctionRegistry registryToOverly) Overlay the functions registered here on top of the incoming registry, potentially overriding its registrations | |
| patternAggregateDescriptorBuilder | back to summary |
|---|---|
| public PatternFunctionDescriptorBuilder patternAggregateDescriptorBuilder(String registrationKey, String pattern) Get a builder for creating and registering a pattern-based aggregate function descriptor.
| |
| patternDescriptorBuilder | back to summary |
|---|---|
| public PatternFunctionDescriptorBuilder patternDescriptorBuilder(String registrationKey, String pattern) Get a builder for creating and registering a pattern-based function descriptor.
| |
| register | back to summary |
|---|---|
| public SqmFunctionDescriptor register(String registrationKey, SqmFunctionDescriptor function) Register a function descriptor by name | |
| registerAlternateKey | back to summary |
|---|---|
| public void registerAlternateKey(String alternateKey, String mappedKey) | |
| registerBinaryTernaryPattern | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor registerBinaryTernaryPattern(String name, BasicType<?> type, String pattern2, String pattern3, FunctionParameterType parameterType1, FunctionParameterType parameterType2, FunctionParameterType parameterType3, TypeConfiguration typeConfiguration) Register a binary/ternary function. i.e. a function which accepts 2-3 arguments. | |
| registerNamed | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNamed(String name) Register a named descriptor by name. Shortcut for building a descriptor via
| |
| registerNamed | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNamed(String name, BasicType<T> returnType) Register a named descriptor by name and invariant return type. Shortcut for building
a descriptor via
| |
| registerNoArgs | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNoArgs(String name) Specialized registration method for registering a named descriptor for functions
expecting zero arguments. Short-cut for building a named descriptor via
| |
| registerNoArgs | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNoArgs(String registrationKey, String name) | |
| registerNoArgs | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNoArgs(String name, BasicType<T> returnType) | |
| registerNoArgs | back to summary |
|---|---|
| public SqmFunctionDescriptor registerNoArgs(String registrationKey, String name, BasicType<T> returnType) | |
| registerNullaryUnaryPattern | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor registerNullaryUnaryPattern(String name, BasicType<T> type, String pattern0, String pattern1, FunctionParameterType parameterType, TypeConfiguration typeConfiguration) Register a nullary/unary function. i.e. a function which accepts 0-1 arguments. | |
| registerPattern | back to summary |
|---|---|
| public SqmFunctionDescriptor registerPattern(String name, String pattern) Register a pattern-based descriptor by name. Shortcut for building the descriptor
via | |
| registerPattern | back to summary |
|---|---|
| public SqmFunctionDescriptor registerPattern(String name, String pattern, BasicType<T> returnType) Register a pattern-based descriptor by name and invariant return type. Shortcut for building the descriptor
via | |
| registerPatterns | back to summary |
|---|---|
| private MultipatternSqmFunctionDescriptor registerPatterns(String name, FunctionParameterType[] parameterTypes, TypeConfiguration typeConfiguration, String... patterns) | |
| registerPatterns | back to summary |
|---|---|
| private MultipatternSqmFunctionDescriptor registerPatterns(String name, BasicType<?> type, FunctionParameterType[] parameterTypes, TypeConfiguration typeConfiguration, String... patterns) | |
| registerTernaryQuaternaryPattern | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor registerTernaryQuaternaryPattern(String name, BasicType<?> type, String pattern3, String pattern4, FunctionParameterType parameterType1, FunctionParameterType parameterType2, FunctionParameterType parameterType3, FunctionParameterType parameterType4, TypeConfiguration typeConfiguration) Register a ternary/quaternary function. i.e. a function which accepts 3-4 arguments. | |
| registerUnaryBinaryPattern | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor registerUnaryBinaryPattern(String name, String pattern1, String pattern2, FunctionParameterType parameterType1, FunctionParameterType parameterType2, TypeConfiguration typeConfiguration) Register a unary/binary function. i.e. a function which accepts 1-2 arguments. | |
| registerUnaryBinaryPattern | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor registerUnaryBinaryPattern(String name, BasicType<?> type, String pattern1, String pattern2, FunctionParameterType parameterType1, FunctionParameterType parameterType2, TypeConfiguration typeConfiguration) Register a unary/binary function. i.e. a function which accepts 1-2 arguments. | |
| wrapInJdbcEscape | back to summary |
|---|---|
| public SqmFunctionDescriptor wrapInJdbcEscape(String name, SqmFunctionDescriptor wrapped) | |