Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/17/09 13:11:13 (15 years ago)
Author:
svonolfe
Message:

Updated PluginInfoAdapter, added ER model (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/JobAdapter.cs

    r1580 r1592  
    309309        new List<Guid>();
    310310      foreach (HivePluginInfo pluginInfo in obj.PluginsNeeded) {
     311        //first check if pluginInfo already exists in the db
     312        HivePluginInfo found = PluginInfoAdapter.GetByNameVersionBuilddate(
     313          pluginInfo.Name, pluginInfo.Version, pluginInfo.BuildDate);
     314        if (found != null) {
     315          pluginInfo.Id = found.Id;
     316        }
     317
    311318        PluginInfoAdapter.Update(pluginInfo);
    312319        relationships.Add(pluginInfo.Id);
     
    335342            new List<Guid>());
    336343
     344          //delete orphaned pluginInfos
     345          ICollection<HivePluginInfo> orphanedPluginInfos =
     346             PluginInfoAdapter.GetOrphanedPluginInfos();
     347          foreach(HivePluginInfo orphanedPlugin in orphanedPluginInfos) {
     348            PluginInfoAdapter.Delete(orphanedPlugin);
     349          }
     350
    337351          return base.doDelete(job);
    338352        }
Note: See TracChangeset for help on using the changeset viewer.