Here is an example to call stored function in Mirage:
// Creates parameter object which give to stored function GetCountParam param = new GetCountParam(); param.deptId = 1; ... // Calls a stored function and get a result value. Long count = sqlManager.call(Long.class, "get_emp_count", param);
Fields of the parameter class has annotation such as @In, @Out, @InOut and @ResultSet. These annotations mean parameter type.
If the function returns ResultSet, use SqlManager#callForList() instead of SqlManager#call().
Please wait for the next release of Mirage!