#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.239 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace HeuristicLab.Services.Hive.DataAccess { using System.Data.Linq; using System.Data.Linq.Mapping; using System.Data; using System.Collections.Generic; using System.Reflection; using System.Linq; using System.Linq.Expressions; using System.ComponentModel; using System; [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.Hive")] public partial class HiveDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void InsertAssignedResource(AssignedResource instance); partial void UpdateAssignedResource(AssignedResource instance); partial void DeleteAssignedResource(AssignedResource instance); partial void InsertPlugin(Plugin instance); partial void UpdatePlugin(Plugin instance); partial void DeletePlugin(Plugin instance); partial void InsertRequiredPlugin(RequiredPlugin instance); partial void UpdateRequiredPlugin(RequiredPlugin instance); partial void DeleteRequiredPlugin(RequiredPlugin instance); partial void InsertResource(Resource instance); partial void UpdateResource(Resource instance); partial void DeleteResource(Resource instance); partial void InsertTask(Task instance); partial void UpdateTask(Task instance); partial void DeleteTask(Task instance); partial void InsertDowntime(Downtime instance); partial void UpdateDowntime(Downtime instance); partial void DeleteDowntime(Downtime instance); partial void InsertJob(Job instance); partial void UpdateJob(Job instance); partial void DeleteJob(Job instance); partial void InsertTaskData(TaskData instance); partial void UpdateTaskData(TaskData instance); partial void DeleteTaskData(TaskData instance); partial void InsertPluginData(PluginData instance); partial void UpdatePluginData(PluginData instance); partial void DeletePluginData(PluginData instance); partial void InsertStateLog(StateLog instance); partial void UpdateStateLog(StateLog instance); partial void DeleteStateLog(StateLog instance); partial void InsertJobPermission(JobPermission instance); partial void UpdateJobPermission(JobPermission instance); partial void DeleteJobPermission(JobPermission instance); partial void InsertLifecycle(Lifecycle instance); partial void UpdateLifecycle(Lifecycle instance); partial void DeleteLifecycle(Lifecycle instance); partial void InsertDeletedJobStatistics(DeletedJobStatistics instance); partial void UpdateDeletedJobStatistics(DeletedJobStatistics instance); partial void DeleteDeletedJobStatistics(DeletedJobStatistics instance); partial void InsertUserStatistics(UserStatistics instance); partial void UpdateUserStatistics(UserStatistics instance); partial void DeleteUserStatistics(UserStatistics instance); partial void InsertSlaveStatistics(SlaveStatistics instance); partial void UpdateSlaveStatistics(SlaveStatistics instance); partial void DeleteSlaveStatistics(SlaveStatistics instance); partial void InsertStatistics(Statistics instance); partial void UpdateStatistics(Statistics instance); partial void DeleteStatistics(Statistics instance); #endregion public HiveDataContext() : base(global::HeuristicLab.Services.Hive.DataAccess.Settings.Default.HeuristicLab_Hive_LinqConnectionString, mappingSource) { OnCreated(); } public HiveDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public HiveDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public HiveDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public HiveDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table AssignedResources { get { return this.GetTable(); } } public System.Data.Linq.Table Plugins { get { return this.GetTable(); } } public System.Data.Linq.Table RequiredPlugins { get { return this.GetTable(); } } public System.Data.Linq.Table Resources { get { return this.GetTable(); } } public System.Data.Linq.Table Tasks { get { return this.GetTable(); } } public System.Data.Linq.Table Downtimes { get { return this.GetTable(); } } public System.Data.Linq.Table Jobs { get { return this.GetTable(); } } public System.Data.Linq.Table TaskDatas { get { return this.GetTable(); } } public System.Data.Linq.Table PluginDatas { get { return this.GetTable(); } } public System.Data.Linq.Table StateLogs { get { return this.GetTable(); } } public System.Data.Linq.Table JobPermissions { get { return this.GetTable(); } } public System.Data.Linq.Table Lifecycles { get { return this.GetTable(); } } public System.Data.Linq.Table DeletedJobStatistics { get { return this.GetTable(); } } public System.Data.Linq.Table UserStatistics { get { return this.GetTable(); } } public System.Data.Linq.Table SlaveStatistics { get { return this.GetTable(); } } public System.Data.Linq.Table Statistics { get { return this.GetTable(); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AssignedResources")] public partial class AssignedResource : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _ResourceId; private System.Guid _JobId; private EntityRef _Resource; private EntityRef _Job; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnResourceIdChanging(System.Guid value); partial void OnResourceIdChanged(); partial void OnTaskIdChanging(System.Guid value); partial void OnTaskIdChanged(); #endregion public AssignedResource() { this._Resource = default(EntityRef); this._Job = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid ResourceId { get { return this._ResourceId; } set { if ((this._ResourceId != value)) { if (this._Resource.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnResourceIdChanging(value); this.SendPropertyChanging(); this._ResourceId = value; this.SendPropertyChanged("ResourceId"); this.OnResourceIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid TaskId { get { return this._JobId; } set { if ((this._JobId != value)) { if (this._Job.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._JobId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedResource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteRule="CASCADE")] public Resource Resource { get { return this._Resource.Entity; } set { Resource previousValue = this._Resource.Entity; if (((previousValue != value) || (this._Resource.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Resource.Entity = null; previousValue.AssignedResources.Remove(this); } this._Resource.Entity = value; if ((value != null)) { value.AssignedResources.Add(this); this._ResourceId = value.ResourceId; } else { this._ResourceId = default(System.Guid); } this.SendPropertyChanged("Resource"); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_AssignedResource", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true, DeleteRule="CASCADE")] public Task Task { get { return this._Job.Entity; } set { Task previousValue = this._Job.Entity; if (((previousValue != value) || (this._Job.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Job.Entity = null; previousValue.AssignedResources.Remove(this); } this._Job.Entity = value; if ((value != null)) { value.AssignedResources.Add(this); this._JobId = value.TaskId; } else { this._JobId = default(System.Guid); } this.SendPropertyChanged("Task"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Plugin")] public partial class Plugin : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _PluginId; private string _Name; private string _Version; private System.Guid _UserId; private System.DateTime _DateCreated; private byte[] _Hash; private EntitySet _RequiredPlugins; private EntitySet _PluginData; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnPluginIdChanging(System.Guid value); partial void OnPluginIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnVersionChanging(string value); partial void OnVersionChanged(); partial void OnUserIdChanging(System.Guid value); partial void OnUserIdChanged(); partial void OnDateCreatedChanging(System.DateTime value); partial void OnDateCreatedChanged(); partial void OnHashChanging(byte[] value); partial void OnHashChanged(); #endregion public Plugin() { this._RequiredPlugins = new EntitySet(new Action(this.attach_RequiredPlugins), new Action(this.detach_RequiredPlugins)); this._PluginData = new EntitySet(new Action(this.attach_PluginData), new Action(this.detach_PluginData)); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid PluginId { get { return this._PluginId; } set { if ((this._PluginId != value)) { this.OnPluginIdChanging(value); this.SendPropertyChanging(); this._PluginId = value; this.SendPropertyChanged("PluginId"); this.OnPluginIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="VarChar(MAX)", CanBeNull=false)] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnNameChanging(value); this.SendPropertyChanging(); this._Name = value; this.SendPropertyChanged("Name"); this.OnNameChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Version", DbType="VarChar(MAX)", CanBeNull=false)] public string Version { get { return this._Version; } set { if ((this._Version != value)) { this.OnVersionChanging(value); this.SendPropertyChanging(); this._Version = value; this.SendPropertyChanged("Version"); this.OnVersionChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")] public System.Guid UserId { get { return this._UserId; } set { if ((this._UserId != value)) { this.OnUserIdChanging(value); this.SendPropertyChanging(); this._UserId = value; this.SendPropertyChanged("UserId"); this.OnUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime")] public System.DateTime DateCreated { get { return this._DateCreated; } set { if ((this._DateCreated != value)) { this.OnDateCreatedChanging(value); this.SendPropertyChanging(); this._DateCreated = value; this.SendPropertyChanged("DateCreated"); this.OnDateCreatedChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hash", DbType="VarBinary(20) NOT NULL", CanBeNull=false)] public byte[] Hash { get { return this._Hash; } set { if ((this._Hash != value)) { this.OnHashChanging(value); this.SendPropertyChanging(); this._Hash = value; this.SendPropertyChanged("Hash"); this.OnHashChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_RequiredPlugin", Storage="_RequiredPlugins", ThisKey="PluginId", OtherKey="PluginId")] public EntitySet RequiredPlugins { get { return this._RequiredPlugins; } set { this._RequiredPlugins.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginData", Storage="_PluginData", ThisKey="PluginId", OtherKey="PluginId")] public EntitySet PluginData { get { return this._PluginData; } set { this._PluginData.Assign(value); } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void attach_RequiredPlugins(RequiredPlugin entity) { this.SendPropertyChanging(); entity.Plugin = this; } private void detach_RequiredPlugins(RequiredPlugin entity) { this.SendPropertyChanging(); entity.Plugin = null; } private void attach_PluginData(PluginData entity) { this.SendPropertyChanging(); entity.Plugin = this; } private void detach_PluginData(PluginData entity) { this.SendPropertyChanging(); entity.Plugin = null; } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.RequiredPlugins")] public partial class RequiredPlugin : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _RequiredPluginId; private System.Guid _JobId; private System.Guid _PluginId; private EntityRef _PluginInfo; private EntityRef _Job; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnRequiredPluginIdChanging(System.Guid value); partial void OnRequiredPluginIdChanged(); partial void OnTaskIdChanging(System.Guid value); partial void OnTaskIdChanged(); partial void OnPluginIdChanging(System.Guid value); partial void OnPluginIdChanged(); #endregion public RequiredPlugin() { this._PluginInfo = default(EntityRef); this._Job = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequiredPluginId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)] public System.Guid RequiredPluginId { get { return this._RequiredPluginId; } set { if ((this._RequiredPluginId != value)) { this.OnRequiredPluginIdChanging(value); this.SendPropertyChanging(); this._RequiredPluginId = value; this.SendPropertyChanged("RequiredPluginId"); this.OnRequiredPluginIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL")] public System.Guid TaskId { get { return this._JobId; } set { if ((this._JobId != value)) { if (this._Job.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._JobId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", DbType="UniqueIdentifier NOT NULL")] public System.Guid PluginId { get { return this._PluginId; } set { if ((this._PluginId != value)) { if (this._PluginInfo.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnPluginIdChanging(value); this.SendPropertyChanging(); this._PluginId = value; this.SendPropertyChanged("PluginId"); this.OnPluginIdChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_RequiredPlugin", Storage="_PluginInfo", ThisKey="PluginId", OtherKey="PluginId", IsForeignKey=true, DeleteRule="CASCADE")] public Plugin Plugin { get { return this._PluginInfo.Entity; } set { Plugin previousValue = this._PluginInfo.Entity; if (((previousValue != value) || (this._PluginInfo.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._PluginInfo.Entity = null; previousValue.RequiredPlugins.Remove(this); } this._PluginInfo.Entity = value; if ((value != null)) { value.RequiredPlugins.Add(this); this._PluginId = value.PluginId; } else { this._PluginId = default(System.Guid); } this.SendPropertyChanged("Plugin"); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_RequiredPlugin", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true)] public Task Task { get { return this._Job.Entity; } set { Task previousValue = this._Job.Entity; if (((previousValue != value) || (this._Job.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Job.Entity = null; previousValue.RequiredPlugins.Remove(this); } this._Job.Entity = value; if ((value != null)) { value.RequiredPlugins.Add(this); this._JobId = value.TaskId; } else { this._JobId = default(System.Guid); } this.SendPropertyChanged("Task"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Resource")] [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="RESOURCE", Type=typeof(Resource))] [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Slave", Type=typeof(Slave), IsDefault=true)] [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="GROUP", Type=typeof(SlaveGroup))] public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _ResourceId; private string _Name; private string _ResourceType; private System.Nullable _ParentResourceId; private int _HbInterval; private EntitySet _AssignedResources; private EntitySet _ChildResources; private EntitySet _UptimeCalendars; private EntitySet _StateLogs; private EntityRef _ParentResource; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnResourceIdChanging(System.Guid value); partial void OnResourceIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnResourceTypeChanging(string value); partial void OnResourceTypeChanged(); partial void OnParentResourceIdChanging(System.Nullable value); partial void OnParentResourceIdChanged(); partial void OnHbIntervalChanging(int value); partial void OnHbIntervalChanged(); #endregion public Resource() { this._AssignedResources = new EntitySet(new Action(this.attach_AssignedResources), new Action(this.detach_AssignedResources)); this._ChildResources = new EntitySet(new Action(this.attach_ChildResources), new Action(this.detach_ChildResources)); this._UptimeCalendars = new EntitySet(new Action(this.attach_UptimeCalendars), new Action(this.detach_UptimeCalendars)); this._StateLogs = new EntitySet(new Action(this.attach_StateLogs), new Action(this.detach_StateLogs)); this._ParentResource = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid ResourceId { get { return this._ResourceId; } set { if ((this._ResourceId != value)) { this.OnResourceIdChanging(value); this.SendPropertyChanging(); this._ResourceId = value; this.SendPropertyChanged("ResourceId"); this.OnResourceIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="VarChar(MAX)", CanBeNull=false)] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnNameChanging(value); this.SendPropertyChanging(); this._Name = value; this.SendPropertyChanged("Name"); this.OnNameChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceType", CanBeNull=false, IsDiscriminator=true)] public string ResourceType { get { return this._ResourceType; } set { if ((this._ResourceType != value)) { this.OnResourceTypeChanging(value); this.SendPropertyChanging(); this._ResourceType = value; this.SendPropertyChanged("ResourceType"); this.OnResourceTypeChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentResourceId", DbType="UniqueIdentifier")] public System.Nullable ParentResourceId { get { return this._ParentResourceId; } set { if ((this._ParentResourceId != value)) { if (this._ParentResource.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnParentResourceIdChanging(value); this.SendPropertyChanging(); this._ParentResourceId = value; this.SendPropertyChanged("ParentResourceId"); this.OnParentResourceIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HbInterval", DbType="Int")] public int HbInterval { get { return this._HbInterval; } set { if ((this._HbInterval != value)) { this.OnHbIntervalChanging(value); this.SendPropertyChanging(); this._HbInterval = value; this.SendPropertyChanged("HbInterval"); this.OnHbIntervalChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedResource", Storage="_AssignedResources", ThisKey="ResourceId", OtherKey="ResourceId")] public EntitySet AssignedResources { get { return this._AssignedResources; } set { this._AssignedResources.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Resource", Storage="_ChildResources", ThisKey="ResourceId", OtherKey="ParentResourceId")] public EntitySet ChildResources { get { return this._ChildResources; } set { this._ChildResources.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Downtime", Storage="_UptimeCalendars", ThisKey="ResourceId", OtherKey="ResourceId")] public EntitySet Downtimes { get { return this._UptimeCalendars; } set { this._UptimeCalendars.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_StateLog", Storage="_StateLogs", ThisKey="ResourceId", OtherKey="SlaveId")] public EntitySet StateLogs { get { return this._StateLogs; } set { this._StateLogs.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Resource", Storage="_ParentResource", ThisKey="ParentResourceId", OtherKey="ResourceId", IsForeignKey=true)] public Resource ParentResource { get { return this._ParentResource.Entity; } set { Resource previousValue = this._ParentResource.Entity; if (((previousValue != value) || (this._ParentResource.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._ParentResource.Entity = null; previousValue.ChildResources.Remove(this); } this._ParentResource.Entity = value; if ((value != null)) { value.ChildResources.Add(this); this._ParentResourceId = value.ResourceId; } else { this._ParentResourceId = default(Nullable); } this.SendPropertyChanged("ParentResource"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void attach_AssignedResources(AssignedResource entity) { this.SendPropertyChanging(); entity.Resource = this; } private void detach_AssignedResources(AssignedResource entity) { this.SendPropertyChanging(); entity.Resource = null; } private void attach_ChildResources(Resource entity) { this.SendPropertyChanging(); entity.ParentResource = this; } private void detach_ChildResources(Resource entity) { this.SendPropertyChanging(); entity.ParentResource = null; } private void attach_UptimeCalendars(Downtime entity) { this.SendPropertyChanging(); entity.Resource = this; } private void detach_UptimeCalendars(Downtime entity) { this.SendPropertyChanging(); entity.Resource = null; } private void attach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Resource = this; } private void detach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Resource = null; } } public partial class Slave : Resource { private System.Nullable _CPUSpeed; private System.Nullable _Memory; private System.Nullable _Login; private global::HeuristicLab.Services.Hive.DataAccess.SlaveState _Status; private System.Nullable _NumberOfCores; private System.Nullable _NumberOfFreeCores; private System.Nullable _FreeMemory; private bool _IsAllowedToCalculate; private global::HeuristicLab.Services.Hive.DataAccess.CpuArchitecture _CpuArchitecture; private string _OperatingSystem; private System.Nullable _LastHeartbeat; private double _CpuUtilization; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnCpuSpeedChanging(System.Nullable value); partial void OnCpuSpeedChanged(); partial void OnMemoryChanging(System.Nullable value); partial void OnMemoryChanged(); partial void OnLoginChanging(System.Nullable value); partial void OnLoginChanged(); partial void OnSlaveStateChanging(global::HeuristicLab.Services.Hive.DataAccess.SlaveState value); partial void OnSlaveStateChanged(); partial void OnCoresChanging(System.Nullable value); partial void OnCoresChanged(); partial void OnFreeCoresChanging(System.Nullable value); partial void OnFreeCoresChanged(); partial void OnFreeMemoryChanging(System.Nullable value); partial void OnFreeMemoryChanged(); partial void OnIsAllowedToCalculateChanging(bool value); partial void OnIsAllowedToCalculateChanged(); partial void OnCpuArchitectureChanging(global::HeuristicLab.Services.Hive.DataAccess.CpuArchitecture value); partial void OnCpuArchitectureChanged(); partial void OnOperatingSystemChanging(string value); partial void OnOperatingSystemChanged(); partial void OnLastHeartbeatChanging(System.Nullable value); partial void OnLastHeartbeatChanged(); partial void OnCpuUtilizationChanging(double value); partial void OnCpuUtilizationChanged(); #endregion public Slave() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CPUSpeed", DbType="Int")] public System.Nullable CpuSpeed { get { return this._CPUSpeed; } set { if ((this._CPUSpeed != value)) { this.OnCpuSpeedChanging(value); this.SendPropertyChanging(); this._CPUSpeed = value; this.SendPropertyChanged("CpuSpeed"); this.OnCpuSpeedChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Memory", DbType="Int")] public System.Nullable Memory { get { return this._Memory; } set { if ((this._Memory != value)) { this.OnMemoryChanging(value); this.SendPropertyChanging(); this._Memory = value; this.SendPropertyChanged("Memory"); this.OnMemoryChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Login", DbType="DateTime")] public System.Nullable Login { get { return this._Login; } set { if ((this._Login != value)) { this.OnLoginChanging(value); this.SendPropertyChanging(); this._Login = value; this.SendPropertyChanged("Login"); this.OnLoginChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="VarChar(15)", CanBeNull=true)] public global::HeuristicLab.Services.Hive.DataAccess.SlaveState SlaveState { get { return this._Status; } set { if ((this._Status != value)) { this.OnSlaveStateChanging(value); this.SendPropertyChanging(); this._Status = value; this.SendPropertyChanged("SlaveState"); this.OnSlaveStateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfCores", DbType="Int")] public System.Nullable Cores { get { return this._NumberOfCores; } set { if ((this._NumberOfCores != value)) { this.OnCoresChanging(value); this.SendPropertyChanging(); this._NumberOfCores = value; this.SendPropertyChanged("Cores"); this.OnCoresChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfFreeCores", DbType="Int")] public System.Nullable FreeCores { get { return this._NumberOfFreeCores; } set { if ((this._NumberOfFreeCores != value)) { this.OnFreeCoresChanging(value); this.SendPropertyChanging(); this._NumberOfFreeCores = value; this.SendPropertyChanged("FreeCores"); this.OnFreeCoresChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FreeMemory", DbType="Int")] public System.Nullable FreeMemory { get { return this._FreeMemory; } set { if ((this._FreeMemory != value)) { this.OnFreeMemoryChanging(value); this.SendPropertyChanging(); this._FreeMemory = value; this.SendPropertyChanged("FreeMemory"); this.OnFreeMemoryChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAllowedToCalculate", DbType="Bit")] public bool IsAllowedToCalculate { get { return this._IsAllowedToCalculate; } set { if ((this._IsAllowedToCalculate != value)) { this.OnIsAllowedToCalculateChanging(value); this.SendPropertyChanging(); this._IsAllowedToCalculate = value; this.SendPropertyChanged("IsAllowedToCalculate"); this.OnIsAllowedToCalculateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CpuArchitecture", DbType="VarChar(3)", CanBeNull=false)] public global::HeuristicLab.Services.Hive.DataAccess.CpuArchitecture CpuArchitecture { get { return this._CpuArchitecture; } set { if ((this._CpuArchitecture != value)) { this.OnCpuArchitectureChanging(value); this.SendPropertyChanging(); this._CpuArchitecture = value; this.SendPropertyChanged("CpuArchitecture"); this.OnCpuArchitectureChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem", DbType="VarChar(MAX)", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] public string OperatingSystem { get { return this._OperatingSystem; } set { if ((this._OperatingSystem != value)) { this.OnOperatingSystemChanging(value); this.SendPropertyChanging(); this._OperatingSystem = value; this.SendPropertyChanged("OperatingSystem"); this.OnOperatingSystemChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastHeartbeat", DbType="DateTime")] public System.Nullable LastHeartbeat { get { return this._LastHeartbeat; } set { if ((this._LastHeartbeat != value)) { this.OnLastHeartbeatChanging(value); this.SendPropertyChanging(); this._LastHeartbeat = value; this.SendPropertyChanged("LastHeartbeat"); this.OnLastHeartbeatChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CpuUtilization", DbType="float")] public double CpuUtilization { get { return this._CpuUtilization; } set { if ((this._CpuUtilization != value)) { this.OnCpuUtilizationChanging(value); this.SendPropertyChanging(); this._CpuUtilization = value; this.SendPropertyChanged("CpuUtilization"); this.OnCpuUtilizationChanged(); } } } } public partial class SlaveGroup : Resource { #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); #endregion public SlaveGroup() { OnCreated(); } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Task")] public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _JobId; private global::HeuristicLab.Services.Hive.DataAccess.TaskState _State; private double _ExecutionTime; private System.Nullable _LastHeartbeat; private System.Nullable _ParentJobId; private int _Priority; private int _CoresNeeded; private int _MemoryNeeded; private bool _IsParentJob; private bool _FinishWhenChildJobsFinished; private global::HeuristicLab.Services.Hive.DataAccess.Command? _Command; private System.Guid _HiveExperimentId; private bool _IsPrivileged; private EntitySet _AssignedResources; private EntitySet _RequiredPlugins; private EntitySet _Jobs; private EntityRef _JobData; private EntitySet _StateLogs; private EntityRef _Job1; private EntityRef _HiveExperiment; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnTaskIdChanging(System.Guid value); partial void OnTaskIdChanged(); partial void OnStateChanging(global::HeuristicLab.Services.Hive.DataAccess.TaskState value); partial void OnStateChanged(); partial void OnExecutionTimeMsChanging(double value); partial void OnExecutionTimeMsChanged(); partial void OnLastHeartbeatChanging(System.Nullable value); partial void OnLastHeartbeatChanged(); partial void OnParentTaskIdChanging(System.Nullable value); partial void OnParentTaskIdChanged(); partial void OnPriorityChanging(int value); partial void OnPriorityChanged(); partial void OnCoresNeededChanging(int value); partial void OnCoresNeededChanged(); partial void OnMemoryNeededChanging(int value); partial void OnMemoryNeededChanged(); partial void OnIsParentTaskChanging(bool value); partial void OnIsParentTaskChanged(); partial void OnFinishWhenChildJobsFinishedChanging(bool value); partial void OnFinishWhenChildJobsFinishedChanged(); partial void OnCommandChanging(global::HeuristicLab.Services.Hive.DataAccess.Command? value); partial void OnCommandChanged(); partial void OnJobIdChanging(System.Guid value); partial void OnJobIdChanged(); partial void OnIsPrivilegedChanging(bool value); partial void OnIsPrivilegedChanged(); #endregion public Task() { this._AssignedResources = new EntitySet(new Action(this.attach_AssignedResources), new Action(this.detach_AssignedResources)); this._RequiredPlugins = new EntitySet(new Action(this.attach_RequiredPlugins), new Action(this.detach_RequiredPlugins)); this._Jobs = new EntitySet(new Action(this.attach_Jobs), new Action(this.detach_Jobs)); this._JobData = default(EntityRef); this._StateLogs = new EntitySet(new Action(this.attach_StateLogs), new Action(this.detach_StateLogs)); this._Job1 = default(EntityRef); this._HiveExperiment = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid TaskId { get { return this._JobId; } set { if ((this._JobId != value)) { this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._JobId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Name="TaskState", Storage="_State", DbType="VarChar(30)", CanBeNull=false)] public global::HeuristicLab.Services.Hive.DataAccess.TaskState State { get { return this._State; } set { if ((this._State != value)) { this.OnStateChanging(value); this.SendPropertyChanging(); this._State = value; this.SendPropertyChanged("State"); this.OnStateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionTime", DbType="float")] public double ExecutionTimeMs { get { return this._ExecutionTime; } set { if ((this._ExecutionTime != value)) { this.OnExecutionTimeMsChanging(value); this.SendPropertyChanging(); this._ExecutionTime = value; this.SendPropertyChanged("ExecutionTimeMs"); this.OnExecutionTimeMsChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastHeartbeat", DbType="DateTime")] public System.Nullable LastHeartbeat { get { return this._LastHeartbeat; } set { if ((this._LastHeartbeat != value)) { this.OnLastHeartbeatChanging(value); this.SendPropertyChanging(); this._LastHeartbeat = value; this.SendPropertyChanged("LastHeartbeat"); this.OnLastHeartbeatChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentJobId", DbType="UniqueIdentifier")] public System.Nullable ParentTaskId { get { return this._ParentJobId; } set { if ((this._ParentJobId != value)) { if (this._Job1.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnParentTaskIdChanging(value); this.SendPropertyChanging(); this._ParentJobId = value; this.SendPropertyChanged("ParentTaskId"); this.OnParentTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Priority", DbType="Int NOT NULL")] public int Priority { get { return this._Priority; } set { if ((this._Priority != value)) { this.OnPriorityChanging(value); this.SendPropertyChanging(); this._Priority = value; this.SendPropertyChanged("Priority"); this.OnPriorityChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CoresNeeded", DbType="Int NOT NULL")] public int CoresNeeded { get { return this._CoresNeeded; } set { if ((this._CoresNeeded != value)) { this.OnCoresNeededChanging(value); this.SendPropertyChanging(); this._CoresNeeded = value; this.SendPropertyChanged("CoresNeeded"); this.OnCoresNeededChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemoryNeeded", DbType="Int NOT NULL")] public int MemoryNeeded { get { return this._MemoryNeeded; } set { if ((this._MemoryNeeded != value)) { this.OnMemoryNeededChanging(value); this.SendPropertyChanging(); this._MemoryNeeded = value; this.SendPropertyChanged("MemoryNeeded"); this.OnMemoryNeededChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsParentJob", DbType="Bit")] public bool IsParentTask { get { return this._IsParentJob; } set { if ((this._IsParentJob != value)) { this.OnIsParentTaskChanging(value); this.SendPropertyChanging(); this._IsParentJob = value; this.SendPropertyChanged("IsParentTask"); this.OnIsParentTaskChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinishWhenChildJobsFinished", DbType="Bit")] public bool FinishWhenChildJobsFinished { get { return this._FinishWhenChildJobsFinished; } set { if ((this._FinishWhenChildJobsFinished != value)) { this.OnFinishWhenChildJobsFinishedChanging(value); this.SendPropertyChanging(); this._FinishWhenChildJobsFinished = value; this.SendPropertyChanged("FinishWhenChildJobsFinished"); this.OnFinishWhenChildJobsFinishedChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Command", DbType="VarChar(30)", CanBeNull=true)] public global::HeuristicLab.Services.Hive.DataAccess.Command? Command { get { return this._Command; } set { if ((this._Command != value)) { this.OnCommandChanging(value); this.SendPropertyChanging(); this._Command = value; this.SendPropertyChanged("Command"); this.OnCommandChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", DbType="UniqueIdentifier NOT NULL")] public System.Guid JobId { get { return this._HiveExperimentId; } set { if ((this._HiveExperimentId != value)) { if (this._HiveExperiment.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnJobIdChanging(value); this.SendPropertyChanging(); this._HiveExperimentId = value; this.SendPropertyChanged("JobId"); this.OnJobIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPrivileged", DbType="Bit")] public bool IsPrivileged { get { return this._IsPrivileged; } set { if ((this._IsPrivileged != value)) { this.OnIsPrivilegedChanging(value); this.SendPropertyChanging(); this._IsPrivileged = value; this.SendPropertyChanged("IsPrivileged"); this.OnIsPrivilegedChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_AssignedResource", Storage="_AssignedResources", ThisKey="TaskId", OtherKey="TaskId")] public EntitySet AssignedResources { get { return this._AssignedResources; } set { this._AssignedResources.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_RequiredPlugin", Storage="_RequiredPlugins", ThisKey="TaskId", OtherKey="TaskId")] public EntitySet RequiredPlugins { get { return this._RequiredPlugins; } set { this._RequiredPlugins.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Task", Storage="_Jobs", ThisKey="TaskId", OtherKey="ParentTaskId")] public EntitySet ChildJobs { get { return this._Jobs; } set { this._Jobs.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_TaskData", Storage="_JobData", ThisKey="TaskId", OtherKey="TaskId", IsUnique=true, IsForeignKey=false)] public TaskData JobData { get { return this._JobData.Entity; } set { TaskData previousValue = this._JobData.Entity; if (((previousValue != value) || (this._JobData.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._JobData.Entity = null; previousValue.Task = null; } this._JobData.Entity = value; if ((value != null)) { value.Task = this; } this.SendPropertyChanged("JobData"); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_StateLog", Storage="_StateLogs", ThisKey="TaskId", OtherKey="TaskId")] public EntitySet StateLogs { get { return this._StateLogs; } set { this._StateLogs.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Task", Storage="_Job1", ThisKey="ParentTaskId", OtherKey="TaskId", IsForeignKey=true)] public Task ParentJob { get { return this._Job1.Entity; } set { Task previousValue = this._Job1.Entity; if (((previousValue != value) || (this._Job1.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Job1.Entity = null; previousValue.ChildJobs.Remove(this); } this._Job1.Entity = value; if ((value != null)) { value.ChildJobs.Add(this); this._ParentJobId = value.TaskId; } else { this._ParentJobId = default(Nullable); } this.SendPropertyChanged("ParentJob"); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_Task", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true)] public Job Job { get { return this._HiveExperiment.Entity; } set { Job previousValue = this._HiveExperiment.Entity; if (((previousValue != value) || (this._HiveExperiment.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._HiveExperiment.Entity = null; previousValue.Tasks.Remove(this); } this._HiveExperiment.Entity = value; if ((value != null)) { value.Tasks.Add(this); this._HiveExperimentId = value.JobId; } else { this._HiveExperimentId = default(System.Guid); } this.SendPropertyChanged("Job"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void attach_AssignedResources(AssignedResource entity) { this.SendPropertyChanging(); entity.Task = this; } private void detach_AssignedResources(AssignedResource entity) { this.SendPropertyChanging(); entity.Task = null; } private void attach_RequiredPlugins(RequiredPlugin entity) { this.SendPropertyChanging(); entity.Task = this; } private void detach_RequiredPlugins(RequiredPlugin entity) { this.SendPropertyChanging(); entity.Task = null; } private void attach_Jobs(Task entity) { this.SendPropertyChanging(); entity.ParentJob = this; } private void detach_Jobs(Task entity) { this.SendPropertyChanging(); entity.ParentJob = null; } private void attach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Task = this; } private void detach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Task = null; } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Downtime")] public partial class Downtime : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _UptimeCalendarId; private System.Guid _ResourceId; private System.DateTime _StartDate; private System.DateTime _EndDate; private bool _AllDayEvent; private bool _Recurring; private System.Guid _RecurringId; private EntityRef _Resource; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnDowntimeIdChanging(System.Guid value); partial void OnDowntimeIdChanged(); partial void OnResourceIdChanging(System.Guid value); partial void OnResourceIdChanged(); partial void OnStartDateChanging(System.DateTime value); partial void OnStartDateChanged(); partial void OnEndDateChanging(System.DateTime value); partial void OnEndDateChanged(); partial void OnAllDayEventChanging(bool value); partial void OnAllDayEventChanged(); partial void OnRecurringChanging(bool value); partial void OnRecurringChanged(); partial void OnRecurringIdChanging(System.Guid value); partial void OnRecurringIdChanged(); #endregion public Downtime() { this._Resource = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid DowntimeId { get { return this._UptimeCalendarId; } set { if ((this._UptimeCalendarId != value)) { this.OnDowntimeIdChanging(value); this.SendPropertyChanging(); this._UptimeCalendarId = value; this.SendPropertyChanged("DowntimeId"); this.OnDowntimeIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier")] public System.Guid ResourceId { get { return this._ResourceId; } set { if ((this._ResourceId != value)) { if (this._Resource.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnResourceIdChanging(value); this.SendPropertyChanging(); this._ResourceId = value; this.SendPropertyChanged("ResourceId"); this.OnResourceIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] public System.DateTime StartDate { get { return this._StartDate; } set { if ((this._StartDate != value)) { this.OnStartDateChanging(value); this.SendPropertyChanging(); this._StartDate = value; this.SendPropertyChanged("StartDate"); this.OnStartDateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] public System.DateTime EndDate { get { return this._EndDate; } set { if ((this._EndDate != value)) { this.OnEndDateChanging(value); this.SendPropertyChanging(); this._EndDate = value; this.SendPropertyChanged("EndDate"); this.OnEndDateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AllDayEvent", DbType="Bit")] public bool AllDayEvent { get { return this._AllDayEvent; } set { if ((this._AllDayEvent != value)) { this.OnAllDayEventChanging(value); this.SendPropertyChanging(); this._AllDayEvent = value; this.SendPropertyChanged("AllDayEvent"); this.OnAllDayEventChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recurring", DbType="Bit")] public bool Recurring { get { return this._Recurring; } set { if ((this._Recurring != value)) { this.OnRecurringChanging(value); this.SendPropertyChanging(); this._Recurring = value; this.SendPropertyChanged("Recurring"); this.OnRecurringChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecurringId", DbType="UniqueIdentifier")] public System.Guid RecurringId { get { return this._RecurringId; } set { if ((this._RecurringId != value)) { this.OnRecurringIdChanging(value); this.SendPropertyChanging(); this._RecurringId = value; this.SendPropertyChanged("RecurringId"); this.OnRecurringIdChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Downtime", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteRule="CASCADE")] public Resource Resource { get { return this._Resource.Entity; } set { Resource previousValue = this._Resource.Entity; if (((previousValue != value) || (this._Resource.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Resource.Entity = null; previousValue.Downtimes.Remove(this); } this._Resource.Entity = value; if ((value != null)) { value.Downtimes.Add(this); this._ResourceId = value.ResourceId; } else { this._ResourceId = default(System.Guid); } this.SendPropertyChanged("Resource"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Job")] public partial class Job : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _HiveExperimentId; private string _Name; private string _Description; private string _ResourceIds; private System.Guid _UserId; private System.DateTime _DateCreated; private EntitySet _Jobs; private EntitySet _HiveExperimentPermissions; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnJobIdChanging(System.Guid value); partial void OnJobIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnDescriptionChanging(string value); partial void OnDescriptionChanged(); partial void OnResourceIdsChanging(string value); partial void OnResourceIdsChanged(); partial void OnOwnerUserIdChanging(System.Guid value); partial void OnOwnerUserIdChanged(); partial void OnDateCreatedChanging(System.DateTime value); partial void OnDateCreatedChanged(); #endregion public Job() { this._Jobs = new EntitySet(new Action(this.attach_Jobs), new Action(this.detach_Jobs)); this._HiveExperimentPermissions = new EntitySet(new Action(this.attach_HiveExperimentPermissions), new Action(this.detach_HiveExperimentPermissions)); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid JobId { get { return this._HiveExperimentId; } set { if ((this._HiveExperimentId != value)) { this.OnJobIdChanging(value); this.SendPropertyChanging(); this._HiveExperimentId = value; this.SendPropertyChanged("JobId"); this.OnJobIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="VarChar(MAX)", CanBeNull=false)] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnNameChanging(value); this.SendPropertyChanging(); this._Name = value; this.SendPropertyChanged("Name"); this.OnNameChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="VarChar(MAX)")] public string Description { get { return this._Description; } set { if ((this._Description != value)) { this.OnDescriptionChanging(value); this.SendPropertyChanging(); this._Description = value; this.SendPropertyChanged("Description"); this.OnDescriptionChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceIds", DbType="VarChar(MAX)")] public string ResourceIds { get { return this._ResourceIds; } set { if ((this._ResourceIds != value)) { this.OnResourceIdsChanging(value); this.SendPropertyChanging(); this._ResourceIds = value; this.SendPropertyChanged("ResourceIds"); this.OnResourceIdsChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")] public System.Guid OwnerUserId { get { return this._UserId; } set { if ((this._UserId != value)) { this.OnOwnerUserIdChanging(value); this.SendPropertyChanging(); this._UserId = value; this.SendPropertyChanged("OwnerUserId"); this.OnOwnerUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime")] public System.DateTime DateCreated { get { return this._DateCreated; } set { if ((this._DateCreated != value)) { this.OnDateCreatedChanging(value); this.SendPropertyChanging(); this._DateCreated = value; this.SendPropertyChanged("DateCreated"); this.OnDateCreatedChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_Task", Storage="_Jobs", ThisKey="JobId", OtherKey="JobId")] public EntitySet Tasks { get { return this._Jobs; } set { this._Jobs.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_JobPermission", Storage="_HiveExperimentPermissions", ThisKey="JobId", OtherKey="JobId")] public EntitySet JobPermissions { get { return this._HiveExperimentPermissions; } set { this._HiveExperimentPermissions.Assign(value); } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void attach_Jobs(Task entity) { this.SendPropertyChanging(); entity.Job = this; } private void detach_Jobs(Task entity) { this.SendPropertyChanging(); entity.Job = null; } private void attach_HiveExperimentPermissions(JobPermission entity) { this.SendPropertyChanging(); entity.Job = this; } private void detach_HiveExperimentPermissions(JobPermission entity) { this.SendPropertyChanging(); entity.Job = null; } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.TaskData")] public partial class TaskData : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _JobId; private System.Data.Linq.Binary _Data; private System.DateTime _LastUpdate; private EntityRef _Job; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnTaskIdChanging(System.Guid value); partial void OnTaskIdChanged(); partial void OnDataChanging(System.Data.Linq.Binary value); partial void OnDataChanged(); partial void OnLastUpdateChanging(System.DateTime value); partial void OnLastUpdateChanged(); #endregion public TaskData() { this._Job = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid TaskId { get { return this._JobId; } set { if ((this._JobId != value)) { if (this._Job.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._JobId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Data", DbType="VarBinary(MAX)", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] public System.Data.Linq.Binary Data { get { return this._Data; } set { if ((this._Data != value)) { this.OnDataChanging(value); this.SendPropertyChanging(); this._Data = value; this.SendPropertyChanged("Data"); this.OnDataChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastUpdate", DbType="DateTime")] public System.DateTime LastUpdate { get { return this._LastUpdate; } set { if ((this._LastUpdate != value)) { this.OnLastUpdateChanging(value); this.SendPropertyChanging(); this._LastUpdate = value; this.SendPropertyChanged("LastUpdate"); this.OnLastUpdateChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_TaskData", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true)] public Task Task { get { return this._Job.Entity; } set { Task previousValue = this._Job.Entity; if (((previousValue != value) || (this._Job.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Job.Entity = null; previousValue.JobData = null; } this._Job.Entity = value; if ((value != null)) { value.JobData = this; this._JobId = value.TaskId; } else { this._JobId = default(System.Guid); } this.SendPropertyChanged("Task"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PluginData")] public partial class PluginData : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _PluginDataId; private System.Guid _PluginId; private System.Data.Linq.Binary _Data; private string _FileName; private EntityRef _Plugin; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnPluginDataIdChanging(System.Guid value); partial void OnPluginDataIdChanged(); partial void OnPluginIdChanging(System.Guid value); partial void OnPluginIdChanged(); partial void OnDataChanging(System.Data.Linq.Binary value); partial void OnDataChanged(); partial void OnFileNameChanging(string value); partial void OnFileNameChanged(); #endregion public PluginData() { this._Plugin = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginDataId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid PluginDataId { get { return this._PluginDataId; } set { if ((this._PluginDataId != value)) { this.OnPluginDataIdChanging(value); this.SendPropertyChanging(); this._PluginDataId = value; this.SendPropertyChanged("PluginDataId"); this.OnPluginDataIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", DbType="UniqueIdentifier NOT NULL")] public System.Guid PluginId { get { return this._PluginId; } set { if ((this._PluginId != value)) { if (this._Plugin.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnPluginIdChanging(value); this.SendPropertyChanging(); this._PluginId = value; this.SendPropertyChanged("PluginId"); this.OnPluginIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Data", DbType="VarBinary(MAX) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] public System.Data.Linq.Binary Data { get { return this._Data; } set { if ((this._Data != value)) { this.OnDataChanging(value); this.SendPropertyChanging(); this._Data = value; this.SendPropertyChanged("Data"); this.OnDataChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileName", DbType="VarChar(MAX)", CanBeNull=false)] public string FileName { get { return this._FileName; } set { if ((this._FileName != value)) { this.OnFileNameChanging(value); this.SendPropertyChanging(); this._FileName = value; this.SendPropertyChanged("FileName"); this.OnFileNameChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginData", Storage="_Plugin", ThisKey="PluginId", OtherKey="PluginId", IsForeignKey=true)] public Plugin Plugin { get { return this._Plugin.Entity; } set { Plugin previousValue = this._Plugin.Entity; if (((previousValue != value) || (this._Plugin.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Plugin.Entity = null; previousValue.PluginData.Remove(this); } this._Plugin.Entity = value; if ((value != null)) { value.PluginData.Add(this); this._PluginId = value.PluginId; } else { this._PluginId = default(System.Guid); } this.SendPropertyChanged("Plugin"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.StateLog")] public partial class StateLog : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _StateLogId; private global::HeuristicLab.Services.Hive.DataAccess.TaskState _State; private System.DateTime _DateTime; private System.Guid _JobId; private System.Nullable _UserId; private System.Nullable _SlaveId; private string _Exception; private EntityRef _Job; private EntityRef _Resource; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnStateLogIdChanging(System.Guid value); partial void OnStateLogIdChanged(); partial void OnStateChanging(global::HeuristicLab.Services.Hive.DataAccess.TaskState value); partial void OnStateChanged(); partial void OnDateTimeChanging(System.DateTime value); partial void OnDateTimeChanged(); partial void OnTaskIdChanging(System.Guid value); partial void OnTaskIdChanged(); partial void OnUserIdChanging(System.Nullable value); partial void OnUserIdChanged(); partial void OnSlaveIdChanging(System.Nullable value); partial void OnSlaveIdChanged(); partial void OnExceptionChanging(string value); partial void OnExceptionChanged(); #endregion public StateLog() { this._Job = default(EntityRef); this._Resource = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StateLogId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid StateLogId { get { return this._StateLogId; } set { if ((this._StateLogId != value)) { this.OnStateLogIdChanging(value); this.SendPropertyChanging(); this._StateLogId = value; this.SendPropertyChanged("StateLogId"); this.OnStateLogIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="VarChar(30) NOT NULL", CanBeNull=false)] public global::HeuristicLab.Services.Hive.DataAccess.TaskState State { get { return this._State; } set { if ((this._State != value)) { this.OnStateChanging(value); this.SendPropertyChanging(); this._State = value; this.SendPropertyChanged("State"); this.OnStateChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateTime", DbType="DateTime NOT NULL")] public System.DateTime DateTime { get { return this._DateTime; } set { if ((this._DateTime != value)) { this.OnDateTimeChanging(value); this.SendPropertyChanging(); this._DateTime = value; this.SendPropertyChanged("DateTime"); this.OnDateTimeChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL")] public System.Guid TaskId { get { return this._JobId; } set { if ((this._JobId != value)) { if (this._Job.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnTaskIdChanging(value); this.SendPropertyChanging(); this._JobId = value; this.SendPropertyChanged("TaskId"); this.OnTaskIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")] public System.Nullable UserId { get { return this._UserId; } set { if ((this._UserId != value)) { this.OnUserIdChanging(value); this.SendPropertyChanging(); this._UserId = value; this.SendPropertyChanged("UserId"); this.OnUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SlaveId", DbType="UniqueIdentifier")] public System.Nullable SlaveId { get { return this._SlaveId; } set { if ((this._SlaveId != value)) { if (this._Resource.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnSlaveIdChanging(value); this.SendPropertyChanging(); this._SlaveId = value; this.SendPropertyChanged("SlaveId"); this.OnSlaveIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Exception", DbType="VarChar(MAX)", CanBeNull=false)] public string Exception { get { return this._Exception; } set { if ((this._Exception != value)) { this.OnExceptionChanging(value); this.SendPropertyChanging(); this._Exception = value; this.SendPropertyChanged("Exception"); this.OnExceptionChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_StateLog", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true)] public Task Task { get { return this._Job.Entity; } set { Task previousValue = this._Job.Entity; if (((previousValue != value) || (this._Job.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Job.Entity = null; previousValue.StateLogs.Remove(this); } this._Job.Entity = value; if ((value != null)) { value.StateLogs.Add(this); this._JobId = value.TaskId; } else { this._JobId = default(System.Guid); } this.SendPropertyChanged("Task"); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_StateLog", Storage="_Resource", ThisKey="SlaveId", OtherKey="ResourceId", IsForeignKey=true)] public Resource Resource { get { return this._Resource.Entity; } set { Resource previousValue = this._Resource.Entity; if (((previousValue != value) || (this._Resource.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Resource.Entity = null; previousValue.StateLogs.Remove(this); } this._Resource.Entity = value; if ((value != null)) { value.StateLogs.Add(this); this._SlaveId = value.ResourceId; } else { this._SlaveId = default(Nullable); } this.SendPropertyChanged("Resource"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JobPermission")] public partial class JobPermission : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _HiveExperimentId; private System.Guid _GrantedUserId; private System.Guid _GrantedByUserId; private global::HeuristicLab.Services.Hive.DataAccess.Permission _Permission; private EntityRef _HiveExperiment; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnJobIdChanging(System.Guid value); partial void OnJobIdChanged(); partial void OnGrantedUserIdChanging(System.Guid value); partial void OnGrantedUserIdChanged(); partial void OnGrantedByUserIdChanging(System.Guid value); partial void OnGrantedByUserIdChanged(); partial void OnPermissionChanging(global::HeuristicLab.Services.Hive.DataAccess.Permission value); partial void OnPermissionChanged(); #endregion public JobPermission() { this._HiveExperiment = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid JobId { get { return this._HiveExperimentId; } set { if ((this._HiveExperimentId != value)) { if (this._HiveExperiment.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnJobIdChanging(value); this.SendPropertyChanging(); this._HiveExperimentId = value; this.SendPropertyChanged("JobId"); this.OnJobIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedUserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid GrantedUserId { get { return this._GrantedUserId; } set { if ((this._GrantedUserId != value)) { this.OnGrantedUserIdChanging(value); this.SendPropertyChanging(); this._GrantedUserId = value; this.SendPropertyChanged("GrantedUserId"); this.OnGrantedUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedByUserId", DbType="UniqueIdentifier NOT NULL")] public System.Guid GrantedByUserId { get { return this._GrantedByUserId; } set { if ((this._GrantedByUserId != value)) { this.OnGrantedByUserIdChanging(value); this.SendPropertyChanging(); this._GrantedByUserId = value; this.SendPropertyChanged("GrantedByUserId"); this.OnGrantedByUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Permission", DbType="VarChar(15) NOT NULL", CanBeNull=false)] public global::HeuristicLab.Services.Hive.DataAccess.Permission Permission { get { return this._Permission; } set { if ((this._Permission != value)) { this.OnPermissionChanging(value); this.SendPropertyChanging(); this._Permission = value; this.SendPropertyChanged("Permission"); this.OnPermissionChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_JobPermission", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true)] public Job Job { get { return this._HiveExperiment.Entity; } set { Job previousValue = this._HiveExperiment.Entity; if (((previousValue != value) || (this._HiveExperiment.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._HiveExperiment.Entity = null; previousValue.JobPermissions.Remove(this); } this._HiveExperiment.Entity = value; if ((value != null)) { value.JobPermissions.Add(this); this._HiveExperimentId = value.JobId; } else { this._HiveExperimentId = default(System.Guid); } this.SendPropertyChanged("Job"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="")] public partial class Lifecycle : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _LifecycleId; private System.DateTime _LastCleanup; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnLifecycleIdChanging(int value); partial void OnLifecycleIdChanged(); partial void OnLastCleanupChanging(System.DateTime value); partial void OnLastCleanupChanged(); #endregion public Lifecycle() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LifecycleId", DbType="Int", IsPrimaryKey=true)] public int LifecycleId { get { return this._LifecycleId; } set { if ((this._LifecycleId != value)) { this.OnLifecycleIdChanging(value); this.SendPropertyChanging(); this._LifecycleId = value; this.SendPropertyChanged("LifecycleId"); this.OnLifecycleIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastCleanup", DbType="DateTime")] public System.DateTime LastCleanup { get { return this._LastCleanup; } set { if ((this._LastCleanup != value)) { this.OnLastCleanupChanging(value); this.SendPropertyChanging(); this._LastCleanup = value; this.SendPropertyChanged("LastCleanup"); this.OnLastCleanupChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="")] public partial class DeletedJobStatistics : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _UserId; private double _ExecutionTime; private double _ExecutionTimeFinishedJobs; private double _StartToEndTime; private System.Guid _DeletedJobStatisticsId; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnUserIdChanging(System.Guid value); partial void OnUserIdChanged(); partial void OnExecutionTimeSChanging(double value); partial void OnExecutionTimeSChanged(); partial void OnExecutionTimeSFinishedJobsChanging(double value); partial void OnExecutionTimeSFinishedJobsChanged(); partial void OnStartToEndTimeSChanging(double value); partial void OnStartToEndTimeSChanged(); partial void OnDeletedJobStatisticsIdChanging(System.Guid value); partial void OnDeletedJobStatisticsIdChanged(); #endregion public DeletedJobStatistics() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL")] public System.Guid UserId { get { return this._UserId; } set { if ((this._UserId != value)) { this.OnUserIdChanging(value); this.SendPropertyChanging(); this._UserId = value; this.SendPropertyChanged("UserId"); this.OnUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionTime", DbType="float NOT NULL")] public double ExecutionTimeS { get { return this._ExecutionTime; } set { if ((this._ExecutionTime != value)) { this.OnExecutionTimeSChanging(value); this.SendPropertyChanging(); this._ExecutionTime = value; this.SendPropertyChanged("ExecutionTimeS"); this.OnExecutionTimeSChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionTimeFinishedJobs", DbType="float NOT NULL")] public double ExecutionTimeSFinishedJobs { get { return this._ExecutionTimeFinishedJobs; } set { if ((this._ExecutionTimeFinishedJobs != value)) { this.OnExecutionTimeSFinishedJobsChanging(value); this.SendPropertyChanging(); this._ExecutionTimeFinishedJobs = value; this.SendPropertyChanged("ExecutionTimeSFinishedJobs"); this.OnExecutionTimeSFinishedJobsChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartToEndTime", DbType="float NOT NULL")] public double StartToEndTimeS { get { return this._StartToEndTime; } set { if ((this._StartToEndTime != value)) { this.OnStartToEndTimeSChanging(value); this.SendPropertyChanging(); this._StartToEndTime = value; this.SendPropertyChanged("StartToEndTimeS"); this.OnStartToEndTimeSChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeletedJobStatisticsId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid DeletedJobStatisticsId { get { return this._DeletedJobStatisticsId; } set { if ((this._DeletedJobStatisticsId != value)) { this.OnDeletedJobStatisticsIdChanging(value); this.SendPropertyChanging(); this._DeletedJobStatisticsId = value; this.SendPropertyChanged("DeletedJobStatisticsId"); this.OnDeletedJobStatisticsIdChanged(); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="")] public partial class UserStatistics : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _StatisticsId; private System.Guid _UserId; private double _ExecutionTime; private int _CoresUsed; private double _ExecutionTimeFinishedJobs; private double _StartToEndTime; private EntityRef _Statistics; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnStatisticsIdChanging(System.Guid value); partial void OnStatisticsIdChanged(); partial void OnUserIdChanging(System.Guid value); partial void OnUserIdChanged(); partial void OnExecutionTimeMsChanging(double value); partial void OnExecutionTimeMsChanged(); partial void OnUsedCoresChanging(int value); partial void OnUsedCoresChanged(); partial void OnExecutionTimeMsFinishedJobsChanging(double value); partial void OnExecutionTimeMsFinishedJobsChanged(); partial void OnStartToEndTimeMsChanging(double value); partial void OnStartToEndTimeMsChanged(); #endregion public UserStatistics() { this._Statistics = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StatisticsId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid StatisticsId { get { return this._StatisticsId; } set { if ((this._StatisticsId != value)) { if (this._Statistics.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnStatisticsIdChanging(value); this.SendPropertyChanging(); this._StatisticsId = value; this.SendPropertyChanged("StatisticsId"); this.OnStatisticsIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid UserId { get { return this._UserId; } set { if ((this._UserId != value)) { this.OnUserIdChanging(value); this.SendPropertyChanging(); this._UserId = value; this.SendPropertyChanged("UserId"); this.OnUserIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionTime", DbType="float NOT NULL")] public double ExecutionTimeMs { get { return this._ExecutionTime; } set { if ((this._ExecutionTime != value)) { this.OnExecutionTimeMsChanging(value); this.SendPropertyChanging(); this._ExecutionTime = value; this.SendPropertyChanged("ExecutionTimeMs"); this.OnExecutionTimeMsChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CoresUsed", DbType="Int NOT NULL")] public int UsedCores { get { return this._CoresUsed; } set { if ((this._CoresUsed != value)) { this.OnUsedCoresChanging(value); this.SendPropertyChanging(); this._CoresUsed = value; this.SendPropertyChanged("UsedCores"); this.OnUsedCoresChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExecutionTimeFinishedJobs", DbType="float NOT NULL")] public double ExecutionTimeMsFinishedJobs { get { return this._ExecutionTimeFinishedJobs; } set { if ((this._ExecutionTimeFinishedJobs != value)) { this.OnExecutionTimeMsFinishedJobsChanging(value); this.SendPropertyChanging(); this._ExecutionTimeFinishedJobs = value; this.SendPropertyChanged("ExecutionTimeMsFinishedJobs"); this.OnExecutionTimeMsFinishedJobsChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartToEndTime", DbType="float NOT NULL")] public double StartToEndTimeMs { get { return this._StartToEndTime; } set { if ((this._StartToEndTime != value)) { this.OnStartToEndTimeMsChanging(value); this.SendPropertyChanging(); this._StartToEndTime = value; this.SendPropertyChanged("StartToEndTimeMs"); this.OnStartToEndTimeMsChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Statistics_UserStatistics", Storage="_Statistics", ThisKey="StatisticsId", OtherKey="StatisticsId", IsForeignKey=true)] public Statistics Statistics { get { return this._Statistics.Entity; } set { Statistics previousValue = this._Statistics.Entity; if (((previousValue != value) || (this._Statistics.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Statistics.Entity = null; previousValue.UserStatistics.Remove(this); } this._Statistics.Entity = value; if ((value != null)) { value.UserStatistics.Add(this); this._StatisticsId = value.StatisticsId; } else { this._StatisticsId = default(System.Guid); } this.SendPropertyChanged("Statistics"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="")] public partial class SlaveStatistics : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _StatisticsId; private System.Guid _SlaveId; private int _Cores; private int _FreeCores; private double _CpuUtilization; private int _Memory; private int _FreeMemory; private EntityRef _Statistics; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnStatisticsIdChanging(System.Guid value); partial void OnStatisticsIdChanged(); partial void OnSlaveIdChanging(System.Guid value); partial void OnSlaveIdChanged(); partial void OnCoresChanging(int value); partial void OnCoresChanged(); partial void OnFreeCoresChanging(int value); partial void OnFreeCoresChanged(); partial void OnCpuUtilizationChanging(double value); partial void OnCpuUtilizationChanged(); partial void OnMemoryChanging(int value); partial void OnMemoryChanged(); partial void OnFreeMemoryChanging(int value); partial void OnFreeMemoryChanged(); #endregion public SlaveStatistics() { this._Statistics = default(EntityRef); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StatisticsId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid StatisticsId { get { return this._StatisticsId; } set { if ((this._StatisticsId != value)) { if (this._Statistics.HasLoadedOrAssignedValue) { throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); } this.OnStatisticsIdChanging(value); this.SendPropertyChanging(); this._StatisticsId = value; this.SendPropertyChanged("StatisticsId"); this.OnStatisticsIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SlaveId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid SlaveId { get { return this._SlaveId; } set { if ((this._SlaveId != value)) { this.OnSlaveIdChanging(value); this.SendPropertyChanging(); this._SlaveId = value; this.SendPropertyChanged("SlaveId"); this.OnSlaveIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Cores", DbType="Int NOT NULL")] public int Cores { get { return this._Cores; } set { if ((this._Cores != value)) { this.OnCoresChanging(value); this.SendPropertyChanging(); this._Cores = value; this.SendPropertyChanged("Cores"); this.OnCoresChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FreeCores", DbType="Int NOT NULL")] public int FreeCores { get { return this._FreeCores; } set { if ((this._FreeCores != value)) { this.OnFreeCoresChanging(value); this.SendPropertyChanging(); this._FreeCores = value; this.SendPropertyChanged("FreeCores"); this.OnFreeCoresChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CpuUtilization", DbType="float NOT NULL")] public double CpuUtilization { get { return this._CpuUtilization; } set { if ((this._CpuUtilization != value)) { this.OnCpuUtilizationChanging(value); this.SendPropertyChanging(); this._CpuUtilization = value; this.SendPropertyChanged("CpuUtilization"); this.OnCpuUtilizationChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Memory", DbType="Int NOT NULL")] public int Memory { get { return this._Memory; } set { if ((this._Memory != value)) { this.OnMemoryChanging(value); this.SendPropertyChanging(); this._Memory = value; this.SendPropertyChanged("Memory"); this.OnMemoryChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FreeMemory", DbType="Int NOT NULL")] public int FreeMemory { get { return this._FreeMemory; } set { if ((this._FreeMemory != value)) { this.OnFreeMemoryChanging(value); this.SendPropertyChanging(); this._FreeMemory = value; this.SendPropertyChanged("FreeMemory"); this.OnFreeMemoryChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Statistics_SlaveStatistics", Storage="_Statistics", ThisKey="StatisticsId", OtherKey="StatisticsId", IsForeignKey=true)] public Statistics Statistics { get { return this._Statistics.Entity; } set { Statistics previousValue = this._Statistics.Entity; if (((previousValue != value) || (this._Statistics.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { this._Statistics.Entity = null; previousValue.SlaveStatistics.Remove(this); } this._Statistics.Entity = value; if ((value != null)) { value.SlaveStatistics.Add(this); this._StatisticsId = value.StatisticsId; } else { this._StatisticsId = default(System.Guid); } this.SendPropertyChanged("Statistics"); } } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="")] public partial class Statistics : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _StatisticsId; private System.DateTime _Timestamp; private EntitySet _UserStatistics; private EntitySet _SlaveStatistics; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnStatisticsIdChanging(System.Guid value); partial void OnStatisticsIdChanged(); partial void OnTimestampChanging(System.DateTime value); partial void OnTimestampChanged(); #endregion public Statistics() { this._UserStatistics = new EntitySet(new Action(this.attach_UserStatistics), new Action(this.detach_UserStatistics)); this._SlaveStatistics = new EntitySet(new Action(this.attach_SlaveStatistics), new Action(this.detach_SlaveStatistics)); OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StatisticsId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] public System.Guid StatisticsId { get { return this._StatisticsId; } set { if ((this._StatisticsId != value)) { this.OnStatisticsIdChanging(value); this.SendPropertyChanging(); this._StatisticsId = value; this.SendPropertyChanged("StatisticsId"); this.OnStatisticsIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Timestamp")] public System.DateTime Timestamp { get { return this._Timestamp; } set { if ((this._Timestamp != value)) { this.OnTimestampChanging(value); this.SendPropertyChanging(); this._Timestamp = value; this.SendPropertyChanged("Timestamp"); this.OnTimestampChanged(); } } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Statistics_UserStatistics", Storage="_UserStatistics", ThisKey="StatisticsId", OtherKey="StatisticsId")] public EntitySet UserStatistics { get { return this._UserStatistics; } set { this._UserStatistics.Assign(value); } } [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Statistics_SlaveStatistics", Storage="_SlaveStatistics", ThisKey="StatisticsId", OtherKey="StatisticsId")] public EntitySet SlaveStatistics { get { return this._SlaveStatistics; } set { this._SlaveStatistics.Assign(value); } } public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; protected virtual void SendPropertyChanging() { if ((this.PropertyChanging != null)) { this.PropertyChanging(this, emptyChangingEventArgs); } } protected virtual void SendPropertyChanged(String propertyName) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void attach_UserStatistics(UserStatistics entity) { this.SendPropertyChanging(); entity.Statistics = this; } private void detach_UserStatistics(UserStatistics entity) { this.SendPropertyChanging(); entity.Statistics = null; } private void attach_SlaveStatistics(SlaveStatistics entity) { this.SendPropertyChanging(); entity.Statistics = this; } private void detach_SlaveStatistics(SlaveStatistics entity) { this.SendPropertyChanging(); entity.Statistics = null; } } } #pragma warning restore 1591