@@ -0,0 +1,1055 @@
+/**%0A * @license%0A * Copyright 2018 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0Apackage foam.dao;%0A%0Aimport foam.core.ClassInfo;%0Aimport foam.lib.json.Outputter;%0Aimport foam.lib.json.OutputterMode;%0Aimport java.io.*;%0A%0Apublic class VersionJDAO%0A  extends AbstractJDAO%0A%7B%0A  protected Outputter outputter_ = new Outputter(OutputterMode.STORAGE);%0A%0A  public VersionJDAO(foam.core.X x, ClassInfo classInfo, String filename) %7B%0A    this(x, new MapDAO(classInfo), filename);%0A  %7D%0A%0A  public VersionJDAO(foam.core.X x, DAO delegate, String filename) %7B%0A    super(x, delegate, filename + %22.1%22);%0A    try %7B%0A      int index = 0;%0A      File file = null;%0A      while ( true ) %7B%0A        file = getX().get(foam.nanos.fs.Storage.class).get(filename + %22.%22 + index);%0A        if ( ! file.exists() ) break;%0A        loadJournal(file);%0A        index++;%0A      %7D %0A    %7D catch ( IOException e ) %7B%0A      logger_.error(e);%0A      throw new RuntimeException(e);%0A    %7D%0A  %7D%0A%0A  @Override%0A  protected Outputter getOutputter() %7B%0A    return outputter_;%0A  %7D%0A%7D

create VersionJDAO.java