Examples of db4oConfig()


Examples of com.db4o.defragment.DefragmentConfig.db4oConfig()

  }

  @SuppressWarnings("unused")
  private void defragment(Configuration config) {
    DefragmentConfig defragConfig = new DefragmentConfig(getDBFilePath());
    defragConfig.db4oConfig(config);
    try {
      Defragment.defrag(defragConfig);
    } catch (IOException e) {
      throw new PersistenceException("Error creating database", e);
    }
View Full Code Here

Examples of com.db4o.defragment.DefragmentConfig.db4oConfig()

    /* - It is buggy and causes exceptions often as of db4o 7.4.63.11890
    /* - Freetalk has always had proper database upgrade code (function upgradeDB()) and does not rely on automatic schema evolution.
    /*   If we need to get rid of certain objects we should do it in the database upgrade code, */
    // config.storedClassFilter(new AvailableClassFilter());
   
    config.db4oConfig(getNewDatabaseConfiguration());
   
    try {
      Defragment.defrag(config);
    } catch (Exception e) {
      Logger.error(this, "Defragment failed", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.