Postgres Function Select Into Arraylist Java