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

    if (store == null) {
      throw new IdGenerationFailedException("No IdGenerator for: " + clazz);
    }
    return store.nextId();
  }