Postgres Function Select Into Arraylist To Int In Java