- Timestamp:
- 01/22/09 00:30:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs
r1165 r1166 7579 7579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7580 7580 private void InitCommandCollection() { 7581 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[ 7];7581 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; 7582 7582 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 7583 7583 this._commandCollection[0].Connection = this.Connection; … … 7594 7594 this._commandCollection[2].Connection = this.Connection; 7595 7595 this._commandCollection[2].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7596 "dJob, Percentage\r\nFROM Job\r\nWHERE (ResourceId = @ResourceId)"; 7596 "dJob, Percentage\r\nFROM Job\r\nWHERE (JobState = \'calculating\') AND (Re" + 7597 "sourceId = @ResourceId)"; 7597 7598 this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; 7598 7599 this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); … … 7600 7601 this._commandCollection[3].Connection = this.Connection; 7601 7602 this._commandCollection[3].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7602 "dJob, Percentage\r\nFROM Job\r\nWHERE ( JobId = @Id)";7603 "dJob, Percentage\r\nFROM Job\r\nWHERE (ResourceId = @ResourceId)"; 7603 7604 this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; 7604 this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7605 this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7605 7606 this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); 7606 7607 this._commandCollection[4].Connection = this.Connection; 7607 7608 this._commandCollection[4].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7608 "dJob, Percentage\r\nFROM Job\r\nWHERE (Job State = @State)";7609 "dJob, Percentage\r\nFROM Job\r\nWHERE (JobId = @Id)"; 7609 7610 this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; 7610 this._commandCollection[4].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, "", "", ""));7611 this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7611 7612 this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); 7612 7613 this._commandCollection[5].Connection = this.Connection; 7613 7614 this._commandCollection[5].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7614 "dJob, Percentage\r\nFROM Job\r\nWHERE ( ParentJobId = @Id)";7615 "dJob, Percentage\r\nFROM Job\r\nWHERE (JobState = @State)"; 7615 7616 this._commandCollection[5].CommandType = global::System.Data.CommandType.Text; 7616 this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ParentJobId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7617 this._commandCollection[5].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, "", "", "")); 7617 7618 this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); 7618 7619 this._commandCollection[6].Connection = this.Connection; 7619 7620 this._commandCollection[6].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7621 "dJob, Percentage\r\nFROM Job\r\nWHERE (ParentJobId = @Id)"; 7622 this._commandCollection[6].CommandType = global::System.Data.CommandType.Text; 7623 this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ParentJobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7624 this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); 7625 this._commandCollection[7].Connection = this.Connection; 7626 this._commandCollection[7].CommandText = "SELECT JobId, JobState, ParentJobId, PermissionOwnerId, ResourceId, Serialize" + 7620 7627 "dJob, Percentage\r\nFROM Job\r\nWHERE (PermissionOwnerId = @PermissionOw" + 7621 7628 "nerId)"; 7622 this._commandCollection[ 6].CommandType = global::System.Data.CommandType.Text;7623 this._commandCollection[ 6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7629 this._commandCollection[7].CommandType = global::System.Data.CommandType.Text; 7630 this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7624 7631 } 7625 7632 … … 7671 7678 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7672 7679 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7673 public virtual int FillByC lient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<long> ResourceId) {7680 public virtual int FillByCalculatingClient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<long> ResourceId) { 7674 7681 this.Adapter.SelectCommand = this.CommandCollection[2]; 7675 7682 if ((ResourceId.HasValue == true)) { … … 7689 7696 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7690 7697 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7691 public virtual dsHiveServer.JobDataTable GetDataByC lient(global::System.Nullable<long> ResourceId) {7698 public virtual dsHiveServer.JobDataTable GetDataByCalculatingClient(global::System.Nullable<long> ResourceId) { 7692 7699 this.Adapter.SelectCommand = this.CommandCollection[2]; 7693 7700 if ((ResourceId.HasValue == true)) { … … 7705 7712 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7706 7713 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7714 public virtual int FillByClient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<long> ResourceId) { 7715 this.Adapter.SelectCommand = this.CommandCollection[3]; 7716 if ((ResourceId.HasValue == true)) { 7717 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(ResourceId.Value)); 7718 } 7719 else { 7720 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7721 } 7722 if ((this.ClearBeforeFill == true)) { 7723 dataTable.Clear(); 7724 } 7725 int returnValue = this.Adapter.Fill(dataTable); 7726 return returnValue; 7727 } 7728 7729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7730 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7731 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7732 public virtual dsHiveServer.JobDataTable GetDataByClient(global::System.Nullable<long> ResourceId) { 7733 this.Adapter.SelectCommand = this.CommandCollection[3]; 7734 if ((ResourceId.HasValue == true)) { 7735 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(ResourceId.Value)); 7736 } 7737 else { 7738 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7739 } 7740 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); 7741 this.Adapter.Fill(dataTable); 7742 return dataTable; 7743 } 7744 7745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7746 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7747 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7707 7748 public virtual int FillById(dsHiveServer.JobDataTable dataTable, long Id) { 7708 this.Adapter.SelectCommand = this.CommandCollection[ 3];7749 this.Adapter.SelectCommand = this.CommandCollection[4]; 7709 7750 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 7710 7751 if ((this.ClearBeforeFill == true)) { … … 7719 7760 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7720 7761 public virtual dsHiveServer.JobDataTable GetDataById(long Id) { 7721 this.Adapter.SelectCommand = this.CommandCollection[ 3];7762 this.Adapter.SelectCommand = this.CommandCollection[4]; 7722 7763 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 7723 7764 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); … … 7730 7771 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7731 7772 public virtual int FillByState(dsHiveServer.JobDataTable dataTable, string State) { 7732 this.Adapter.SelectCommand = this.CommandCollection[ 4];7773 this.Adapter.SelectCommand = this.CommandCollection[5]; 7733 7774 if ((State == null)) { 7734 7775 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; … … 7748 7789 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7749 7790 public virtual dsHiveServer.JobDataTable GetDataByState(string State) { 7750 this.Adapter.SelectCommand = this.CommandCollection[ 4];7791 this.Adapter.SelectCommand = this.CommandCollection[5]; 7751 7792 if ((State == null)) { 7752 7793 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; … … 7764 7805 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7765 7806 public virtual int FillBySubjobs(dsHiveServer.JobDataTable dataTable, global::System.Nullable<long> Id) { 7766 this.Adapter.SelectCommand = this.CommandCollection[ 5];7807 this.Adapter.SelectCommand = this.CommandCollection[6]; 7767 7808 if ((Id.HasValue == true)) { 7768 7809 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id.Value)); … … 7782 7823 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7783 7824 public virtual dsHiveServer.JobDataTable GetDataBySubjobs(global::System.Nullable<long> Id) { 7784 this.Adapter.SelectCommand = this.CommandCollection[ 5];7825 this.Adapter.SelectCommand = this.CommandCollection[6]; 7785 7826 if ((Id.HasValue == true)) { 7786 7827 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id.Value)); … … 7798 7839 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7799 7840 public virtual int FillByUser(dsHiveServer.JobDataTable dataTable, global::System.Nullable<long> PermissionOwnerId) { 7800 this.Adapter.SelectCommand = this.CommandCollection[ 6];7841 this.Adapter.SelectCommand = this.CommandCollection[7]; 7801 7842 if ((PermissionOwnerId.HasValue == true)) { 7802 7843 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(PermissionOwnerId.Value)); … … 7816 7857 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7817 7858 public virtual dsHiveServer.JobDataTable GetDataByUser(global::System.Nullable<long> PermissionOwnerId) { 7818 this.Adapter.SelectCommand = this.CommandCollection[ 6];7859 this.Adapter.SelectCommand = this.CommandCollection[7]; 7819 7860 if ((PermissionOwnerId.HasValue == true)) { 7820 7861 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(PermissionOwnerId.Value));
Note: See TracChangeset
for help on using the changeset viewer.