Add a method to get object IDs for a particular table

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