public long getHighestPossibleIdInUse(Class<?> clazz) { Store store = idGenerators.get(clazz); if (store == null) { throw new IdGenerationFailedException("No IdGenerator for: " + clazz); } return store.getHighestPossibleIdInUse(); }
public long getNumberOfIdsInUse(Class<?> clazz) { Store store = idGenerators.get(clazz); if (store == null) { throw new IdGenerationFailedException("No IdGenerator for: " + clazz); } return store.getNumberOfIdsInUse(); }
public long nextId(Class<?> clazz) { Store store = idGenerators.get(clazz); if (store == null) { throw new IdGenerationFailedException("No IdGenerator for: " + clazz); } return store.nextId(); }