예제 #1
0
 private CollectedStuff[] reconstitute(Object[] records) {
   int totalRecords = records.length;
   CollectedStuff[] result = new CollectedStuff[totalRecords];
   for (int i = 0; i < totalRecords; i++) {
     result[i] = descriptor.reconstitute(records[i]);
   }
   return result;
 }
예제 #2
0
 private void insertIntoRepository(CollectedEvent event) {
   Object collectedStuffObject =
       descriptor.describe(event.source().id(), event.description(), event.timeStamp());
   storage.save(collectedStuffObject, descriptor, descriptor);
 }