- Timestamp:
- 04/03/09 13:41:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs
r1505 r1508 6004 6004 this._adapter.InsertCommand.Connection = this.Connection; 6005 6005 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Job] ([JobId], [ParentJobId], [JobState], [ResourceId], [Percentage], [SerializedJob], [DateCreated], [DateCalculated], [Priority], [ProjectId], [UserId], [CoresNeeded], [MemoryNeeded]) VALUES (@JobId, @ParentJobId, @JobState, @ResourceId, @Percentage, @SerializedJob, @DateCreated, @DateCalculated, @Priority, @ProjectId, @UserId, @CoresNeeded, @MemoryNeeded); 6006 SELECT JobId, ParentJobId, JobState, ResourceId, Percentage, SerializedJob, DateCreated, DateCalculated, Priority, ProjectId, UserId, CoresNeeded, MemoryNeeded FROM Job WHERE (JobId = @JobId) ";6006 SELECT JobId, ParentJobId, JobState, ResourceId, Percentage, SerializedJob, DateCreated, DateCalculated, Priority, ProjectId, UserId, CoresNeeded, MemoryNeeded FROM Job WHERE (JobId = @JobId) ORDER BY Priority"; 6007 6007 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 6008 6008 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JobId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); … … 6041 6041 "([MemoryNeeded] = @Original_MemoryNeeded)));\r\nSELECT JobId, ParentJobId, JobStat" + 6042 6042 "e, ResourceId, Percentage, SerializedJob, DateCreated, DateCalculated, Priority," + 6043 " ProjectId, UserId, CoresNeeded, MemoryNeeded FROM Job WHERE (JobId = @JobId)"; 6043 " ProjectId, UserId, CoresNeeded, MemoryNeeded FROM Job WHERE (JobId = @JobId) OR" + 6044 "DER BY Priority"; 6044 6045 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 6045 6046 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JobId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); … … 6093 6094 this._commandCollection[0].Connection = this.Connection; 6094 6095 this._commandCollection[0].CommandText = "SELECT * FROM dbo.Job WHERE JobState = @State AND CoresNeeded <= @CoresNeeded AND" + 6095 " MemoryNeeded <= @MemoryNeeded ";6096 " MemoryNeeded <= @MemoryNeeded ORDER BY Priority"; 6096 6097 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 6097 6098 this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@State", global::System.Data.SqlDbType.VarChar, 18, global::System.Data.ParameterDirection.Input, 0, 0, "JobState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); … … 6100 6101 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 6101 6102 this._commandCollection[1].Connection = this.Connection; 6102 this._commandCollection[1].CommandText = "SELECT * FROM dbo.Job"; 6103 this._commandCollection[1].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 6104 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 6105 "ROM Job"; 6103 6106 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 6104 6107 this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
Note: See TracChangeset
for help on using the changeset viewer.