Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/03/09 13:41:15 (15 years ago)
Author:
svonolfe
Message:

Updated jobAdapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs

    r1505 r1508  
    60046004            this._adapter.InsertCommand.Connection = this.Connection;
    60056005            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)";
     6006SELECT JobId, ParentJobId, JobState, ResourceId, Percentage, SerializedJob, DateCreated, DateCalculated, Priority, ProjectId, UserId, CoresNeeded, MemoryNeeded FROM Job WHERE (JobId = @JobId) ORDER BY Priority";
    60076007            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
    60086008            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, "", "", ""));
     
    60416041                "([MemoryNeeded] = @Original_MemoryNeeded)));\r\nSELECT JobId, ParentJobId, JobStat" +
    60426042                "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";
    60446045            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
    60456046            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, "", "", ""));
     
    60936094            this._commandCollection[0].Connection = this.Connection;
    60946095            this._commandCollection[0].CommandText = "SELECT * FROM dbo.Job WHERE JobState = @State AND CoresNeeded <= @CoresNeeded AND" +
    6095                 " MemoryNeeded <= @MemoryNeeded";
     6096                " MemoryNeeded <= @MemoryNeeded ORDER BY Priority";
    60966097            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
    60976098            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, "", "", ""));
     
    61006101            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
    61016102            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";
    61036106            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
    61046107            this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
Note: See TracChangeset for help on using the changeset viewer.