示例#1
0
  private void updateFullDatabaseVersionCache() {
    fullDatabaseVersionCache = new DatabaseVersion();

    for (DatabaseVersion databaseVersion : databaseVersions) {
      updateFullDatabaseVersionCache(databaseVersion);
    }
  }
示例#2
0
  public void removeDatabaseVersion(DatabaseVersion databaseVersion) {
    databaseVersions.remove(databaseVersion);

    // Populate caches
    // WARNING: Do NOT reorder, order important!!
    updateFullDatabaseVersionCache();
    updateDatabaseVersionIdCache();
    updateFilenameHistoryCache();
    updateContentChecksumCache();
  }