- Timestamp:
- 09/24/12 15:24:24 (12 years ago)
- Location:
- branches/HiveTaskScheduler
- Files:
-
- 1 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveTaskScheduler/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml
r7916 r8687 42 42 <Association Name="Resource_Downtime" Member="Downtimes" Storage="_UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="Downtime" /> 43 43 <Association Name="Resource_StateLog" Member="StateLogs" ThisKey="ResourceId" OtherKey="SlaveId" Type="StateLog" /> 44 <Association Name="Resource_ SlavePermission" Member="ResourcePermissions" ThisKey="ResourceId" OtherKey="ResourceId" Type="ResourcePermission" />44 <Association Name="Resource_ResourcePermission" Member="ResourcePermissions" ThisKey="ResourceId" OtherKey="ResourceId" Type="ResourcePermission" /> 45 45 <Association Name="Resource_Resource" Member="ParentResource" ThisKey="ParentResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" /> 46 46 <Type Name="Slave" InheritanceCode="Slave" IsInheritanceDefault="true"> … … 200 200 <Column Name="GrantedUserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> 201 201 <Column Name="GrantedByUserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" /> 202 <Association Name="Resource_SlavePermission" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" /> 202 <Association Name="Resource_ResourcePermission" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" /> 203 </Type> 204 </Table> 205 <Table Name="" Member="UserPriorities"> 206 <Type Name="UserPriority"> 207 <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> 203 208 </Type> 204 209 </Table> -
branches/HiveTaskScheduler/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml.layout
r7916 r8687 57 57 </nestedChildShapes> 58 58 </classShape> 59 <inheritanceConnector edgePoints="[(11.25 : 1.98159912109375); (10.875 : 1.98159912109375)]" fixedFrom=" Algorithm" fixedTo="Algorithm" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">59 <inheritanceConnector edgePoints="[(11.25 : 1.98159912109375); (10.875 : 1.98159912109375)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62"> 60 60 <nodes> 61 61 <classShapeMoniker Id="706a4581-6daf-4e71-ae2a-87d50b27a051" /> … … 63 63 </nodes> 64 64 </inheritanceConnector> 65 <inheritanceConnector edgePoints="[(13.25 : 1.40469482421875); (13.5 : 1.40469482421875)]" fixedFrom=" Algorithm" fixedTo="Algorithm" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">65 <inheritanceConnector edgePoints="[(13.25 : 1.40469482421875); (13.5 : 1.40469482421875)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62"> 66 66 <nodes> 67 67 <classShapeMoniker Id="706a4581-6daf-4e71-ae2a-87d50b27a051" /> … … 121 121 </nestedChildShapes> 122 122 </classShape> 123 <associationConnector edgePoints="[(11.25 : 1. 45954756054688); (10.9375 : 1.45954756054688); (10.9375 : 0.6875); (2.75 : 0.6875); (2.75 : 1)]" fixedFrom="Algorithm" fixedTo="Algorithm">123 <associationConnector edgePoints="[(11.25 : 1.98159912109375); (10.9375 : 1.98159912109375); (10.9375 : 0.6875); (2.75 : 0.6875); (2.75 : 1)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 124 124 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_StateLog" /> 125 125 <nodes> … … 172 172 </nodes> 173 173 </associationConnector> 174 <associationConnector edgePoints="[(13.25 : 2.73159912109375); (13.5 : 2.73159912109375)]" fixedFrom=" Algorithm" fixedTo="Algorithm">174 <associationConnector edgePoints="[(13.25 : 2.73159912109375); (13.5 : 2.73159912109375)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 175 175 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_Downtime" /> 176 176 <nodes> … … 234 234 </nestedChildShapes> 235 235 </classShape> 236 <associationConnector edgePoints="[(12.5942481820367 : 2.9631982421875); (12.5942481820367 : 3.875)]" fixedFrom=" Algorithm" fixedTo="Algorithm">237 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_ SlavePermission" />236 <associationConnector edgePoints="[(12.5942481820367 : 2.9631982421875); (12.5942481820367 : 3.875)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 237 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_ResourcePermission" /> 238 238 <nodes> 239 239 <classShapeMoniker Id="706a4581-6daf-4e71-ae2a-87d50b27a051" /> … … 241 241 </nodes> 242 242 </associationConnector> 243 <classShape Id="f9e8867f-fd15-4a72-8ca4-4f02cd3f141f" absoluteBounds="4.125, 5.5, 2, 1.0016910807291666"> 244 <DataClassMoniker Name="/HiveDataContext/UserPriority" /> 245 <nestedChildShapes> 246 <elementListCompartment Id="ee41f516-7d9c-4a1d-a1b8-bbe00a6ffea8" absoluteBounds="4.14, 5.96, 1.9700000000000002, 0.44169108072916663" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 247 </nestedChildShapes> 248 </classShape> 243 249 </nestedChildShapes> 244 250 </ordesignerObjectsDiagram> -
branches/HiveTaskScheduler/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
r7916 r8687 82 82 partial void UpdateResourcePermission(ResourcePermission instance); 83 83 partial void DeleteResourcePermission(ResourcePermission instance); 84 partial void InsertUserPriority(UserPriority instance); 85 partial void UpdateUserPriority(UserPriority instance); 86 partial void DeleteUserPriority(UserPriority instance); 84 87 #endregion 85 88 … … 247 250 { 248 251 return this.GetTable<ResourcePermission>(); 252 } 253 } 254 255 public System.Data.Linq.Table<UserPriority> UserPriorities 256 { 257 get 258 { 259 return this.GetTable<UserPriority>(); 249 260 } 250 261 } … … 1087 1098 } 1088 1099 1089 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ SlavePermission", Storage="_ResourcePermissions", ThisKey="ResourceId", OtherKey="ResourceId")]1100 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourcePermission", Storage="_ResourcePermissions", ThisKey="ResourceId", OtherKey="ResourceId")] 1090 1101 public EntitySet<ResourcePermission> ResourcePermissions 1091 1102 { … … 4359 4370 } 4360 4371 4361 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ SlavePermission", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true)]4372 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourcePermission", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true)] 4362 4373 public Resource Resource 4363 4374 { … … 4413 4424 } 4414 4425 } 4426 4427 [global::System.Data.Linq.Mapping.TableAttribute(Name="")] 4428 public partial class UserPriority : INotifyPropertyChanging, INotifyPropertyChanged 4429 { 4430 4431 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 4432 4433 private System.Guid _UserId; 4434 4435 #region Extensibility Method Definitions 4436 partial void OnLoaded(); 4437 partial void OnValidate(System.Data.Linq.ChangeAction action); 4438 partial void OnCreated(); 4439 partial void OnUserIdChanging(System.Guid value); 4440 partial void OnUserIdChanged(); 4441 #endregion 4442 4443 public UserPriority() 4444 { 4445 OnCreated(); 4446 } 4447 4448 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 4449 public System.Guid UserId 4450 { 4451 get 4452 { 4453 return this._UserId; 4454 } 4455 set 4456 { 4457 if ((this._UserId != value)) 4458 { 4459 this.OnUserIdChanging(value); 4460 this.SendPropertyChanging(); 4461 this._UserId = value; 4462 this.SendPropertyChanged("UserId"); 4463 this.OnUserIdChanged(); 4464 } 4465 } 4466 } 4467 4468 public event PropertyChangingEventHandler PropertyChanging; 4469 4470 public event PropertyChangedEventHandler PropertyChanged; 4471 4472 protected virtual void SendPropertyChanging() 4473 { 4474 if ((this.PropertyChanging != null)) 4475 { 4476 this.PropertyChanging(this, emptyChangingEventArgs); 4477 } 4478 } 4479 4480 protected virtual void SendPropertyChanged(String propertyName) 4481 { 4482 if ((this.PropertyChanged != null)) 4483 { 4484 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 4485 } 4486 } 4487 } 4415 4488 } 4416 4489 #pragma warning restore 1591 -
branches/HiveTaskScheduler/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql
r7916 r8687 121 121 CONSTRAINT [PK_Lifecycle] PRIMARY KEY ([LifecycleId]) 122 122 ) 123 CREATE TABLE [UserPriority]( 124 [UserId] UniqueIdentifier NOT NULL, 125 CONSTRAINT [PK_UserPriority] PRIMARY KEY ([UserId]) 126 ) 123 127 CREATE TABLE [DeletedJobStatistics]( 124 128 [UserId] UniqueIdentifier NOT NULL,
Note: See TracChangeset
for help on using the changeset viewer.