As the specification of Oracle JDBC driver that is being used in Oracle Adapter, it is not possible to use data type (BOOLEAN, RECORD) specific to PL/SQL as the return value.
When you use Oracle stored functions, set the type other than the data type specific to PL/SQL such as VARCHAR2.