The easiest way to call a function from Spring is using SELECT. For example, having a function HAS_PANEL_FLAG_OK with two parameters and returning an integer, the function call looks like:
SELECT panel_id,
HAS_PANEL_FLAG_OK('17584', panel_id) AS flag
FROM panels
WHERE