Postgres Array Length Function In Java