Cache JDBC get row id of the table while inserting the data