There is a Postgresql database with the following function cap
CREATE OR REPLACE FUNCTION net_train(terms text[], answer integer)
RETURNS void AS
$BODY$begin
--this code is stub
end;$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION net_train(text[], integer)
OWNER TO postgres;
It is necessary to call this function from java program. Tell me how to do it (preferably with sample code).