- Timestamp:
- 12/15/08 09:48:12 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs
r971 r991 40 40 private ClientGroupDataTable tableClientGroup; 41 41 42 private JobDataTable tableJob; 43 42 44 private ClientGroup_ResourceDataTable tableClientGroup_Resource; 43 45 44 private JobDataTable tableJob;45 46 46 private global::System.Data.DataRelation relationClient_is_a_Resource; 47 47 … … 56 56 private global::System.Data.DataRelation relationClientGroup_is_a_Resource; 57 57 58 private global::System.Data.DataRelation relationR_21; 59 60 private global::System.Data.DataRelation relationR_35; 61 58 62 private global::System.Data.DataRelation relationR_52; 59 63 60 64 private global::System.Data.DataRelation relationR_59; 61 62 private global::System.Data.DataRelation relationR_21;63 64 private global::System.Data.DataRelation relationR_35;65 65 66 66 private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; … … 111 111 base.Tables.Add(new ClientGroupDataTable(ds.Tables["ClientGroup"])); 112 112 } 113 if ((ds.Tables["Job"] != null)) { 114 base.Tables.Add(new JobDataTable(ds.Tables["Job"])); 115 } 113 116 if ((ds.Tables["ClientGroup_Resource"] != null)) { 114 117 base.Tables.Add(new ClientGroup_ResourceDataTable(ds.Tables["ClientGroup_Resource"])); 115 }116 if ((ds.Tables["Job"] != null)) {117 base.Tables.Add(new JobDataTable(ds.Tables["Job"]));118 118 } 119 119 this.DataSetName = ds.DataSetName; … … 201 201 [global::System.ComponentModel.Browsable(false)] 202 202 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 203 public JobDataTable Job { 204 get { 205 return this.tableJob; 206 } 207 } 208 209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 210 [global::System.ComponentModel.Browsable(false)] 211 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 203 212 public ClientGroup_ResourceDataTable ClientGroup_Resource { 204 213 get { 205 214 return this.tableClientGroup_Resource; 206 }207 }208 209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]210 [global::System.ComponentModel.Browsable(false)]211 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]212 public JobDataTable Job {213 get {214 return this.tableJob;215 215 } 216 216 } … … 296 296 base.Tables.Add(new ClientGroupDataTable(ds.Tables["ClientGroup"])); 297 297 } 298 if ((ds.Tables["Job"] != null)) { 299 base.Tables.Add(new JobDataTable(ds.Tables["Job"])); 300 } 298 301 if ((ds.Tables["ClientGroup_Resource"] != null)) { 299 302 base.Tables.Add(new ClientGroup_ResourceDataTable(ds.Tables["ClientGroup_Resource"])); 300 }301 if ((ds.Tables["Job"] != null)) {302 base.Tables.Add(new JobDataTable(ds.Tables["Job"]));303 303 } 304 304 this.DataSetName = ds.DataSetName; … … 374 374 } 375 375 } 376 this.tableJob = ((JobDataTable)(base.Tables["Job"])); 377 if ((initTable == true)) { 378 if ((this.tableJob != null)) { 379 this.tableJob.InitVars(); 380 } 381 } 376 382 this.tableClientGroup_Resource = ((ClientGroup_ResourceDataTable)(base.Tables["ClientGroup_Resource"])); 377 383 if ((initTable == true)) { 378 384 if ((this.tableClientGroup_Resource != null)) { 379 385 this.tableClientGroup_Resource.InitVars(); 380 }381 }382 this.tableJob = ((JobDataTable)(base.Tables["Job"]));383 if ((initTable == true)) {384 if ((this.tableJob != null)) {385 this.tableJob.InitVars();386 386 } 387 387 } … … 392 392 this.relationR_57 = this.Relations["R_57"]; 393 393 this.relationClientGroup_is_a_Resource = this.Relations["ClientGroup_is_a_Resource"]; 394 this.relationR_21 = this.Relations["R_21"]; 395 this.relationR_35 = this.Relations["R_35"]; 394 396 this.relationR_52 = this.Relations["R_52"]; 395 397 this.relationR_59 = this.Relations["R_59"]; 396 this.relationR_21 = this.Relations["R_21"];397 this.relationR_35 = this.Relations["R_35"];398 398 } 399 399 … … 419 419 this.tableClientGroup = new ClientGroupDataTable(); 420 420 base.Tables.Add(this.tableClientGroup); 421 this.tableJob = new JobDataTable(); 422 base.Tables.Add(this.tableJob); 421 423 this.tableClientGroup_Resource = new ClientGroup_ResourceDataTable(); 422 424 base.Tables.Add(this.tableClientGroup_Resource); 423 this.tableJob = new JobDataTable();424 base.Tables.Add(this.tableJob);425 425 this.relationClient_is_a_Resource = new global::System.Data.DataRelation("Client_is_a_Resource", new global::System.Data.DataColumn[] { 426 426 this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] { … … 447 447 this.tableClientGroup.ResourceIdColumn}, false); 448 448 this.Relations.Add(this.relationClientGroup_is_a_Resource); 449 this.relationR_52 = new global::System.Data.DataRelation("R_52", new global::System.Data.DataColumn[] {450 this.tableClientGroup.ResourceIdColumn}, new global::System.Data.DataColumn[] {451 this.tableClientGroup_Resource.ClientGroupResourceColumn}, false);452 this.Relations.Add(this.relationR_52);453 this.relationR_59 = new global::System.Data.DataRelation("R_59", new global::System.Data.DataColumn[] {454 this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] {455 this.tableClientGroup_Resource.ResourceIdColumn}, false);456 this.Relations.Add(this.relationR_59);457 449 this.relationR_21 = new global::System.Data.DataRelation("R_21", new global::System.Data.DataColumn[] { 458 450 this.tableClient.ResourceIdColumn}, new global::System.Data.DataColumn[] { … … 463 455 this.tableJob.PermissionOwnerIdColumn}, false); 464 456 this.Relations.Add(this.relationR_35); 457 this.relationR_52 = new global::System.Data.DataRelation("R_52", new global::System.Data.DataColumn[] { 458 this.tableClientGroup.ResourceIdColumn}, new global::System.Data.DataColumn[] { 459 this.tableClientGroup_Resource.ClientGroupIdColumn}, false); 460 this.Relations.Add(this.relationR_52); 461 this.relationR_59 = new global::System.Data.DataRelation("R_59", new global::System.Data.DataColumn[] { 462 this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] { 463 this.tableClientGroup_Resource.ResourceIdColumn}, false); 464 this.Relations.Add(this.relationR_59); 465 465 } 466 466 … … 501 501 502 502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 503 private bool ShouldSerializeJob() { 504 return false; 505 } 506 507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 503 508 private bool ShouldSerializeClientGroup_Resource() { 504 return false;505 }506 507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]508 private bool ShouldSerializeJob() {509 509 return false; 510 510 } … … 577 577 public delegate void ClientGroupRowChangeEventHandler(object sender, ClientGroupRowChangeEvent e); 578 578 579 public delegate void JobRowChangeEventHandler(object sender, JobRowChangeEvent e); 580 579 581 public delegate void ClientGroup_ResourceRowChangeEventHandler(object sender, ClientGroup_ResourceRowChangeEvent e); 580 581 public delegate void JobRowChangeEventHandler(object sender, JobRowChangeEvent e);582 582 583 583 /// <summary> … … 2393 2393 [global::System.Serializable()] 2394 2394 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] 2395 public partial class JobDataTable : global::System.Data.TypedTableBase<JobRow> { 2396 2397 private global::System.Data.DataColumn columnJobId; 2398 2399 private global::System.Data.DataColumn columnParentJobId; 2400 2401 private global::System.Data.DataColumn columnStatus; 2402 2403 private global::System.Data.DataColumn columnPermissionOwnerId; 2404 2405 private global::System.Data.DataColumn columnResourceId; 2406 2407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2408 public JobDataTable() { 2409 this.TableName = "Job"; 2410 this.BeginInit(); 2411 this.InitClass(); 2412 this.EndInit(); 2413 } 2414 2415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2416 internal JobDataTable(global::System.Data.DataTable table) { 2417 this.TableName = table.TableName; 2418 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { 2419 this.CaseSensitive = table.CaseSensitive; 2420 } 2421 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { 2422 this.Locale = table.Locale; 2423 } 2424 if ((table.Namespace != table.DataSet.Namespace)) { 2425 this.Namespace = table.Namespace; 2426 } 2427 this.Prefix = table.Prefix; 2428 this.MinimumCapacity = table.MinimumCapacity; 2429 } 2430 2431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2432 protected JobDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 2433 base(info, context) { 2434 this.InitVars(); 2435 } 2436 2437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2438 public global::System.Data.DataColumn JobIdColumn { 2439 get { 2440 return this.columnJobId; 2441 } 2442 } 2443 2444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2445 public global::System.Data.DataColumn ParentJobIdColumn { 2446 get { 2447 return this.columnParentJobId; 2448 } 2449 } 2450 2451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2452 public global::System.Data.DataColumn StatusColumn { 2453 get { 2454 return this.columnStatus; 2455 } 2456 } 2457 2458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2459 public global::System.Data.DataColumn PermissionOwnerIdColumn { 2460 get { 2461 return this.columnPermissionOwnerId; 2462 } 2463 } 2464 2465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2466 public global::System.Data.DataColumn ResourceIdColumn { 2467 get { 2468 return this.columnResourceId; 2469 } 2470 } 2471 2472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2473 [global::System.ComponentModel.Browsable(false)] 2474 public int Count { 2475 get { 2476 return this.Rows.Count; 2477 } 2478 } 2479 2480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2481 public JobRow this[int index] { 2482 get { 2483 return ((JobRow)(this.Rows[index])); 2484 } 2485 } 2486 2487 public event JobRowChangeEventHandler JobRowChanging; 2488 2489 public event JobRowChangeEventHandler JobRowChanged; 2490 2491 public event JobRowChangeEventHandler JobRowDeleting; 2492 2493 public event JobRowChangeEventHandler JobRowDeleted; 2494 2495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2496 public void AddJobRow(JobRow row) { 2497 this.Rows.Add(row); 2498 } 2499 2500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2501 public JobRow AddJobRow(long ParentJobId, string Status, HiveUserRow parentHiveUserRowByR_35, ClientRow parentClientRowByR_21) { 2502 JobRow rowJobRow = ((JobRow)(this.NewRow())); 2503 object[] columnValuesArray = new object[] { 2504 null, 2505 ParentJobId, 2506 Status, 2507 null, 2508 null}; 2509 if ((parentHiveUserRowByR_35 != null)) { 2510 columnValuesArray[3] = parentHiveUserRowByR_35[0]; 2511 } 2512 if ((parentClientRowByR_21 != null)) { 2513 columnValuesArray[4] = parentClientRowByR_21[0]; 2514 } 2515 rowJobRow.ItemArray = columnValuesArray; 2516 this.Rows.Add(rowJobRow); 2517 return rowJobRow; 2518 } 2519 2520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2521 public JobRow FindByJobId(long JobId) { 2522 return ((JobRow)(this.Rows.Find(new object[] { 2523 JobId}))); 2524 } 2525 2526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2527 public override global::System.Data.DataTable Clone() { 2528 JobDataTable cln = ((JobDataTable)(base.Clone())); 2529 cln.InitVars(); 2530 return cln; 2531 } 2532 2533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2534 protected override global::System.Data.DataTable CreateInstance() { 2535 return new JobDataTable(); 2536 } 2537 2538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2539 internal void InitVars() { 2540 this.columnJobId = base.Columns["JobId"]; 2541 this.columnParentJobId = base.Columns["ParentJobId"]; 2542 this.columnStatus = base.Columns["Status"]; 2543 this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"]; 2544 this.columnResourceId = base.Columns["ResourceId"]; 2545 } 2546 2547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2548 private void InitClass() { 2549 this.columnJobId = new global::System.Data.DataColumn("JobId", typeof(long), null, global::System.Data.MappingType.Element); 2550 base.Columns.Add(this.columnJobId); 2551 this.columnParentJobId = new global::System.Data.DataColumn("ParentJobId", typeof(long), null, global::System.Data.MappingType.Element); 2552 base.Columns.Add(this.columnParentJobId); 2553 this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element); 2554 base.Columns.Add(this.columnStatus); 2555 this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element); 2556 base.Columns.Add(this.columnPermissionOwnerId); 2557 this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element); 2558 base.Columns.Add(this.columnResourceId); 2559 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 2560 this.columnJobId}, true)); 2561 this.columnJobId.AutoIncrement = true; 2562 this.columnJobId.AutoIncrementSeed = -1; 2563 this.columnJobId.AutoIncrementStep = -1; 2564 this.columnJobId.AllowDBNull = false; 2565 this.columnJobId.ReadOnly = true; 2566 this.columnJobId.Unique = true; 2567 this.columnStatus.MaxLength = 18; 2568 } 2569 2570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2571 public JobRow NewJobRow() { 2572 return ((JobRow)(this.NewRow())); 2573 } 2574 2575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2576 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { 2577 return new JobRow(builder); 2578 } 2579 2580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2581 protected override global::System.Type GetRowType() { 2582 return typeof(JobRow); 2583 } 2584 2585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2586 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { 2587 base.OnRowChanged(e); 2588 if ((this.JobRowChanged != null)) { 2589 this.JobRowChanged(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); 2590 } 2591 } 2592 2593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2594 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { 2595 base.OnRowChanging(e); 2596 if ((this.JobRowChanging != null)) { 2597 this.JobRowChanging(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); 2598 } 2599 } 2600 2601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2602 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { 2603 base.OnRowDeleted(e); 2604 if ((this.JobRowDeleted != null)) { 2605 this.JobRowDeleted(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); 2606 } 2607 } 2608 2609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2610 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { 2611 base.OnRowDeleting(e); 2612 if ((this.JobRowDeleting != null)) { 2613 this.JobRowDeleting(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); 2614 } 2615 } 2616 2617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2618 public void RemoveJobRow(JobRow row) { 2619 this.Rows.Remove(row); 2620 } 2621 2622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2623 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { 2624 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); 2625 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); 2626 dsHiveServer ds = new dsHiveServer(); 2627 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); 2628 any1.Namespace = "http://www.w3.org/2001/XMLSchema"; 2629 any1.MinOccurs = new decimal(0); 2630 any1.MaxOccurs = decimal.MaxValue; 2631 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 2632 sequence.Items.Add(any1); 2633 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); 2634 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; 2635 any2.MinOccurs = new decimal(1); 2636 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 2637 sequence.Items.Add(any2); 2638 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); 2639 attribute1.Name = "namespace"; 2640 attribute1.FixedValue = ds.Namespace; 2641 type.Attributes.Add(attribute1); 2642 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); 2643 attribute2.Name = "tableTypeName"; 2644 attribute2.FixedValue = "JobDataTable"; 2645 type.Attributes.Add(attribute2); 2646 type.Particle = sequence; 2647 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); 2648 if (xs.Contains(dsSchema.TargetNamespace)) { 2649 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); 2650 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); 2651 try { 2652 global::System.Xml.Schema.XmlSchema schema = null; 2653 dsSchema.Write(s1); 2654 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { 2655 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); 2656 s2.SetLength(0); 2657 schema.Write(s2); 2658 if ((s1.Length == s2.Length)) { 2659 s1.Position = 0; 2660 s2.Position = 0; 2661 for (; ((s1.Position != s1.Length) 2662 && (s1.ReadByte() == s2.ReadByte())); ) { 2663 ; 2664 } 2665 if ((s1.Position == s1.Length)) { 2666 return type; 2667 } 2668 } 2669 } 2670 } 2671 finally { 2672 if ((s1 != null)) { 2673 s1.Close(); 2674 } 2675 if ((s2 != null)) { 2676 s2.Close(); 2677 } 2678 } 2679 } 2680 xs.Add(dsSchema); 2681 return type; 2682 } 2683 } 2684 2685 /// <summary> 2686 ///Represents the strongly named DataTable class. 2687 ///</summary> 2688 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 2689 [global::System.Serializable()] 2690 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] 2395 2691 public partial class ClientGroup_ResourceDataTable : global::System.Data.TypedTableBase<ClientGroup_ResourceRow> { 2396 2692 2397 private global::System.Data.DataColumn columnClientGroup Resource;2693 private global::System.Data.DataColumn columnClientGroupId; 2398 2694 2399 2695 private global::System.Data.DataColumn columnResourceId; … … 2430 2726 2431 2727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2432 public global::System.Data.DataColumn ClientGroup ResourceColumn {2433 get { 2434 return this.columnClientGroup Resource;2728 public global::System.Data.DataColumn ClientGroupIdColumn { 2729 get { 2730 return this.columnClientGroupId; 2435 2731 } 2436 2732 } … … 2489 2785 2490 2786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2491 public ClientGroup_ResourceRow FindByClientGroup ResourceResourceId(long ClientGroupResource, long ResourceId) {2787 public ClientGroup_ResourceRow FindByClientGroupIdResourceId(long ClientGroupId, long ResourceId) { 2492 2788 return ((ClientGroup_ResourceRow)(this.Rows.Find(new object[] { 2493 ClientGroup Resource,2789 ClientGroupId, 2494 2790 ResourceId}))); 2495 2791 } … … 2509 2805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2510 2806 internal void InitVars() { 2511 this.columnClientGroup Resource = base.Columns["ClientGroupResource"];2807 this.columnClientGroupId = base.Columns["ClientGroupId"]; 2512 2808 this.columnResourceId = base.Columns["ResourceId"]; 2513 2809 } … … 2515 2811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2516 2812 private void InitClass() { 2517 this.columnClientGroup Resource = new global::System.Data.DataColumn("ClientGroupResource", typeof(long), null, global::System.Data.MappingType.Element);2518 base.Columns.Add(this.columnClientGroup Resource);2813 this.columnClientGroupId = new global::System.Data.DataColumn("ClientGroupId", typeof(long), null, global::System.Data.MappingType.Element); 2814 base.Columns.Add(this.columnClientGroupId); 2519 2815 this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element); 2520 2816 base.Columns.Add(this.columnResourceId); 2521 2817 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 2522 this.columnClientGroup Resource,2818 this.columnClientGroupId, 2523 2819 this.columnResourceId}, true)); 2524 this.columnClientGroup Resource.AllowDBNull = false;2820 this.columnClientGroupId.AllowDBNull = false; 2525 2821 this.columnResourceId.AllowDBNull = false; 2526 2822 } … … 2642 2938 2643 2939 /// <summary> 2644 ///Represents the strongly named DataTable class.2645 ///</summary>2646 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]2647 [global::System.Serializable()]2648 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]2649 public partial class JobDataTable : global::System.Data.TypedTableBase<JobRow> {2650 2651 private global::System.Data.DataColumn columnJobId;2652 2653 private global::System.Data.DataColumn columnParentJobId;2654 2655 private global::System.Data.DataColumn columnStatus;2656 2657 private global::System.Data.DataColumn columnPermissionOwnerId;2658 2659 private global::System.Data.DataColumn columnResourceId;2660 2661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2662 public JobDataTable() {2663 this.TableName = "Job";2664 this.BeginInit();2665 this.InitClass();2666 this.EndInit();2667 }2668 2669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2670 internal JobDataTable(global::System.Data.DataTable table) {2671 this.TableName = table.TableName;2672 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {2673 this.CaseSensitive = table.CaseSensitive;2674 }2675 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {2676 this.Locale = table.Locale;2677 }2678 if ((table.Namespace != table.DataSet.Namespace)) {2679 this.Namespace = table.Namespace;2680 }2681 this.Prefix = table.Prefix;2682 this.MinimumCapacity = table.MinimumCapacity;2683 }2684 2685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2686 protected JobDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :2687 base(info, context) {2688 this.InitVars();2689 }2690 2691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2692 public global::System.Data.DataColumn JobIdColumn {2693 get {2694 return this.columnJobId;2695 }2696 }2697 2698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2699 public global::System.Data.DataColumn ParentJobIdColumn {2700 get {2701 return this.columnParentJobId;2702 }2703 }2704 2705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2706 public global::System.Data.DataColumn StatusColumn {2707 get {2708 return this.columnStatus;2709 }2710 }2711 2712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2713 public global::System.Data.DataColumn PermissionOwnerIdColumn {2714 get {2715 return this.columnPermissionOwnerId;2716 }2717 }2718 2719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2720 public global::System.Data.DataColumn ResourceIdColumn {2721 get {2722 return this.columnResourceId;2723 }2724 }2725 2726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2727 [global::System.ComponentModel.Browsable(false)]2728 public int Count {2729 get {2730 return this.Rows.Count;2731 }2732 }2733 2734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2735 public JobRow this[int index] {2736 get {2737 return ((JobRow)(this.Rows[index]));2738 }2739 }2740 2741 public event JobRowChangeEventHandler JobRowChanging;2742 2743 public event JobRowChangeEventHandler JobRowChanged;2744 2745 public event JobRowChangeEventHandler JobRowDeleting;2746 2747 public event JobRowChangeEventHandler JobRowDeleted;2748 2749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2750 public void AddJobRow(JobRow row) {2751 this.Rows.Add(row);2752 }2753 2754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2755 public JobRow AddJobRow(long ParentJobId, string Status, HiveUserRow parentHiveUserRowByR_35, ClientRow parentClientRowByR_21) {2756 JobRow rowJobRow = ((JobRow)(this.NewRow()));2757 object[] columnValuesArray = new object[] {2758 null,2759 ParentJobId,2760 Status,2761 null,2762 null};2763 if ((parentHiveUserRowByR_35 != null)) {2764 columnValuesArray[3] = parentHiveUserRowByR_35[0];2765 }2766 if ((parentClientRowByR_21 != null)) {2767 columnValuesArray[4] = parentClientRowByR_21[0];2768 }2769 rowJobRow.ItemArray = columnValuesArray;2770 this.Rows.Add(rowJobRow);2771 return rowJobRow;2772 }2773 2774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2775 public JobRow FindByJobId(long JobId) {2776 return ((JobRow)(this.Rows.Find(new object[] {2777 JobId})));2778 }2779 2780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2781 public override global::System.Data.DataTable Clone() {2782 JobDataTable cln = ((JobDataTable)(base.Clone()));2783 cln.InitVars();2784 return cln;2785 }2786 2787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2788 protected override global::System.Data.DataTable CreateInstance() {2789 return new JobDataTable();2790 }2791 2792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2793 internal void InitVars() {2794 this.columnJobId = base.Columns["JobId"];2795 this.columnParentJobId = base.Columns["ParentJobId"];2796 this.columnStatus = base.Columns["Status"];2797 this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"];2798 this.columnResourceId = base.Columns["ResourceId"];2799 }2800 2801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2802 private void InitClass() {2803 this.columnJobId = new global::System.Data.DataColumn("JobId", typeof(long), null, global::System.Data.MappingType.Element);2804 base.Columns.Add(this.columnJobId);2805 this.columnParentJobId = new global::System.Data.DataColumn("ParentJobId", typeof(long), null, global::System.Data.MappingType.Element);2806 base.Columns.Add(this.columnParentJobId);2807 this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element);2808 base.Columns.Add(this.columnStatus);2809 this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element);2810 base.Columns.Add(this.columnPermissionOwnerId);2811 this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element);2812 base.Columns.Add(this.columnResourceId);2813 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {2814 this.columnJobId}, true));2815 this.columnJobId.AutoIncrement = true;2816 this.columnJobId.AutoIncrementSeed = -1;2817 this.columnJobId.AutoIncrementStep = -1;2818 this.columnJobId.AllowDBNull = false;2819 this.columnJobId.ReadOnly = true;2820 this.columnJobId.Unique = true;2821 this.columnStatus.MaxLength = 18;2822 }2823 2824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2825 public JobRow NewJobRow() {2826 return ((JobRow)(this.NewRow()));2827 }2828 2829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2830 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {2831 return new JobRow(builder);2832 }2833 2834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2835 protected override global::System.Type GetRowType() {2836 return typeof(JobRow);2837 }2838 2839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2840 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {2841 base.OnRowChanged(e);2842 if ((this.JobRowChanged != null)) {2843 this.JobRowChanged(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action));2844 }2845 }2846 2847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2848 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {2849 base.OnRowChanging(e);2850 if ((this.JobRowChanging != null)) {2851 this.JobRowChanging(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action));2852 }2853 }2854 2855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2856 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {2857 base.OnRowDeleted(e);2858 if ((this.JobRowDeleted != null)) {2859 this.JobRowDeleted(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action));2860 }2861 }2862 2863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2864 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {2865 base.OnRowDeleting(e);2866 if ((this.JobRowDeleting != null)) {2867 this.JobRowDeleting(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action));2868 }2869 }2870 2871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2872 public void RemoveJobRow(JobRow row) {2873 this.Rows.Remove(row);2874 }2875 2876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]2877 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {2878 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();2879 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();2880 dsHiveServer ds = new dsHiveServer();2881 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();2882 any1.Namespace = "http://www.w3.org/2001/XMLSchema";2883 any1.MinOccurs = new decimal(0);2884 any1.MaxOccurs = decimal.MaxValue;2885 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;2886 sequence.Items.Add(any1);2887 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();2888 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";2889 any2.MinOccurs = new decimal(1);2890 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;2891 sequence.Items.Add(any2);2892 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();2893 attribute1.Name = "namespace";2894 attribute1.FixedValue = ds.Namespace;2895 type.Attributes.Add(attribute1);2896 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();2897 attribute2.Name = "tableTypeName";2898 attribute2.FixedValue = "JobDataTable";2899 type.Attributes.Add(attribute2);2900 type.Particle = sequence;2901 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();2902 if (xs.Contains(dsSchema.TargetNamespace)) {2903 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();2904 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();2905 try {2906 global::System.Xml.Schema.XmlSchema schema = null;2907 dsSchema.Write(s1);2908 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {2909 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));2910 s2.SetLength(0);2911 schema.Write(s2);2912 if ((s1.Length == s2.Length)) {2913 s1.Position = 0;2914 s2.Position = 0;2915 for (; ((s1.Position != s1.Length)2916 && (s1.ReadByte() == s2.ReadByte())); ) {2917 ;2918 }2919 if ((s1.Position == s1.Length)) {2920 return type;2921 }2922 }2923 }2924 }2925 finally {2926 if ((s1 != null)) {2927 s1.Close();2928 }2929 if ((s2 != null)) {2930 s2.Close();2931 }2932 }2933 }2934 xs.Add(dsSchema);2935 return type;2936 }2937 }2938 2939 /// <summary>2940 2940 ///Represents strongly named DataRow class. 2941 2941 ///</summary> … … 3536 3536 ///</summary> 3537 3537 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 3538 public partial class ClientGroup_ResourceRow : global::System.Data.DataRow {3539 3540 private ClientGroup_ResourceDataTable tableClientGroup_Resource;3541 3542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]3543 internal ClientGroup_ResourceRow(global::System.Data.DataRowBuilder rb) :3544 base(rb) {3545 this.tableClientGroup_Resource = ((ClientGroup_ResourceDataTable)(this.Table));3546 }3547 3548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]3549 public long ClientGroupResource {3550 get {3551 return ((long)(this[this.tableClientGroup_Resource.ClientGroupResourceColumn]));3552 }3553 set {3554 this[this.tableClientGroup_Resource.ClientGroupResourceColumn] = value;3555 }3556 }3557 3558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]3559 public long ResourceId {3560 get {3561 return ((long)(this[this.tableClientGroup_Resource.ResourceIdColumn]));3562 }3563 set {3564 this[this.tableClientGroup_Resource.ResourceIdColumn] = value;3565 }3566 }3567 3568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]3569 public ClientGroupRow ClientGroupRow {3570 get {3571 return ((ClientGroupRow)(this.GetParentRow(this.Table.ParentRelations["R_52"])));3572 }3573 set {3574 this.SetParentRow(value, this.Table.ParentRelations["R_52"]);3575 }3576 }3577 3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]3579 public ResourceRow ResourceRow {3580 get {3581 return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["R_59"])));3582 }3583 set {3584 this.SetParentRow(value, this.Table.ParentRelations["R_59"]);3585 }3586 }3587 }3588 3589 /// <summary>3590 ///Represents strongly named DataRow class.3591 ///</summary>3592 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]3593 3538 public partial class JobRow : global::System.Data.DataRow { 3594 3539 … … 3733 3678 3734 3679 /// <summary> 3680 ///Represents strongly named DataRow class. 3681 ///</summary> 3682 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 3683 public partial class ClientGroup_ResourceRow : global::System.Data.DataRow { 3684 3685 private ClientGroup_ResourceDataTable tableClientGroup_Resource; 3686 3687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3688 internal ClientGroup_ResourceRow(global::System.Data.DataRowBuilder rb) : 3689 base(rb) { 3690 this.tableClientGroup_Resource = ((ClientGroup_ResourceDataTable)(this.Table)); 3691 } 3692 3693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3694 public long ClientGroupId { 3695 get { 3696 return ((long)(this[this.tableClientGroup_Resource.ClientGroupIdColumn])); 3697 } 3698 set { 3699 this[this.tableClientGroup_Resource.ClientGroupIdColumn] = value; 3700 } 3701 } 3702 3703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3704 public long ResourceId { 3705 get { 3706 return ((long)(this[this.tableClientGroup_Resource.ResourceIdColumn])); 3707 } 3708 set { 3709 this[this.tableClientGroup_Resource.ResourceIdColumn] = value; 3710 } 3711 } 3712 3713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3714 public ClientGroupRow ClientGroupRow { 3715 get { 3716 return ((ClientGroupRow)(this.GetParentRow(this.Table.ParentRelations["R_52"]))); 3717 } 3718 set { 3719 this.SetParentRow(value, this.Table.ParentRelations["R_52"]); 3720 } 3721 } 3722 3723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3724 public ResourceRow ResourceRow { 3725 get { 3726 return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["R_59"]))); 3727 } 3728 set { 3729 this.SetParentRow(value, this.Table.ParentRelations["R_59"]); 3730 } 3731 } 3732 } 3733 3734 /// <summary> 3735 3735 ///Row event argument class 3736 3736 ///</summary> … … 3953 3953 ///</summary> 3954 3954 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 3955 public class ClientGroup_ResourceRowChangeEvent : global::System.EventArgs {3956 3957 private ClientGroup_ResourceRow eventRow;3955 public class JobRowChangeEvent : global::System.EventArgs { 3956 3957 private JobRow eventRow; 3958 3958 3959 3959 private global::System.Data.DataRowAction eventAction; 3960 3960 3961 3961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3962 public ClientGroup_ResourceRowChangeEvent(ClientGroup_ResourceRow row, global::System.Data.DataRowAction action) {3962 public JobRowChangeEvent(JobRow row, global::System.Data.DataRowAction action) { 3963 3963 this.eventRow = row; 3964 3964 this.eventAction = action; … … 3966 3966 3967 3967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3968 public ClientGroup_ResourceRow Row {3968 public JobRow Row { 3969 3969 get { 3970 3970 return this.eventRow; … … 3984 3984 ///</summary> 3985 3985 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 3986 public class JobRowChangeEvent : global::System.EventArgs {3987 3988 private JobRow eventRow;3986 public class ClientGroup_ResourceRowChangeEvent : global::System.EventArgs { 3987 3988 private ClientGroup_ResourceRow eventRow; 3989 3989 3990 3990 private global::System.Data.DataRowAction eventAction; 3991 3991 3992 3992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3993 public JobRowChangeEvent(JobRow row, global::System.Data.DataRowAction action) {3993 public ClientGroup_ResourceRowChangeEvent(ClientGroup_ResourceRow row, global::System.Data.DataRowAction action) { 3994 3994 this.eventRow = row; 3995 3995 this.eventAction = action; … … 3997 3997 3998 3998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3999 public JobRow Row {3999 public ClientGroup_ResourceRow Row { 4000 4000 get { 4001 4001 return this.eventRow; … … 6502 6502 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 6503 6503 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 6504 public partial class ClientGroup_ResourceTableAdapter : global::System.ComponentModel.Component {6505 6506 private global::System.Data.SqlClient.SqlDataAdapter _adapter;6507 6508 private global::System.Data.SqlClient.SqlConnection _connection;6509 6510 private global::System.Data.SqlClient.SqlTransaction _transaction;6511 6512 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;6513 6514 private bool _clearBeforeFill;6515 6516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6517 public ClientGroup_ResourceTableAdapter() {6518 this.ClearBeforeFill = true;6519 }6520 6521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6522 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {6523 get {6524 if ((this._adapter == null)) {6525 this.InitAdapter();6526 }6527 return this._adapter;6528 }6529 }6530 6531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6532 internal global::System.Data.SqlClient.SqlConnection Connection {6533 get {6534 if ((this._connection == null)) {6535 this.InitConnection();6536 }6537 return this._connection;6538 }6539 set {6540 this._connection = value;6541 if ((this.Adapter.InsertCommand != null)) {6542 this.Adapter.InsertCommand.Connection = value;6543 }6544 if ((this.Adapter.DeleteCommand != null)) {6545 this.Adapter.DeleteCommand.Connection = value;6546 }6547 if ((this.Adapter.UpdateCommand != null)) {6548 this.Adapter.UpdateCommand.Connection = value;6549 }6550 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {6551 if ((this.CommandCollection[i] != null)) {6552 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;6553 }6554 }6555 }6556 }6557 6558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6559 internal global::System.Data.SqlClient.SqlTransaction Transaction {6560 get {6561 return this._transaction;6562 }6563 set {6564 this._transaction = value;6565 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {6566 this.CommandCollection[i].Transaction = this._transaction;6567 }6568 if (((this.Adapter != null)6569 && (this.Adapter.DeleteCommand != null))) {6570 this.Adapter.DeleteCommand.Transaction = this._transaction;6571 }6572 if (((this.Adapter != null)6573 && (this.Adapter.InsertCommand != null))) {6574 this.Adapter.InsertCommand.Transaction = this._transaction;6575 }6576 if (((this.Adapter != null)6577 && (this.Adapter.UpdateCommand != null))) {6578 this.Adapter.UpdateCommand.Transaction = this._transaction;6579 }6580 }6581 }6582 6583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6584 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {6585 get {6586 if ((this._commandCollection == null)) {6587 this.InitCommandCollection();6588 }6589 return this._commandCollection;6590 }6591 }6592 6593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6594 public bool ClearBeforeFill {6595 get {6596 return this._clearBeforeFill;6597 }6598 set {6599 this._clearBeforeFill = value;6600 }6601 }6602 6603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6604 private void InitAdapter() {6605 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();6606 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();6607 tableMapping.SourceTable = "Table";6608 tableMapping.DataSetTable = "ClientGroup_Resource";6609 tableMapping.ColumnMappings.Add("ClientGroupResource", "ClientGroupResource");6610 tableMapping.ColumnMappings.Add("ResourceId", "ResourceId");6611 this._adapter.TableMappings.Add(tableMapping);6612 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();6613 this._adapter.DeleteCommand.Connection = this.Connection;6614 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientGroup_Resource] WHERE (([ClientGroupResource] = @Origina" +6615 "l_ClientGroupResource) AND ([ResourceId] = @Original_ResourceId))";6616 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;6617 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientGroupResource", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupResource", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));6618 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));6619 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();6620 this._adapter.InsertCommand.Connection = this.Connection;6621 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ClientGroup_Resource] ([ClientGroupResource], [ResourceId]) VALUES (@ClientGroupResource, @ResourceId);6622 SELECT ClientGroupResource, ResourceId FROM ClientGroup_Resource WHERE (ClientGroupResource = @ClientGroupResource) AND (ResourceId = @ResourceId)";6623 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;6624 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientGroupResource", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupResource", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));6625 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));6626 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();6627 this._adapter.UpdateCommand.Connection = this.Connection;6628 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientGroup_Resource] SET [ClientGroupResource] = @ClientGroupResource, [ResourceId] = @ResourceId WHERE (([ClientGroupResource] = @Original_ClientGroupResource) AND ([ResourceId] = @Original_ResourceId));6629 SELECT ClientGroupResource, ResourceId FROM ClientGroup_Resource WHERE (ClientGroupResource = @ClientGroupResource) AND (ResourceId = @ResourceId)";6630 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;6631 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientGroupResource", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupResource", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));6632 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));6633 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientGroupResource", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupResource", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));6634 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));6635 }6636 6637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6638 private void InitConnection() {6639 this._connection = new global::System.Data.SqlClient.SqlConnection();6640 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;6641 }6642 6643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6644 private void InitCommandCollection() {6645 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];6646 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();6647 this._commandCollection[0].Connection = this.Connection;6648 this._commandCollection[0].CommandText = "SELECT ClientGroupResource, ResourceId FROM dbo.ClientGroup_Resource";6649 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;6650 }6651 6652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6653 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6654 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]6655 public virtual int Fill(dsHiveServer.ClientGroup_ResourceDataTable dataTable) {6656 this.Adapter.SelectCommand = this.CommandCollection[0];6657 if ((this.ClearBeforeFill == true)) {6658 dataTable.Clear();6659 }6660 int returnValue = this.Adapter.Fill(dataTable);6661 return returnValue;6662 }6663 6664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6665 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6666 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]6667 public virtual dsHiveServer.ClientGroup_ResourceDataTable GetData() {6668 this.Adapter.SelectCommand = this.CommandCollection[0];6669 dsHiveServer.ClientGroup_ResourceDataTable dataTable = new dsHiveServer.ClientGroup_ResourceDataTable();6670 this.Adapter.Fill(dataTable);6671 return dataTable;6672 }6673 6674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6675 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6676 public virtual int Update(dsHiveServer.ClientGroup_ResourceDataTable dataTable) {6677 return this.Adapter.Update(dataTable);6678 }6679 6680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6681 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6682 public virtual int Update(dsHiveServer dataSet) {6683 return this.Adapter.Update(dataSet, "ClientGroup_Resource");6684 }6685 6686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6687 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6688 public virtual int Update(global::System.Data.DataRow dataRow) {6689 return this.Adapter.Update(new global::System.Data.DataRow[] {6690 dataRow});6691 }6692 6693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6694 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6695 public virtual int Update(global::System.Data.DataRow[] dataRows) {6696 return this.Adapter.Update(dataRows);6697 }6698 6699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6700 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6701 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]6702 public virtual int Delete(long Original_ClientGroupResource, long Original_ResourceId) {6703 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ClientGroupResource));6704 this.Adapter.DeleteCommand.Parameters[1].Value = ((long)(Original_ResourceId));6705 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;6706 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)6707 != global::System.Data.ConnectionState.Open)) {6708 this.Adapter.DeleteCommand.Connection.Open();6709 }6710 try {6711 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();6712 return returnValue;6713 }6714 finally {6715 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {6716 this.Adapter.DeleteCommand.Connection.Close();6717 }6718 }6719 }6720 6721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6722 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6723 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]6724 public virtual int Insert(long ClientGroupResource, long ResourceId) {6725 this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ClientGroupResource));6726 this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ResourceId));6727 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;6728 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)6729 != global::System.Data.ConnectionState.Open)) {6730 this.Adapter.InsertCommand.Connection.Open();6731 }6732 try {6733 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();6734 return returnValue;6735 }6736 finally {6737 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {6738 this.Adapter.InsertCommand.Connection.Close();6739 }6740 }6741 }6742 6743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6744 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6745 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]6746 public virtual int Update(long ClientGroupResource, long ResourceId, long Original_ClientGroupResource, long Original_ResourceId) {6747 this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ClientGroupResource));6748 this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ResourceId));6749 this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_ClientGroupResource));6750 this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ResourceId));6751 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;6752 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)6753 != global::System.Data.ConnectionState.Open)) {6754 this.Adapter.UpdateCommand.Connection.Open();6755 }6756 try {6757 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();6758 return returnValue;6759 }6760 finally {6761 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {6762 this.Adapter.UpdateCommand.Connection.Close();6763 }6764 }6765 }6766 6767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]6768 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6769 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]6770 public virtual int Update(long Original_ClientGroupResource, long Original_ResourceId) {6771 return this.Update(Original_ClientGroupResource, Original_ResourceId, Original_ClientGroupResource, Original_ResourceId);6772 }6773 }6774 6775 /// <summary>6776 ///Represents the connection and commands used to retrieve and save data.6777 ///</summary>6778 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]6779 [global::System.ComponentModel.DesignerCategoryAttribute("code")]6780 [global::System.ComponentModel.ToolboxItem(true)]6781 [global::System.ComponentModel.DataObjectAttribute(true)]6782 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +6783 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]6784 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]6785 6504 public partial class JobTableAdapter : global::System.ComponentModel.Component { 6786 6505 … … 7183 6902 7184 6903 /// <summary> 6904 ///Represents the connection and commands used to retrieve and save data. 6905 ///</summary> 6906 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 6907 [global::System.ComponentModel.DesignerCategoryAttribute("code")] 6908 [global::System.ComponentModel.ToolboxItem(true)] 6909 [global::System.ComponentModel.DataObjectAttribute(true)] 6910 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + 6911 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 6912 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 6913 public partial class ClientGroup_ResourceTableAdapter : global::System.ComponentModel.Component { 6914 6915 private global::System.Data.SqlClient.SqlDataAdapter _adapter; 6916 6917 private global::System.Data.SqlClient.SqlConnection _connection; 6918 6919 private global::System.Data.SqlClient.SqlTransaction _transaction; 6920 6921 private global::System.Data.SqlClient.SqlCommand[] _commandCollection; 6922 6923 private bool _clearBeforeFill; 6924 6925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 6926 public ClientGroup_ResourceTableAdapter() { 6927 this.ClearBeforeFill = true; 6928 } 6929 6930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 6931 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { 6932 get { 6933 if ((this._adapter == null)) { 6934 this.InitAdapter(); 6935 } 6936 return this._adapter; 6937 } 6938 } 6939 6940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 6941 internal global::System.Data.SqlClient.SqlConnection Connection { 6942 get { 6943 if ((this._connection == null)) { 6944 this.InitConnection(); 6945 } 6946 return this._connection; 6947 } 6948 set { 6949 this._connection = value; 6950 if ((this.Adapter.InsertCommand != null)) { 6951 this.Adapter.InsertCommand.Connection = value; 6952 } 6953 if ((this.Adapter.DeleteCommand != null)) { 6954 this.Adapter.DeleteCommand.Connection = value; 6955 } 6956 if ((this.Adapter.UpdateCommand != null)) { 6957 this.Adapter.UpdateCommand.Connection = value; 6958 } 6959 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 6960 if ((this.CommandCollection[i] != null)) { 6961 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; 6962 } 6963 } 6964 } 6965 } 6966 6967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 6968 internal global::System.Data.SqlClient.SqlTransaction Transaction { 6969 get { 6970 return this._transaction; 6971 } 6972 set { 6973 this._transaction = value; 6974 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 6975 this.CommandCollection[i].Transaction = this._transaction; 6976 } 6977 if (((this.Adapter != null) 6978 && (this.Adapter.DeleteCommand != null))) { 6979 this.Adapter.DeleteCommand.Transaction = this._transaction; 6980 } 6981 if (((this.Adapter != null) 6982 && (this.Adapter.InsertCommand != null))) { 6983 this.Adapter.InsertCommand.Transaction = this._transaction; 6984 } 6985 if (((this.Adapter != null) 6986 && (this.Adapter.UpdateCommand != null))) { 6987 this.Adapter.UpdateCommand.Transaction = this._transaction; 6988 } 6989 } 6990 } 6991 6992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 6993 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { 6994 get { 6995 if ((this._commandCollection == null)) { 6996 this.InitCommandCollection(); 6997 } 6998 return this._commandCollection; 6999 } 7000 } 7001 7002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7003 public bool ClearBeforeFill { 7004 get { 7005 return this._clearBeforeFill; 7006 } 7007 set { 7008 this._clearBeforeFill = value; 7009 } 7010 } 7011 7012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7013 private void InitAdapter() { 7014 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); 7015 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); 7016 tableMapping.SourceTable = "Table"; 7017 tableMapping.DataSetTable = "ClientGroup_Resource"; 7018 tableMapping.ColumnMappings.Add("ClientGroupId", "ClientGroupId"); 7019 tableMapping.ColumnMappings.Add("ResourceId", "ResourceId"); 7020 this._adapter.TableMappings.Add(tableMapping); 7021 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 7022 this._adapter.DeleteCommand.Connection = this.Connection; 7023 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientGroup_Resource] WHERE (([ClientGroupId] = @Original_Clie" + 7024 "ntGroupId) AND ([ResourceId] = @Original_ResourceId))"; 7025 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; 7026 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientGroupId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 7027 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 7028 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 7029 this._adapter.InsertCommand.Connection = this.Connection; 7030 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientGroup_Resource] ([ClientGroupId], [ResourceId]) VALUES (" + 7031 "@ClientGroupId, @ResourceId);\r\nSELECT ClientGroupId, ResourceId FROM ClientGroup" + 7032 "_Resource WHERE (ClientGroupId = @ClientGroupId) AND (ResourceId = @ResourceId)"; 7033 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 7034 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientGroupId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7035 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7036 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 7037 this._adapter.UpdateCommand.Connection = this.Connection; 7038 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientGroup_Resource] SET [ClientGroupId] = @ClientGroupId, [ResourceId] = @ResourceId WHERE (([ClientGroupId] = @Original_ClientGroupId) AND ([ResourceId] = @Original_ResourceId)); 7039 SELECT ClientGroupId, ResourceId FROM ClientGroup_Resource WHERE (ClientGroupId = @ClientGroupId) AND (ResourceId = @ResourceId)"; 7040 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 7041 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientGroupId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7042 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7043 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientGroupId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientGroupId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 7044 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 7045 } 7046 7047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7048 private void InitConnection() { 7049 this._connection = new global::System.Data.SqlClient.SqlConnection(); 7050 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString; 7051 } 7052 7053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7054 private void InitCommandCollection() { 7055 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; 7056 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 7057 this._commandCollection[0].Connection = this.Connection; 7058 this._commandCollection[0].CommandText = "SELECT ClientGroupId, ResourceId FROM dbo.ClientGroup_Resource"; 7059 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 7060 } 7061 7062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7063 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7064 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] 7065 public virtual int Fill(dsHiveServer.ClientGroup_ResourceDataTable dataTable) { 7066 this.Adapter.SelectCommand = this.CommandCollection[0]; 7067 if ((this.ClearBeforeFill == true)) { 7068 dataTable.Clear(); 7069 } 7070 int returnValue = this.Adapter.Fill(dataTable); 7071 return returnValue; 7072 } 7073 7074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7075 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7076 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] 7077 public virtual dsHiveServer.ClientGroup_ResourceDataTable GetData() { 7078 this.Adapter.SelectCommand = this.CommandCollection[0]; 7079 dsHiveServer.ClientGroup_ResourceDataTable dataTable = new dsHiveServer.ClientGroup_ResourceDataTable(); 7080 this.Adapter.Fill(dataTable); 7081 return dataTable; 7082 } 7083 7084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7085 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7086 public virtual int Update(dsHiveServer.ClientGroup_ResourceDataTable dataTable) { 7087 return this.Adapter.Update(dataTable); 7088 } 7089 7090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7091 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7092 public virtual int Update(dsHiveServer dataSet) { 7093 return this.Adapter.Update(dataSet, "ClientGroup_Resource"); 7094 } 7095 7096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7097 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7098 public virtual int Update(global::System.Data.DataRow dataRow) { 7099 return this.Adapter.Update(new global::System.Data.DataRow[] { 7100 dataRow}); 7101 } 7102 7103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7104 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7105 public virtual int Update(global::System.Data.DataRow[] dataRows) { 7106 return this.Adapter.Update(dataRows); 7107 } 7108 7109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7110 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7111 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] 7112 public virtual int Delete(long Original_ClientGroupId, long Original_ResourceId) { 7113 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ClientGroupId)); 7114 this.Adapter.DeleteCommand.Parameters[1].Value = ((long)(Original_ResourceId)); 7115 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 7116 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 7117 != global::System.Data.ConnectionState.Open)) { 7118 this.Adapter.DeleteCommand.Connection.Open(); 7119 } 7120 try { 7121 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); 7122 return returnValue; 7123 } 7124 finally { 7125 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 7126 this.Adapter.DeleteCommand.Connection.Close(); 7127 } 7128 } 7129 } 7130 7131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7132 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7133 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] 7134 public virtual int Insert(long ClientGroupId, long ResourceId) { 7135 this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ClientGroupId)); 7136 this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ResourceId)); 7137 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; 7138 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 7139 != global::System.Data.ConnectionState.Open)) { 7140 this.Adapter.InsertCommand.Connection.Open(); 7141 } 7142 try { 7143 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); 7144 return returnValue; 7145 } 7146 finally { 7147 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 7148 this.Adapter.InsertCommand.Connection.Close(); 7149 } 7150 } 7151 } 7152 7153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7154 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7155 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 7156 public virtual int Update(long ClientGroupId, long ResourceId, long Original_ClientGroupId, long Original_ResourceId) { 7157 this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ClientGroupId)); 7158 this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ResourceId)); 7159 this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_ClientGroupId)); 7160 this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ResourceId)); 7161 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 7162 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 7163 != global::System.Data.ConnectionState.Open)) { 7164 this.Adapter.UpdateCommand.Connection.Open(); 7165 } 7166 try { 7167 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); 7168 return returnValue; 7169 } 7170 finally { 7171 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 7172 this.Adapter.UpdateCommand.Connection.Close(); 7173 } 7174 } 7175 } 7176 7177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7178 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7179 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 7180 public virtual int Update(long Original_ClientGroupId, long Original_ResourceId) { 7181 return this.Update(Original_ClientGroupId, Original_ResourceId, Original_ClientGroupId, Original_ResourceId); 7182 } 7183 } 7184 7185 /// <summary> 7185 7186 ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios 7186 7187 ///</summary> … … 7209 7210 private ClientGroupTableAdapter _clientGroupTableAdapter; 7210 7211 7212 private JobTableAdapter _jobTableAdapter; 7213 7211 7214 private ClientGroup_ResourceTableAdapter _clientGroup_ResourceTableAdapter; 7212 7213 private JobTableAdapter _jobTableAdapter;7214 7215 7215 7216 private bool _backupDataSetBeforeUpdate; … … 7322 7323 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + 7323 7324 "", "System.Drawing.Design.UITypeEditor")] 7325 public JobTableAdapter JobTableAdapter { 7326 get { 7327 return this._jobTableAdapter; 7328 } 7329 set { 7330 this._jobTableAdapter = value; 7331 } 7332 } 7333 7334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7335 [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + 7336 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + 7337 "", "System.Drawing.Design.UITypeEditor")] 7324 7338 public ClientGroup_ResourceTableAdapter ClientGroup_ResourceTableAdapter { 7325 7339 get { … … 7328 7342 set { 7329 7343 this._clientGroup_ResourceTableAdapter = value; 7330 }7331 }7332 7333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]7334 [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +7335 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +7336 "", "System.Drawing.Design.UITypeEditor")]7337 public JobTableAdapter JobTableAdapter {7338 get {7339 return this._jobTableAdapter;7340 }7341 set {7342 this._jobTableAdapter = value;7343 7344 } 7344 7345 } … … 7389 7390 return this._clientGroupTableAdapter.Connection; 7390 7391 } 7392 if (((this._jobTableAdapter != null) 7393 && (this._jobTableAdapter.Connection != null))) { 7394 return this._jobTableAdapter.Connection; 7395 } 7391 7396 if (((this._clientGroup_ResourceTableAdapter != null) 7392 7397 && (this._clientGroup_ResourceTableAdapter.Connection != null))) { 7393 7398 return this._clientGroup_ResourceTableAdapter.Connection; 7394 }7395 if (((this._jobTableAdapter != null)7396 && (this._jobTableAdapter.Connection != null))) {7397 return this._jobTableAdapter.Connection;7398 7399 } 7399 7400 return null; … … 7430 7431 count = (count + 1); 7431 7432 } 7433 if ((this._jobTableAdapter != null)) { 7434 count = (count + 1); 7435 } 7432 7436 if ((this._clientGroup_ResourceTableAdapter != null)) { 7433 count = (count + 1);7434 }7435 if ((this._jobTableAdapter != null)) {7436 7437 count = (count + 1); 7437 7438 } … … 7500 7501 } 7501 7502 } 7503 if ((this._clientGroup_ResourceTableAdapter != null)) { 7504 global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); 7505 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); 7506 if (((updatedRows != null) 7507 && (0 < updatedRows.Length))) { 7508 result = (result + this._clientGroup_ResourceTableAdapter.Update(updatedRows)); 7509 allChangedRows.AddRange(updatedRows); 7510 } 7511 } 7502 7512 if ((this._jobTableAdapter != null)) { 7503 7513 global::System.Data.DataRow[] updatedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); … … 7506 7516 && (0 < updatedRows.Length))) { 7507 7517 result = (result + this._jobTableAdapter.Update(updatedRows)); 7508 allChangedRows.AddRange(updatedRows);7509 }7510 }7511 if ((this._clientGroup_ResourceTableAdapter != null)) {7512 global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);7513 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);7514 if (((updatedRows != null)7515 && (0 < updatedRows.Length))) {7516 result = (result + this._clientGroup_ResourceTableAdapter.Update(updatedRows));7517 7518 allChangedRows.AddRange(updatedRows); 7518 7519 } … … 7584 7585 } 7585 7586 } 7587 if ((this._clientGroup_ResourceTableAdapter != null)) { 7588 global::System.Data.DataRow[] addedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Added); 7589 if (((addedRows != null) 7590 && (0 < addedRows.Length))) { 7591 result = (result + this._clientGroup_ResourceTableAdapter.Update(addedRows)); 7592 allAddedRows.AddRange(addedRows); 7593 } 7594 } 7586 7595 if ((this._jobTableAdapter != null)) { 7587 7596 global::System.Data.DataRow[] addedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Added); … … 7589 7598 && (0 < addedRows.Length))) { 7590 7599 result = (result + this._jobTableAdapter.Update(addedRows)); 7591 allAddedRows.AddRange(addedRows);7592 }7593 }7594 if ((this._clientGroup_ResourceTableAdapter != null)) {7595 global::System.Data.DataRow[] addedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Added);7596 if (((addedRows != null)7597 && (0 < addedRows.Length))) {7598 result = (result + this._clientGroup_ResourceTableAdapter.Update(addedRows));7599 7600 allAddedRows.AddRange(addedRows); 7600 7601 } … … 7625 7626 } 7626 7627 } 7628 if ((this._jobTableAdapter != null)) { 7629 global::System.Data.DataRow[] deletedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Deleted); 7630 if (((deletedRows != null) 7631 && (0 < deletedRows.Length))) { 7632 result = (result + this._jobTableAdapter.Update(deletedRows)); 7633 allChangedRows.AddRange(deletedRows); 7634 } 7635 } 7627 7636 if ((this._clientGroup_ResourceTableAdapter != null)) { 7628 7637 global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup_Resource.Select(null, null, global::System.Data.DataViewRowState.Deleted); … … 7633 7642 } 7634 7643 } 7635 if ((this._jobTableAdapter != null)) {7636 global::System.Data.DataRow[] deletedRows = dataSet.Job.Select(null, null, global::System.Data.DataViewRowState.Deleted);7637 if (((deletedRows != null)7638 && (0 < deletedRows.Length))) {7639 result = (result + this._jobTableAdapter.Update(deletedRows));7640 allChangedRows.AddRange(deletedRows);7641 }7642 }7643 7644 if ((this._hiveUserTableAdapter != null)) { 7644 7645 global::System.Data.DataRow[] deletedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Deleted); … … 7761 7762 "tring."); 7762 7763 } 7764 if (((this._jobTableAdapter != null) 7765 && (this.MatchTableAdapterConnection(this._jobTableAdapter.Connection) == false))) { 7766 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + 7767 "tring."); 7768 } 7763 7769 if (((this._clientGroup_ResourceTableAdapter != null) 7764 7770 && (this.MatchTableAdapterConnection(this._clientGroup_ResourceTableAdapter.Connection) == false))) { 7765 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +7766 "tring.");7767 }7768 if (((this._jobTableAdapter != null)7769 && (this.MatchTableAdapterConnection(this._jobTableAdapter.Connection) == false))) {7770 7771 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + 7771 7772 "tring."); … … 7866 7867 } 7867 7868 } 7869 if ((this._jobTableAdapter != null)) { 7870 revertConnections.Add(this._jobTableAdapter, this._jobTableAdapter.Connection); 7871 this._jobTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); 7872 this._jobTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); 7873 if (this._jobTableAdapter.Adapter.AcceptChangesDuringUpdate) { 7874 this._jobTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 7875 adaptersWithAcceptChangesDuringUpdate.Add(this._jobTableAdapter.Adapter); 7876 } 7877 } 7868 7878 if ((this._clientGroup_ResourceTableAdapter != null)) { 7869 7879 revertConnections.Add(this._clientGroup_ResourceTableAdapter, this._clientGroup_ResourceTableAdapter.Connection); … … 7873 7883 this._clientGroup_ResourceTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 7874 7884 adaptersWithAcceptChangesDuringUpdate.Add(this._clientGroup_ResourceTableAdapter.Adapter); 7875 }7876 }7877 if ((this._jobTableAdapter != null)) {7878 revertConnections.Add(this._jobTableAdapter, this._jobTableAdapter.Connection);7879 this._jobTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));7880 this._jobTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));7881 if (this._jobTableAdapter.Adapter.AcceptChangesDuringUpdate) {7882 this._jobTableAdapter.Adapter.AcceptChangesDuringUpdate = false;7883 adaptersWithAcceptChangesDuringUpdate.Add(this._jobTableAdapter.Adapter);7884 7885 } 7885 7886 } … … 7970 7971 this._clientGroupTableAdapter.Transaction = null; 7971 7972 } 7973 if ((this._jobTableAdapter != null)) { 7974 this._jobTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._jobTableAdapter])); 7975 this._jobTableAdapter.Transaction = null; 7976 } 7972 7977 if ((this._clientGroup_ResourceTableAdapter != null)) { 7973 7978 this._clientGroup_ResourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientGroup_ResourceTableAdapter])); 7974 7979 this._clientGroup_ResourceTableAdapter.Transaction = null; 7975 }7976 if ((this._jobTableAdapter != null)) {7977 this._jobTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._jobTableAdapter]));7978 this._jobTableAdapter.Transaction = null;7979 7980 } 7980 7981 if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
Note: See TracChangeset
for help on using the changeset viewer.