Add a method to get object IDs for a particular table

@benbjohnson Add a method to get object IDs for a particular table.