Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/09 15:13:43 (15 years ago)
Author:
svonolfe
Message:

Implementd ClientConfigAdapter (#372)

File:
1 edited

Legend:

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

    r1947 r1999  
    4646        private AssignedResourcesDataTable tableAssignedResources;
    4747       
     48        private ClientConfigDataTable tableClientConfig;
     49       
    4850        private global::System.Data.DataRelation relationClient_is_a_Resource;
    4951       
     
    7173       
    7274        private global::System.Data.DataRelation relationR_56;
     75       
     76        private global::System.Data.DataRelation relationR_37;
    7377       
    7478        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     
    128132                    base.Tables.Add(new AssignedResourcesDataTable(ds.Tables["AssignedResources"]));
    129133                }
     134                if ((ds.Tables["ClientConfig"] != null)) {
     135                    base.Tables.Add(new ClientConfigDataTable(ds.Tables["ClientConfig"]));
     136                }
    130137                this.DataSetName = ds.DataSetName;
    131138                this.Prefix = ds.Prefix;
     
    237244       
    238245        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     246        [global::System.ComponentModel.Browsable(false)]
     247        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
     248        public ClientConfigDataTable ClientConfig {
     249            get {
     250                return this.tableClientConfig;
     251            }
     252        }
     253       
     254        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    239255        [global::System.ComponentModel.BrowsableAttribute(true)]
    240256        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
     
    324340                if ((ds.Tables["AssignedResources"] != null)) {
    325341                    base.Tables.Add(new AssignedResourcesDataTable(ds.Tables["AssignedResources"]));
     342                }
     343                if ((ds.Tables["ClientConfig"] != null)) {
     344                    base.Tables.Add(new ClientConfigDataTable(ds.Tables["ClientConfig"]));
    326345                }
    327346                this.DataSetName = ds.DataSetName;
     
    413432                if ((this.tableAssignedResources != null)) {
    414433                    this.tableAssignedResources.InitVars();
     434                }
     435            }
     436            this.tableClientConfig = ((ClientConfigDataTable)(base.Tables["ClientConfig"]));
     437            if ((initTable == true)) {
     438                if ((this.tableClientConfig != null)) {
     439                    this.tableClientConfig.InitVars();
    415440                }
    416441            }
     
    428453            this.relationR_55 = this.Relations["R_55"];
    429454            this.relationR_56 = this.Relations["R_56"];
     455            this.relationR_37 = this.Relations["R_37"];
    430456        }
    431457       
     
    457483            this.tableAssignedResources = new AssignedResourcesDataTable();
    458484            base.Tables.Add(this.tableAssignedResources);
     485            this.tableClientConfig = new ClientConfigDataTable();
     486            base.Tables.Add(this.tableClientConfig);
    459487            this.relationClient_is_a_Resource = new global::System.Data.DataRelation("Client_is_a_Resource", new global::System.Data.DataColumn[] {
    460488                        this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] {
     
    509537                        this.tableAssignedResources.JobIdColumn}, false);
    510538            this.Relations.Add(this.relationR_56);
     539            this.relationR_37 = new global::System.Data.DataRelation("R_37", new global::System.Data.DataColumn[] {
     540                        this.tableClientConfig.ClientConfigIdColumn}, new global::System.Data.DataColumn[] {
     541                        this.tableClient.ClientConfigIdColumn}, false);
     542            this.Relations.Add(this.relationR_37);
    511543        }
    512544       
     
    558590        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    559591        private bool ShouldSerializeAssignedResources() {
     592            return false;
     593        }
     594       
     595        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     596        private bool ShouldSerializeClientConfig() {
    560597            return false;
    561598        }
     
    634671        public delegate void AssignedResourcesRowChangeEventHandler(object sender, AssignedResourcesRowChangeEvent e);
    635672       
     673        public delegate void ClientConfigRowChangeEventHandler(object sender, ClientConfigRowChangeEvent e);
     674       
    636675        /// <summary>
    637676        ///Represents the strongly named DataTable class.
     
    782821           
    783822            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    784             public ClientRow AddClientRow(ResourceRow parentResourceRowByClient_is_a_Resource, int CPUSpeed, int Memory, System.DateTime Login, string Status, System.Guid ClientConfigId, int NumberOfCores, int NumberOfFreeCores, int FreeMemory) {
     823            public ClientRow AddClientRow(ResourceRow parentResourceRowByClient_is_a_Resource, int CPUSpeed, int Memory, System.DateTime Login, string Status, ClientConfigRow parentClientConfigRowByR_37, int NumberOfCores, int NumberOfFreeCores, int FreeMemory) {
    785824                ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
    786825                object[] columnValuesArray = new object[] {
     
    790829                        Login,
    791830                        Status,
    792                         ClientConfigId,
     831                        null,
    793832                        NumberOfCores,
    794833                        NumberOfFreeCores,
     
    796835                if ((parentResourceRowByClient_is_a_Resource != null)) {
    797836                    columnValuesArray[0] = parentResourceRowByClient_is_a_Resource[0];
     837                }
     838                if ((parentClientConfigRowByR_37 != null)) {
     839                    columnValuesArray[5] = parentClientConfigRowByR_37[0];
    798840                }
    799841                rowClientRow.ItemArray = columnValuesArray;
     
    34563498       
    34573499        /// <summary>
     3500        ///Represents the strongly named DataTable class.
     3501        ///</summary>
     3502        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
     3503        [global::System.Serializable()]
     3504        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
     3505        public partial class ClientConfigDataTable : global::System.Data.TypedTableBase<ClientConfigRow> {
     3506           
     3507            private global::System.Data.DataColumn columnClientConfigId;
     3508           
     3509            private global::System.Data.DataColumn columnUpDownTimeCalendar;
     3510           
     3511            private global::System.Data.DataColumn columnHeartBeatIntervall;
     3512           
     3513            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3514            public ClientConfigDataTable() {
     3515                this.TableName = "ClientConfig";
     3516                this.BeginInit();
     3517                this.InitClass();
     3518                this.EndInit();
     3519            }
     3520           
     3521            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3522            internal ClientConfigDataTable(global::System.Data.DataTable table) {
     3523                this.TableName = table.TableName;
     3524                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
     3525                    this.CaseSensitive = table.CaseSensitive;
     3526                }
     3527                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
     3528                    this.Locale = table.Locale;
     3529                }
     3530                if ((table.Namespace != table.DataSet.Namespace)) {
     3531                    this.Namespace = table.Namespace;
     3532                }
     3533                this.Prefix = table.Prefix;
     3534                this.MinimumCapacity = table.MinimumCapacity;
     3535            }
     3536           
     3537            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3538            protected ClientConfigDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
     3539                    base(info, context) {
     3540                this.InitVars();
     3541            }
     3542           
     3543            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3544            public global::System.Data.DataColumn ClientConfigIdColumn {
     3545                get {
     3546                    return this.columnClientConfigId;
     3547                }
     3548            }
     3549           
     3550            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3551            public global::System.Data.DataColumn UpDownTimeCalendarColumn {
     3552                get {
     3553                    return this.columnUpDownTimeCalendar;
     3554                }
     3555            }
     3556           
     3557            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3558            public global::System.Data.DataColumn HeartBeatIntervallColumn {
     3559                get {
     3560                    return this.columnHeartBeatIntervall;
     3561                }
     3562            }
     3563           
     3564            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3565            [global::System.ComponentModel.Browsable(false)]
     3566            public int Count {
     3567                get {
     3568                    return this.Rows.Count;
     3569                }
     3570            }
     3571           
     3572            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3573            public ClientConfigRow this[int index] {
     3574                get {
     3575                    return ((ClientConfigRow)(this.Rows[index]));
     3576                }
     3577            }
     3578           
     3579            public event ClientConfigRowChangeEventHandler ClientConfigRowChanging;
     3580           
     3581            public event ClientConfigRowChangeEventHandler ClientConfigRowChanged;
     3582           
     3583            public event ClientConfigRowChangeEventHandler ClientConfigRowDeleting;
     3584           
     3585            public event ClientConfigRowChangeEventHandler ClientConfigRowDeleted;
     3586           
     3587            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3588            public void AddClientConfigRow(ClientConfigRow row) {
     3589                this.Rows.Add(row);
     3590            }
     3591           
     3592            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3593            public ClientConfigRow AddClientConfigRow(System.Guid ClientConfigId, string UpDownTimeCalendar, int HeartBeatIntervall) {
     3594                ClientConfigRow rowClientConfigRow = ((ClientConfigRow)(this.NewRow()));
     3595                object[] columnValuesArray = new object[] {
     3596                        ClientConfigId,
     3597                        UpDownTimeCalendar,
     3598                        HeartBeatIntervall};
     3599                rowClientConfigRow.ItemArray = columnValuesArray;
     3600                this.Rows.Add(rowClientConfigRow);
     3601                return rowClientConfigRow;
     3602            }
     3603           
     3604            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3605            public ClientConfigRow FindByClientConfigId(System.Guid ClientConfigId) {
     3606                return ((ClientConfigRow)(this.Rows.Find(new object[] {
     3607                            ClientConfigId})));
     3608            }
     3609           
     3610            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3611            public override global::System.Data.DataTable Clone() {
     3612                ClientConfigDataTable cln = ((ClientConfigDataTable)(base.Clone()));
     3613                cln.InitVars();
     3614                return cln;
     3615            }
     3616           
     3617            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3618            protected override global::System.Data.DataTable CreateInstance() {
     3619                return new ClientConfigDataTable();
     3620            }
     3621           
     3622            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3623            internal void InitVars() {
     3624                this.columnClientConfigId = base.Columns["ClientConfigId"];
     3625                this.columnUpDownTimeCalendar = base.Columns["UpDownTimeCalendar"];
     3626                this.columnHeartBeatIntervall = base.Columns["HeartBeatIntervall"];
     3627            }
     3628           
     3629            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3630            private void InitClass() {
     3631                this.columnClientConfigId = new global::System.Data.DataColumn("ClientConfigId", typeof(global::System.Guid), null, global::System.Data.MappingType.Element);
     3632                base.Columns.Add(this.columnClientConfigId);
     3633                this.columnUpDownTimeCalendar = new global::System.Data.DataColumn("UpDownTimeCalendar", typeof(string), null, global::System.Data.MappingType.Element);
     3634                base.Columns.Add(this.columnUpDownTimeCalendar);
     3635                this.columnHeartBeatIntervall = new global::System.Data.DataColumn("HeartBeatIntervall", typeof(int), null, global::System.Data.MappingType.Element);
     3636                base.Columns.Add(this.columnHeartBeatIntervall);
     3637                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
     3638                                this.columnClientConfigId}, true));
     3639                this.columnClientConfigId.AllowDBNull = false;
     3640                this.columnClientConfigId.Unique = true;
     3641                this.columnUpDownTimeCalendar.MaxLength = 2147483647;
     3642            }
     3643           
     3644            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3645            public ClientConfigRow NewClientConfigRow() {
     3646                return ((ClientConfigRow)(this.NewRow()));
     3647            }
     3648           
     3649            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3650            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
     3651                return new ClientConfigRow(builder);
     3652            }
     3653           
     3654            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3655            protected override global::System.Type GetRowType() {
     3656                return typeof(ClientConfigRow);
     3657            }
     3658           
     3659            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3660            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
     3661                base.OnRowChanged(e);
     3662                if ((this.ClientConfigRowChanged != null)) {
     3663                    this.ClientConfigRowChanged(this, new ClientConfigRowChangeEvent(((ClientConfigRow)(e.Row)), e.Action));
     3664                }
     3665            }
     3666           
     3667            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3668            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
     3669                base.OnRowChanging(e);
     3670                if ((this.ClientConfigRowChanging != null)) {
     3671                    this.ClientConfigRowChanging(this, new ClientConfigRowChangeEvent(((ClientConfigRow)(e.Row)), e.Action));
     3672                }
     3673            }
     3674           
     3675            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3676            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
     3677                base.OnRowDeleted(e);
     3678                if ((this.ClientConfigRowDeleted != null)) {
     3679                    this.ClientConfigRowDeleted(this, new ClientConfigRowChangeEvent(((ClientConfigRow)(e.Row)), e.Action));
     3680                }
     3681            }
     3682           
     3683            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3684            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
     3685                base.OnRowDeleting(e);
     3686                if ((this.ClientConfigRowDeleting != null)) {
     3687                    this.ClientConfigRowDeleting(this, new ClientConfigRowChangeEvent(((ClientConfigRow)(e.Row)), e.Action));
     3688                }
     3689            }
     3690           
     3691            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3692            public void RemoveClientConfigRow(ClientConfigRow row) {
     3693                this.Rows.Remove(row);
     3694            }
     3695           
     3696            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3697            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
     3698                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
     3699                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
     3700                dsHiveServer ds = new dsHiveServer();
     3701                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
     3702                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
     3703                any1.MinOccurs = new decimal(0);
     3704                any1.MaxOccurs = decimal.MaxValue;
     3705                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
     3706                sequence.Items.Add(any1);
     3707                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
     3708                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
     3709                any2.MinOccurs = new decimal(1);
     3710                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
     3711                sequence.Items.Add(any2);
     3712                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
     3713                attribute1.Name = "namespace";
     3714                attribute1.FixedValue = ds.Namespace;
     3715                type.Attributes.Add(attribute1);
     3716                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
     3717                attribute2.Name = "tableTypeName";
     3718                attribute2.FixedValue = "ClientConfigDataTable";
     3719                type.Attributes.Add(attribute2);
     3720                type.Particle = sequence;
     3721                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
     3722                if (xs.Contains(dsSchema.TargetNamespace)) {
     3723                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
     3724                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
     3725                    try {
     3726                        global::System.Xml.Schema.XmlSchema schema = null;
     3727                        dsSchema.Write(s1);
     3728                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
     3729                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
     3730                            s2.SetLength(0);
     3731                            schema.Write(s2);
     3732                            if ((s1.Length == s2.Length)) {
     3733                                s1.Position = 0;
     3734                                s2.Position = 0;
     3735                                for (; ((s1.Position != s1.Length)
     3736                                            && (s1.ReadByte() == s2.ReadByte())); ) {
     3737                                    ;
     3738                                }
     3739                                if ((s1.Position == s1.Length)) {
     3740                                    return type;
     3741                                }
     3742                            }
     3743                        }
     3744                    }
     3745                    finally {
     3746                        if ((s1 != null)) {
     3747                            s1.Close();
     3748                        }
     3749                        if ((s2 != null)) {
     3750                            s2.Close();
     3751                        }
     3752                    }
     3753                }
     3754                xs.Add(dsSchema);
     3755                return type;
     3756            }
     3757        }
     3758       
     3759        /// <summary>
    34583760        ///Represents strongly named DataRow class.
    34593761        ///</summary>
     
    36103912           
    36113913            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3914            public ClientConfigRow ClientConfigRow {
     3915                get {
     3916                    return ((ClientConfigRow)(this.GetParentRow(this.Table.ParentRelations["R_37"])));
     3917                }
     3918                set {
     3919                    this.SetParentRow(value, this.Table.ParentRelations["R_37"]);
     3920                }
     3921            }
     3922           
     3923            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    36123924            public bool IsCPUSpeedNull() {
    36133925                return this.IsNull(this.tableClient.CPUSpeedColumn);
     
    47715083       
    47725084        /// <summary>
     5085        ///Represents strongly named DataRow class.
     5086        ///</summary>
     5087        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
     5088        public partial class ClientConfigRow : global::System.Data.DataRow {
     5089           
     5090            private ClientConfigDataTable tableClientConfig;
     5091           
     5092            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5093            internal ClientConfigRow(global::System.Data.DataRowBuilder rb) :
     5094                    base(rb) {
     5095                this.tableClientConfig = ((ClientConfigDataTable)(this.Table));
     5096            }
     5097           
     5098            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5099            public System.Guid ClientConfigId {
     5100                get {
     5101                    return ((global::System.Guid)(this[this.tableClientConfig.ClientConfigIdColumn]));
     5102                }
     5103                set {
     5104                    this[this.tableClientConfig.ClientConfigIdColumn] = value;
     5105                }
     5106            }
     5107           
     5108            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5109            public string UpDownTimeCalendar {
     5110                get {
     5111                    try {
     5112                        return ((string)(this[this.tableClientConfig.UpDownTimeCalendarColumn]));
     5113                    }
     5114                    catch (global::System.InvalidCastException e) {
     5115                        throw new global::System.Data.StrongTypingException("The value for column \'UpDownTimeCalendar\' in table \'ClientConfig\' is DBNull.", e);
     5116                    }
     5117                }
     5118                set {
     5119                    this[this.tableClientConfig.UpDownTimeCalendarColumn] = value;
     5120                }
     5121            }
     5122           
     5123            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5124            public int HeartBeatIntervall {
     5125                get {
     5126                    try {
     5127                        return ((int)(this[this.tableClientConfig.HeartBeatIntervallColumn]));
     5128                    }
     5129                    catch (global::System.InvalidCastException e) {
     5130                        throw new global::System.Data.StrongTypingException("The value for column \'HeartBeatIntervall\' in table \'ClientConfig\' is DBNull.", e);
     5131                    }
     5132                }
     5133                set {
     5134                    this[this.tableClientConfig.HeartBeatIntervallColumn] = value;
     5135                }
     5136            }
     5137           
     5138            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5139            public bool IsUpDownTimeCalendarNull() {
     5140                return this.IsNull(this.tableClientConfig.UpDownTimeCalendarColumn);
     5141            }
     5142           
     5143            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5144            public void SetUpDownTimeCalendarNull() {
     5145                this[this.tableClientConfig.UpDownTimeCalendarColumn] = global::System.Convert.DBNull;
     5146            }
     5147           
     5148            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5149            public bool IsHeartBeatIntervallNull() {
     5150                return this.IsNull(this.tableClientConfig.HeartBeatIntervallColumn);
     5151            }
     5152           
     5153            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5154            public void SetHeartBeatIntervallNull() {
     5155                this[this.tableClientConfig.HeartBeatIntervallColumn] = global::System.Convert.DBNull;
     5156            }
     5157           
     5158            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5159            public ClientRow[] GetClientRows() {
     5160                if ((this.Table.ChildRelations["R_37"] == null)) {
     5161                    return new ClientRow[0];
     5162                }
     5163                else {
     5164                    return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["R_37"])));
     5165                }
     5166            }
     5167        }
     5168       
     5169        /// <summary>
    47735170        ///Row event argument class
    47745171        ///</summary>
     
    50675464            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    50685465            public AssignedResourcesRow Row {
     5466                get {
     5467                    return this.eventRow;
     5468                }
     5469            }
     5470           
     5471            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5472            public global::System.Data.DataRowAction Action {
     5473                get {
     5474                    return this.eventAction;
     5475                }
     5476            }
     5477        }
     5478       
     5479        /// <summary>
     5480        ///Row event argument class
     5481        ///</summary>
     5482        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
     5483        public class ClientConfigRowChangeEvent : global::System.EventArgs {
     5484           
     5485            private ClientConfigRow eventRow;
     5486           
     5487            private global::System.Data.DataRowAction eventAction;
     5488           
     5489            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5490            public ClientConfigRowChangeEvent(ClientConfigRow row, global::System.Data.DataRowAction action) {
     5491                this.eventRow = row;
     5492                this.eventAction = action;
     5493            }
     5494           
     5495            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     5496            public ClientConfigRow Row {
    50695497                get {
    50705498                    return this.eventRow;
     
    993510363   
    993610364    /// <summary>
     10365    ///Represents the connection and commands used to retrieve and save data.
     10366    ///</summary>
     10367    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
     10368    [global::System.ComponentModel.DesignerCategoryAttribute("code")]
     10369    [global::System.ComponentModel.ToolboxItem(true)]
     10370    [global::System.ComponentModel.DataObjectAttribute(true)]
     10371    [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
     10372        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
     10373    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10374    public partial class ClientConfigTableAdapter : global::System.ComponentModel.Component {
     10375       
     10376        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
     10377       
     10378        private global::System.Data.SqlClient.SqlConnection _connection;
     10379       
     10380        private global::System.Data.SqlClient.SqlTransaction _transaction;
     10381       
     10382        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
     10383       
     10384        private bool _clearBeforeFill;
     10385       
     10386        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10387        public ClientConfigTableAdapter() {
     10388            this.ClearBeforeFill = true;
     10389        }
     10390       
     10391        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10392        protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
     10393            get {
     10394                if ((this._adapter == null)) {
     10395                    this.InitAdapter();
     10396                }
     10397                return this._adapter;
     10398            }
     10399        }
     10400       
     10401        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10402        internal global::System.Data.SqlClient.SqlConnection Connection {
     10403            get {
     10404                if ((this._connection == null)) {
     10405                    this.InitConnection();
     10406                }
     10407                return this._connection;
     10408            }
     10409            set {
     10410                this._connection = value;
     10411                if ((this.Adapter.InsertCommand != null)) {
     10412                    this.Adapter.InsertCommand.Connection = value;
     10413                }
     10414                if ((this.Adapter.DeleteCommand != null)) {
     10415                    this.Adapter.DeleteCommand.Connection = value;
     10416                }
     10417                if ((this.Adapter.UpdateCommand != null)) {
     10418                    this.Adapter.UpdateCommand.Connection = value;
     10419                }
     10420                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
     10421                    if ((this.CommandCollection[i] != null)) {
     10422                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
     10423                    }
     10424                }
     10425            }
     10426        }
     10427       
     10428        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10429        internal global::System.Data.SqlClient.SqlTransaction Transaction {
     10430            get {
     10431                return this._transaction;
     10432            }
     10433            set {
     10434                this._transaction = value;
     10435                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
     10436                    this.CommandCollection[i].Transaction = this._transaction;
     10437                }
     10438                if (((this.Adapter != null)
     10439                            && (this.Adapter.DeleteCommand != null))) {
     10440                    this.Adapter.DeleteCommand.Transaction = this._transaction;
     10441                }
     10442                if (((this.Adapter != null)
     10443                            && (this.Adapter.InsertCommand != null))) {
     10444                    this.Adapter.InsertCommand.Transaction = this._transaction;
     10445                }
     10446                if (((this.Adapter != null)
     10447                            && (this.Adapter.UpdateCommand != null))) {
     10448                    this.Adapter.UpdateCommand.Transaction = this._transaction;
     10449                }
     10450            }
     10451        }
     10452       
     10453        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10454        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
     10455            get {
     10456                if ((this._commandCollection == null)) {
     10457                    this.InitCommandCollection();
     10458                }
     10459                return this._commandCollection;
     10460            }
     10461        }
     10462       
     10463        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10464        public bool ClearBeforeFill {
     10465            get {
     10466                return this._clearBeforeFill;
     10467            }
     10468            set {
     10469                this._clearBeforeFill = value;
     10470            }
     10471        }
     10472       
     10473        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10474        private void InitAdapter() {
     10475            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     10476            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     10477            tableMapping.SourceTable = "Table";
     10478            tableMapping.DataSetTable = "ClientConfig";
     10479            tableMapping.ColumnMappings.Add("ClientConfigId", "ClientConfigId");
     10480            tableMapping.ColumnMappings.Add("UpDownTimeCalendar", "UpDownTimeCalendar");
     10481            tableMapping.ColumnMappings.Add("HeartBeatIntervall", "HeartBeatIntervall");
     10482            this._adapter.TableMappings.Add(tableMapping);
     10483            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
     10484            this._adapter.DeleteCommand.Connection = this.Connection;
     10485            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientConfig] WHERE (([ClientConfigId] = @Original_ClientConfi" +
     10486                "gId) AND ((@IsNull_HeartBeatIntervall = 1 AND [HeartBeatIntervall] IS NULL) OR (" +
     10487                "[HeartBeatIntervall] = @Original_HeartBeatIntervall)))";
     10488            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     10489            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     10490            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     10491            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     10492            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     10493            this._adapter.InsertCommand.Connection = this.Connection;
     10494            this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ClientConfig] ([ClientConfigId], [UpDownTimeCalendar], [HeartBeatIntervall]) VALUES (@ClientConfigId, @UpDownTimeCalendar, @HeartBeatIntervall);
     10495SELECT ClientConfigId, UpDownTimeCalendar, HeartBeatIntervall FROM ClientConfig WHERE (ClientConfigId = @ClientConfigId)";
     10496            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     10497            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10498            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UpDownTimeCalendar", global::System.Data.SqlDbType.Xml, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UpDownTimeCalendar", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10499            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10500            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
     10501            this._adapter.UpdateCommand.Connection = this.Connection;
     10502            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientConfig] SET [ClientConfigId] = @ClientConfigId, [UpDownTimeCalendar] = @UpDownTimeCalendar, [HeartBeatIntervall] = @HeartBeatIntervall WHERE (([ClientConfigId] = @Original_ClientConfigId) AND ((@IsNull_HeartBeatIntervall = 1 AND [HeartBeatIntervall] IS NULL) OR ([HeartBeatIntervall] = @Original_HeartBeatIntervall)));
     10503SELECT ClientConfigId, UpDownTimeCalendar, HeartBeatIntervall FROM ClientConfig WHERE (ClientConfigId = @ClientConfigId)";
     10504            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     10505            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10506            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UpDownTimeCalendar", global::System.Data.SqlDbType.Xml, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UpDownTimeCalendar", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10507            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10508            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     10509            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     10510            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HeartBeatIntervall", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HeartBeatIntervall", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     10511        }
     10512       
     10513        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10514        private void InitConnection() {
     10515            this._connection = new global::System.Data.SqlClient.SqlConnection();
     10516            this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
     10517        }
     10518       
     10519        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10520        private void InitCommandCollection() {
     10521            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
     10522            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
     10523            this._commandCollection[0].Connection = this.Connection;
     10524            this._commandCollection[0].CommandText = "SELECT * FROM dbo.ClientConfig";
     10525            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
     10526            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
     10527            this._commandCollection[1].Connection = this.Connection;
     10528            this._commandCollection[1].CommandText = "SELECT * FROM dbo.ClientConfig WHERE ClientConfigId = @Id";
     10529            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
     10530            this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     10531        }
     10532       
     10533        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10534        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10535        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
     10536        public virtual int Fill(dsHiveServer.ClientConfigDataTable dataTable) {
     10537            this.Adapter.SelectCommand = this.CommandCollection[0];
     10538            if ((this.ClearBeforeFill == true)) {
     10539                dataTable.Clear();
     10540            }
     10541            int returnValue = this.Adapter.Fill(dataTable);
     10542            return returnValue;
     10543        }
     10544       
     10545        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10546        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10547        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
     10548        public virtual dsHiveServer.ClientConfigDataTable GetData() {
     10549            this.Adapter.SelectCommand = this.CommandCollection[0];
     10550            dsHiveServer.ClientConfigDataTable dataTable = new dsHiveServer.ClientConfigDataTable();
     10551            this.Adapter.Fill(dataTable);
     10552            return dataTable;
     10553        }
     10554       
     10555        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10556        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10557        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
     10558        public virtual int FillById(dsHiveServer.ClientConfigDataTable dataTable, System.Guid Id) {
     10559            this.Adapter.SelectCommand = this.CommandCollection[1];
     10560            this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id));
     10561            if ((this.ClearBeforeFill == true)) {
     10562                dataTable.Clear();
     10563            }
     10564            int returnValue = this.Adapter.Fill(dataTable);
     10565            return returnValue;
     10566        }
     10567       
     10568        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10569        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10570        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
     10571        public virtual dsHiveServer.ClientConfigDataTable GetDataById(System.Guid Id) {
     10572            this.Adapter.SelectCommand = this.CommandCollection[1];
     10573            this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id));
     10574            dsHiveServer.ClientConfigDataTable dataTable = new dsHiveServer.ClientConfigDataTable();
     10575            this.Adapter.Fill(dataTable);
     10576            return dataTable;
     10577        }
     10578       
     10579        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10580        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10581        public virtual int Update(dsHiveServer.ClientConfigDataTable dataTable) {
     10582            return this.Adapter.Update(dataTable);
     10583        }
     10584       
     10585        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10586        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10587        public virtual int Update(dsHiveServer dataSet) {
     10588            return this.Adapter.Update(dataSet, "ClientConfig");
     10589        }
     10590       
     10591        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10592        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10593        public virtual int Update(global::System.Data.DataRow dataRow) {
     10594            return this.Adapter.Update(new global::System.Data.DataRow[] {
     10595                        dataRow});
     10596        }
     10597       
     10598        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10599        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10600        public virtual int Update(global::System.Data.DataRow[] dataRows) {
     10601            return this.Adapter.Update(dataRows);
     10602        }
     10603       
     10604        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10605        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10606        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
     10607        public virtual int Delete(System.Guid Original_ClientConfigId, global::System.Nullable<int> Original_HeartBeatIntervall) {
     10608            this.Adapter.DeleteCommand.Parameters[0].Value = ((System.Guid)(Original_ClientConfigId));
     10609            if ((Original_HeartBeatIntervall.HasValue == true)) {
     10610                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
     10611                this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_HeartBeatIntervall.Value));
     10612            }
     10613            else {
     10614                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
     10615                this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
     10616            }
     10617            global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
     10618            if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
     10619                        != global::System.Data.ConnectionState.Open)) {
     10620                this.Adapter.DeleteCommand.Connection.Open();
     10621            }
     10622            try {
     10623                int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
     10624                return returnValue;
     10625            }
     10626            finally {
     10627                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
     10628                    this.Adapter.DeleteCommand.Connection.Close();
     10629                }
     10630            }
     10631        }
     10632       
     10633        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10634        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10635        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
     10636        public virtual int Insert(System.Guid ClientConfigId, object UpDownTimeCalendar, global::System.Nullable<int> HeartBeatIntervall) {
     10637            this.Adapter.InsertCommand.Parameters[0].Value = ((System.Guid)(ClientConfigId));
     10638            if ((UpDownTimeCalendar == null)) {
     10639                this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
     10640            }
     10641            else {
     10642                this.Adapter.InsertCommand.Parameters[1].Value = ((object)(UpDownTimeCalendar));
     10643            }
     10644            if ((HeartBeatIntervall.HasValue == true)) {
     10645                this.Adapter.InsertCommand.Parameters[2].Value = ((int)(HeartBeatIntervall.Value));
     10646            }
     10647            else {
     10648                this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
     10649            }
     10650            global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
     10651            if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
     10652                        != global::System.Data.ConnectionState.Open)) {
     10653                this.Adapter.InsertCommand.Connection.Open();
     10654            }
     10655            try {
     10656                int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
     10657                return returnValue;
     10658            }
     10659            finally {
     10660                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
     10661                    this.Adapter.InsertCommand.Connection.Close();
     10662                }
     10663            }
     10664        }
     10665       
     10666        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10667        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10668        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
     10669        public virtual int Update(System.Guid ClientConfigId, object UpDownTimeCalendar, global::System.Nullable<int> HeartBeatIntervall, System.Guid Original_ClientConfigId, global::System.Nullable<int> Original_HeartBeatIntervall) {
     10670            this.Adapter.UpdateCommand.Parameters[0].Value = ((System.Guid)(ClientConfigId));
     10671            if ((UpDownTimeCalendar == null)) {
     10672                this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
     10673            }
     10674            else {
     10675                this.Adapter.UpdateCommand.Parameters[1].Value = ((object)(UpDownTimeCalendar));
     10676            }
     10677            if ((HeartBeatIntervall.HasValue == true)) {
     10678                this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(HeartBeatIntervall.Value));
     10679            }
     10680            else {
     10681                this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
     10682            }
     10683            this.Adapter.UpdateCommand.Parameters[3].Value = ((System.Guid)(Original_ClientConfigId));
     10684            if ((Original_HeartBeatIntervall.HasValue == true)) {
     10685                this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
     10686                this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_HeartBeatIntervall.Value));
     10687            }
     10688            else {
     10689                this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
     10690                this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
     10691            }
     10692            global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
     10693            if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
     10694                        != global::System.Data.ConnectionState.Open)) {
     10695                this.Adapter.UpdateCommand.Connection.Open();
     10696            }
     10697            try {
     10698                int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
     10699                return returnValue;
     10700            }
     10701            finally {
     10702                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
     10703                    this.Adapter.UpdateCommand.Connection.Close();
     10704                }
     10705            }
     10706        }
     10707       
     10708        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10709        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     10710        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
     10711        public virtual int Update(object UpDownTimeCalendar, global::System.Nullable<int> HeartBeatIntervall, System.Guid Original_ClientConfigId, global::System.Nullable<int> Original_HeartBeatIntervall) {
     10712            return this.Update(Original_ClientConfigId, UpDownTimeCalendar, HeartBeatIntervall, Original_ClientConfigId, Original_HeartBeatIntervall);
     10713        }
     10714    }
     10715   
     10716    /// <summary>
    993710717    ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
    993810718    ///</summary>
     
    996710747        private AssignedResourcesTableAdapter _assignedResourcesTableAdapter;
    996810748       
     10749        private ClientConfigTableAdapter _clientConfigTableAdapter;
     10750       
    996910751        private bool _backupDataSetBeforeUpdate;
    997010752       
     
    1011210894       
    1011310895        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     10896        [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
     10897            "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
     10898            "", "System.Drawing.Design.UITypeEditor")]
     10899        public ClientConfigTableAdapter ClientConfigTableAdapter {
     10900            get {
     10901                return this._clientConfigTableAdapter;
     10902            }
     10903            set {
     10904                this._clientConfigTableAdapter = value;
     10905            }
     10906        }
     10907       
     10908        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    1011410909        public bool BackupDataSetBeforeUpdate {
    1011510910            get {
     
    1016710962                            && (this._assignedResourcesTableAdapter.Connection != null))) {
    1016810963                    return this._assignedResourcesTableAdapter.Connection;
     10964                }
     10965                if (((this._clientConfigTableAdapter != null)
     10966                            && (this._clientConfigTableAdapter.Connection != null))) {
     10967                    return this._clientConfigTableAdapter.Connection;
    1016910968                }
    1017010969                return null;
     
    1020811007                }
    1020911008                if ((this._assignedResourcesTableAdapter != null)) {
     11009                    count = (count + 1);
     11010                }
     11011                if ((this._clientConfigTableAdapter != null)) {
    1021011012                    count = (count + 1);
    1021111013                }
     
    1022911031                }
    1023011032            }
     11033            if ((this._clientConfigTableAdapter != null)) {
     11034                global::System.Data.DataRow[] updatedRows = dataSet.ClientConfig.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     11035                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
     11036                if (((updatedRows != null)
     11037                            && (0 < updatedRows.Length))) {
     11038                    result = (result + this._clientConfigTableAdapter.Update(updatedRows));
     11039                    allChangedRows.AddRange(updatedRows);
     11040                }
     11041            }
     11042            if ((this._clientTableAdapter != null)) {
     11043                global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     11044                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
     11045                if (((updatedRows != null)
     11046                            && (0 < updatedRows.Length))) {
     11047                    result = (result + this._clientTableAdapter.Update(updatedRows));
     11048                    allChangedRows.AddRange(updatedRows);
     11049                }
     11050            }
    1023111051            if ((this._projectTableAdapter != null)) {
    1023211052                global::System.Data.DataRow[] updatedRows = dataSet.Project.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     
    1023811058                }
    1023911059            }
    10240             if ((this._clientTableAdapter != null)) {
    10241                 global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
    10242                 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
    10243                 if (((updatedRows != null)
    10244                             && (0 < updatedRows.Length))) {
    10245                     result = (result + this._clientTableAdapter.Update(updatedRows));
    10246                     allChangedRows.AddRange(updatedRows);
    10247                 }
    10248             }
    1024911060            if ((this._pluginInfoTableAdapter != null)) {
    1025011061                global::System.Data.DataRow[] updatedRows = dataSet.PluginInfo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     
    1025611067                }
    1025711068            }
     11069            if ((this._clientGroupTableAdapter != null)) {
     11070                global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     11071                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
     11072                if (((updatedRows != null)
     11073                            && (0 < updatedRows.Length))) {
     11074                    result = (result + this._clientGroupTableAdapter.Update(updatedRows));
     11075                    allChangedRows.AddRange(updatedRows);
     11076                }
     11077            }
    1025811078            if ((this._jobTableAdapter != null)) {
    1025911079                global::System.Data.DataRow[] updatedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     
    1026511085                }
    1026611086            }
    10267             if ((this._clientGroupTableAdapter != null)) {
    10268                 global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
    10269                 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
    10270                 if (((updatedRows != null)
    10271                             && (0 < updatedRows.Length))) {
    10272                     result = (result + this._clientGroupTableAdapter.Update(updatedRows));
    10273                     allChangedRows.AddRange(updatedRows);
    10274                 }
    10275             }
    1027611087            if ((this._assignedResourcesTableAdapter != null)) {
    1027711088                global::System.Data.DataRow[] updatedRows = dataSet.AssignedResources.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     
    1028311094                }
    1028411095            }
     11096            if ((this._jobResultTableAdapter != null)) {
     11097                global::System.Data.DataRow[] updatedRows = dataSet.JobResult.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     11098                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
     11099                if (((updatedRows != null)
     11100                            && (0 < updatedRows.Length))) {
     11101                    result = (result + this._jobResultTableAdapter.Update(updatedRows));
     11102                    allChangedRows.AddRange(updatedRows);
     11103                }
     11104            }
    1028511105            if ((this._clientGroup_ResourceTableAdapter != null)) {
    1028611106                global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     
    1028911109                            && (0 < updatedRows.Length))) {
    1029011110                    result = (result + this._clientGroup_ResourceTableAdapter.Update(updatedRows));
    10291                     allChangedRows.AddRange(updatedRows);
    10292                 }
    10293             }
    10294             if ((this._jobResultTableAdapter != null)) {
    10295                 global::System.Data.DataRow[] updatedRows = dataSet.JobResult.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
    10296                 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
    10297                 if (((updatedRows != null)
    10298                             && (0 < updatedRows.Length))) {
    10299                     result = (result + this._jobResultTableAdapter.Update(updatedRows));
    1030011111                    allChangedRows.AddRange(updatedRows);
    1030111112                }
     
    1032711138                }
    1032811139            }
     11140            if ((this._clientConfigTableAdapter != null)) {
     11141                global::System.Data.DataRow[] addedRows = dataSet.ClientConfig.Select(null, null, global::System.Data.DataViewRowState.Added);
     11142                if (((addedRows != null)
     11143                            && (0 < addedRows.Length))) {
     11144                    result = (result + this._clientConfigTableAdapter.Update(addedRows));
     11145                    allAddedRows.AddRange(addedRows);
     11146                }
     11147            }
     11148            if ((this._clientTableAdapter != null)) {
     11149                global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
     11150                if (((addedRows != null)
     11151                            && (0 < addedRows.Length))) {
     11152                    result = (result + this._clientTableAdapter.Update(addedRows));
     11153                    allAddedRows.AddRange(addedRows);
     11154                }
     11155            }
    1032911156            if ((this._projectTableAdapter != null)) {
    1033011157                global::System.Data.DataRow[] addedRows = dataSet.Project.Select(null, null, global::System.Data.DataViewRowState.Added);
     
    1033511162                }
    1033611163            }
    10337             if ((this._clientTableAdapter != null)) {
    10338                 global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
    10339                 if (((addedRows != null)
    10340                             && (0 < addedRows.Length))) {
    10341                     result = (result + this._clientTableAdapter.Update(addedRows));
    10342                     allAddedRows.AddRange(addedRows);
    10343                 }
    10344             }
    1034511164            if ((this._pluginInfoTableAdapter != null)) {
    1034611165                global::System.Data.DataRow[] addedRows = dataSet.PluginInfo.Select(null, null, global::System.Data.DataViewRowState.Added);
     
    1035111170                }
    1035211171            }
     11172            if ((this._clientGroupTableAdapter != null)) {
     11173                global::System.Data.DataRow[] addedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Added);
     11174                if (((addedRows != null)
     11175                            && (0 < addedRows.Length))) {
     11176                    result = (result + this._clientGroupTableAdapter.Update(addedRows));
     11177                    allAddedRows.AddRange(addedRows);
     11178                }
     11179            }
    1035311180            if ((this._jobTableAdapter != null)) {
    1035411181                global::System.Data.DataRow[] addedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Added);
     
    1035911186                }
    1036011187            }
    10361             if ((this._clientGroupTableAdapter != null)) {
    10362                 global::System.Data.DataRow[] addedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Added);
    10363                 if (((addedRows != null)
    10364                             && (0 < addedRows.Length))) {
    10365                     result = (result + this._clientGroupTableAdapter.Update(addedRows));
    10366                     allAddedRows.AddRange(addedRows);
    10367                 }
    10368             }
    1036911188            if ((this._assignedResourcesTableAdapter != null)) {
    1037011189                global::System.Data.DataRow[] addedRows = dataSet.AssignedResources.Select(null, null, global::System.Data.DataViewRowState.Added);
     
    1037511194                }
    1037611195            }
     11196            if ((this._jobResultTableAdapter != null)) {
     11197                global::System.Data.DataRow[] addedRows = dataSet.JobResult.Select(null, null, global::System.Data.DataViewRowState.Added);
     11198                if (((addedRows != null)
     11199                            && (0 < addedRows.Length))) {
     11200                    result = (result + this._jobResultTableAdapter.Update(addedRows));
     11201                    allAddedRows.AddRange(addedRows);
     11202                }
     11203            }
    1037711204            if ((this._clientGroup_ResourceTableAdapter != null)) {
    1037811205                global::System.Data.DataRow[] addedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Added);
     
    1038011207                            && (0 < addedRows.Length))) {
    1038111208                    result = (result + this._clientGroup_ResourceTableAdapter.Update(addedRows));
    10382                     allAddedRows.AddRange(addedRows);
    10383                 }
    10384             }
    10385             if ((this._jobResultTableAdapter != null)) {
    10386                 global::System.Data.DataRow[] addedRows = dataSet.JobResult.Select(null, null, global::System.Data.DataViewRowState.Added);
    10387                 if (((addedRows != null)
    10388                             && (0 < addedRows.Length))) {
    10389                     result = (result + this._jobResultTableAdapter.Update(addedRows));
    1039011209                    allAddedRows.AddRange(addedRows);
    1039111210                }
     
    1041611235                }
    1041711236            }
     11237            if ((this._clientGroup_ResourceTableAdapter != null)) {
     11238                global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     11239                if (((deletedRows != null)
     11240                            && (0 < deletedRows.Length))) {
     11241                    result = (result + this._clientGroup_ResourceTableAdapter.Update(deletedRows));
     11242                    allChangedRows.AddRange(deletedRows);
     11243                }
     11244            }
    1041811245            if ((this._jobResultTableAdapter != null)) {
    1041911246                global::System.Data.DataRow[] deletedRows = dataSet.JobResult.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     
    1042411251                }
    1042511252            }
    10426             if ((this._clientGroup_ResourceTableAdapter != null)) {
    10427                 global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Deleted);
    10428                 if (((deletedRows != null)
    10429                             && (0 < deletedRows.Length))) {
    10430                     result = (result + this._clientGroup_ResourceTableAdapter.Update(deletedRows));
    10431                     allChangedRows.AddRange(deletedRows);
    10432                 }
    10433             }
    1043411253            if ((this._assignedResourcesTableAdapter != null)) {
    1043511254                global::System.Data.DataRow[] deletedRows = dataSet.AssignedResources.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     
    1044011259                }
    1044111260            }
     11261            if ((this._jobTableAdapter != null)) {
     11262                global::System.Data.DataRow[] deletedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     11263                if (((deletedRows != null)
     11264                            && (0 < deletedRows.Length))) {
     11265                    result = (result + this._jobTableAdapter.Update(deletedRows));
     11266                    allChangedRows.AddRange(deletedRows);
     11267                }
     11268            }
    1044211269            if ((this._clientGroupTableAdapter != null)) {
    1044311270                global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     
    1044811275                }
    1044911276            }
    10450             if ((this._jobTableAdapter != null)) {
    10451                 global::System.Data.DataRow[] deletedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Deleted);
    10452                 if (((deletedRows != null)
    10453                             && (0 < deletedRows.Length))) {
    10454                     result = (result + this._jobTableAdapter.Update(deletedRows));
    10455                     allChangedRows.AddRange(deletedRows);
    10456                 }
    10457             }
    1045811277            if ((this._pluginInfoTableAdapter != null)) {
    1045911278                global::System.Data.DataRow[] deletedRows = dataSet.PluginInfo.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     
    1046411283                }
    1046511284            }
     11285            if ((this._projectTableAdapter != null)) {
     11286                global::System.Data.DataRow[] deletedRows = dataSet.Project.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     11287                if (((deletedRows != null)
     11288                            && (0 < deletedRows.Length))) {
     11289                    result = (result + this._projectTableAdapter.Update(deletedRows));
     11290                    allChangedRows.AddRange(deletedRows);
     11291                }
     11292            }
    1046611293            if ((this._clientTableAdapter != null)) {
    1046711294                global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     
    1047211299                }
    1047311300            }
    10474             if ((this._projectTableAdapter != null)) {
    10475                 global::System.Data.DataRow[] deletedRows = dataSet.Project.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     11301            if ((this._clientConfigTableAdapter != null)) {
     11302                global::System.Data.DataRow[] deletedRows = dataSet.ClientConfig.Select(null, null, global::System.Data.DataViewRowState.Deleted);
    1047611303                if (((deletedRows != null)
    1047711304                            && (0 < deletedRows.Length))) {
    10478                     result = (result + this._projectTableAdapter.Update(deletedRows));
     11305                    result = (result + this._clientConfigTableAdapter.Update(deletedRows));
    1047911306                    allChangedRows.AddRange(deletedRows);
    1048011307                }
     
    1057211399            if (((this._assignedResourcesTableAdapter != null)
    1057311400                        && (this.MatchTableAdapterConnection(this._assignedResourcesTableAdapter.Connection) == false))) {
     11401                throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
     11402                        "tring.");
     11403            }
     11404            if (((this._clientConfigTableAdapter != null)
     11405                        && (this.MatchTableAdapterConnection(this._clientConfigTableAdapter.Connection) == false))) {
    1057411406                throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
    1057511407                        "tring.");
     
    1069511527                        this._assignedResourcesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
    1069611528                        adaptersWithAcceptChangesDuringUpdate.Add(this._assignedResourcesTableAdapter.Adapter);
     11529                    }
     11530                }
     11531                if ((this._clientConfigTableAdapter != null)) {
     11532                    revertConnections.Add(this._clientConfigTableAdapter, this._clientConfigTableAdapter.Connection);
     11533                    this._clientConfigTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
     11534                    this._clientConfigTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
     11535                    if (this._clientConfigTableAdapter.Adapter.AcceptChangesDuringUpdate) {
     11536                        this._clientConfigTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
     11537                        adaptersWithAcceptChangesDuringUpdate.Add(this._clientConfigTableAdapter.Adapter);
    1069711538                    }
    1069811539                }
     
    1079511636                    this._assignedResourcesTableAdapter.Transaction = null;
    1079611637                }
     11638                if ((this._clientConfigTableAdapter != null)) {
     11639                    this._clientConfigTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientConfigTableAdapter]));
     11640                    this._clientConfigTableAdapter.Transaction = null;
     11641                }
    1079711642                if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
    1079811643                    global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
Note: See TracChangeset for help on using the changeset viewer.