Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/11 18:58:53 (14 years ago)
Author:
cneumuel
Message:

#1233

  • created baseclass for jobs (ItemJob) which derives OperatorJobs and EngineJobs
  • created special view for OptimizerJobs which derives from a more general view
  • removed logic from domain class HiveExperiment and moved it into RefreshableHiveExperiment
  • improved ItemTreeView
  • corrected plugin dependencies
  • fixed bug in database trigger when deleting HiveExperiments
  • added delete cascade for Plugin and PluginData
  • lots of fixes
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLabServicesHiveDataAccessPlugin.cs.frame

    r5043 r6033  
    88  [Plugin("HeuristicLab.Services.Hive.DataAccess", "3.4.0.$WCREV$")]
    99  [PluginFile("HeuristicLab.Services.Hive.DataAccess-3.4.dll", PluginFileType.Assembly)]
     10  [PluginDependency("HeuristicLab.Clients.Common", "3.3")]
    1011  [PluginDependency("HeuristicLab.Common", "3.3")]
    1112  [PluginDependency("HeuristicLab.Core", "3.3")]
    1213  [PluginDependency("HeuristicLab.Persistence", "3.3")]
     14  [PluginDependency("HeuristicLab.Services.Hive.Common", "3.4")]
    1315  public class HeuristicLabServicesHiveDataAccessPlugin : PluginBase {
    1416  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Tools/prepareHiveDatabase.sql

    r6006 r6033  
    5555GO
    5656
    57 --ALTER TABLE [dbo].[Job]  DROP  CONSTRAINT [HiveExperiment_Job]
    58 --ALTER TABLE [dbo].[Job]  WITH CHECK ADD CONSTRAINT [HiveExperiment_Job] FOREIGN KEY([HiveExperimentId])
    59 --REFERENCES [dbo].[HiveExperiment] ([HiveExperimentId])
    60 --ON UPDATE CASCADE
    61 --ON DELETE CASCADE
    62 --GO
    63 
    6457ALTER TABLE dbo.Plugin ALTER COLUMN PluginId ADD ROWGUIDCOL;
    6558ALTER TABLE dbo.Plugin WITH NOCHECK ADD CONSTRAINT [DF_Plugin_PluginId] DEFAULT (newid()) FOR PluginId;
     
    6760ALTER TABLE dbo.PluginData ALTER COLUMN PluginDataId ADD ROWGUIDCOL;
    6861ALTER TABLE dbo.PluginData WITH NOCHECK ADD CONSTRAINT [DF_PluginData_PluginDataId] DEFAULT (newid()) FOR PluginDataId;
     62
     63ALTER TABLE [dbo].[PluginData]  DROP  CONSTRAINT [Plugin_PluginData]
     64ALTER TABLE [dbo].[PluginData]  WITH CHECK ADD  CONSTRAINT [Plugin_PluginData] FOREIGN KEY([PluginId])
     65REFERENCES [dbo].[Plugin] ([PluginId])
     66ON UPDATE CASCADE
     67ON DELETE CASCADE
     68GO
    6969
    7070ALTER TABLE dbo.RequiredPlugins ALTER COLUMN RequiredPluginId ADD ROWGUIDCOL;
     
    108108
    109109/* triggers */
     110USE [HeuristicLab.Hive-3.4]
     111GO
     112/****** Object:  Trigger [dbo].[tr_HiveExperimentDeleteCascade]    Script Date: 04/19/2011 16:31:53 ******/
    110113SET ANSI_NULLS ON
    111114GO
     
    114117-- =============================================
    115118-- Author:    cneumuel
    116 -- Create date: 11.04.2011
     119-- Create date: 19.04.2011
    117120-- Description: Deletes all associated jobs. This cannot be done with cascading delete,
    118121--              because the job table defines a INSTEAD OF DELETE trigger itself, which
    119122--              is not compatible with cascading deletes.
    120123-- =============================================
    121 ALTER TRIGGER [dbo].[tr_HiveExperimentDeleteCascade] ON [dbo].[HiveExperiment] INSTEAD OF DELETE AS
     124CREATE TRIGGER [dbo].[tr_HiveExperimentDeleteCascade] ON [dbo].[HiveExperiment] INSTEAD OF DELETE AS
    122125BEGIN
    123   DELETE Job FROM Job WHERE Job.HiveExperimentId = HiveExperimentId
     126  DELETE Job FROM deleted, Job WHERE deleted.HiveExperimentId = Job.HiveExperimentId
     127  DELETE HiveExperiment FROM deleted, HiveExperiment WHERE deleted.HiveExperimentId = HiveExperiment.HiveExperimentId
    124128END
     129GO
    125130
    126 SET ANSI_NULLS ON
    127 GO
    128 SET QUOTED_IDENTIFIER ON
    129 GO
    130131-- =============================================
    131132-- Author:    cneumuel
Note: See TracChangeset for help on using the changeset viewer.