예제 #1
0
 @Override
 public final Object load(EntityInfo entityInfo) {
   long startTime = 0;
   if (takeTimings) {
     startTime = System.nanoTime();
   }
   Object loadedObject = executeLoad(entityInfo);
   if (takeTimings) {
     statisticsImplementor.objectLoadExecuted(1, System.nanoTime() - startTime);
   }
   return loadedObject;
 }
예제 #2
0
  @Override
  public List load(EntityInfo... entityInfos) {
    long startTime = 0;
    if (takeTimings) {
      startTime = System.nanoTime();
    }

    List loadedObjects = executeLoad(entityInfos);

    if (takeTimings) {
      statisticsImplementor.objectLoadExecuted(loadedObjects.size(), System.nanoTime() - startTime);
    }
    return loadedObjects;
  }