Postgres Aggregate Into Arraylist To Array In Java