spring-framework / org.springframework.jdbc.object / SqlFunction / runGeneric

runGeneric

@Nullable open fun runGeneric(): Any

Convenient method to run the function without arguments, returning the value as an object.

Return
the value of the function

@Nullable open fun runGeneric(parameter: Int): Any

Convenient method to run the function with a single int argument.

Parameters

parameter - single int parameter

Return
the value of the function as an Object

@Nullable open fun runGeneric(parameters: Array<Any>): Any

Analogous to the SqlQuery.findObject(Object[]) method. This is a generic method to execute a query, taken a number of arguments.

Parameters

parameters - array of parameters. These will be objects or object wrapper types for primitives.

Return
the value of the function, as an Object

See Also
#execute(Object[])