java.lang.Object | |
↳ | org.hibernate.dialect.function.VarArgsSQLFunction |
Support for slightly more general templating than StandardSQLFunction
, with an unlimited number of arguments.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a VarArgsSQLFunction instance with a 'static' return type.
| |||||||||||
Constructs a VarArgsSQLFunction instance with a 'dynamic' return type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The return type of the function.
| |||||||||||
Does this function have any arguments?
Always returns true here.
| |||||||||||
If there are no arguments, are parentheses required?
Always returns true here.
| |||||||||||
Render the function call as SQL fragment.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called from
render(Type, List, SessionFactoryImplementor) to allow applying a change or transformation
to each individual argument. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.dialect.function.SQLFunction
|
Constructs a VarArgsSQLFunction instance with a 'static' return type. An example of a 'static' return type would be something like an UPPER function which is always returning a SQL VARCHAR and thus a string type.
registeredType | The return type. |
---|---|
begin | The beginning of the function templating. |
sep | The separator for each individual function argument. |
end | The end of the function templating. |
Constructs a VarArgsSQLFunction instance with a 'dynamic' return type. For a dynamic return type, the type of the arguments are used to resolve the type. An example of a function with a 'dynamic' return would be MAX or MIN which return a double or an integer etc based on the types of the arguments.
begin | The beginning of the function templating. |
---|---|
sep | The separator for each individual function argument. |
end | The end of the function templating. |
The return type of the function. May be either a concrete type which is preset, or variable depending upon the type of the first function argument.
Note, the 'firstArgumentType' parameter should match the one passed intorender(Type, List, SessionFactoryImplementor)
firstArgumentType | The type of the first argument |
---|---|
mapping | The mapping source. |
QueryException |
---|
Does this function have any arguments?
Always returns true here.If there are no arguments, are parentheses required?
Always returns true here.Render the function call as SQL fragment.
Note, the 'firstArgumentType' parameter should match the one passed intogetReturnType(Type, Mapping)
firstArgumentType | The type of the first argument |
---|---|
arguments | The function arguments |
factory | The SessionFactory |
Called from render(Type, List, SessionFactoryImplementor)
to allow applying a change or transformation
to each individual argument.
argument | The argument being processed. |
---|