UseGeneratedKeys only works in insert statements; useGeneratedKeys defaults to false
When useGeneratedKeys is true, the increment ID is returned if the inserted table ID is an increment column primary key.
After the insert, we can get the increment id directly from the object, and return the same value as the number of insert rows.