Example usage for Java org.springframework.jdbc.object SqlFunction fields, constructors, methods, implement or subclass
The text is from its open source code.
SqlFunction(DataSource ds, String sql, int[] types, Class Create a new SqlFunction object with SQL, parameters and a result type. | |
SqlFunction(DataSource ds, String sql) Create a new SqlFunction object with SQL, but without parameters. | |
SqlFunction() Constructor to allow use as a JavaBean. | |
SqlFunction(DataSource ds, String sql, int[] types) Create a new SqlFunction object with SQL and parameters. |
int | run() Convenient method to run the function without arguments. |
int | run(int parameter) Convenient method to run the function with a single int argument. |
int | run(Object... parameters) Analogous to the SqlQuery.execute([]) method. |
Object | runGeneric(int parameter) Convenient method to run the function with a single int argument. |
Object | runGeneric(Object[] parameters) Analogous to the SqlQuery.findObject(Object[]) method. |
void | setResultType(Class Specify the type that the result object is required to match. |