Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/25/09 11:32:31 (16 years ago)
Author:
svonolfe
Message:

Refactored DAL, avoided possible race conditions (#372)

Location:
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/ClientConfig.cs

    r995 r1175  
    2929
    3030  [DataContract]
    31   public class ClientConfig: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class ClientConfig: HiveBaseObject {
    3432    [DataMember]
    3533    public String UpDownTimeCalendar { get; set; } // TODO define DataStructure
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/GrantedPermissions.cs

    r995 r1175  
    2929 
    3030  [DataContract]
    31   public class GrantedPermissions: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class GrantedPermissions: HiveBaseObject {
    3432    [DataMember]
    3533    public Permission Permission { get; set; }
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs

    r1168 r1175  
    2929
    3030  [DataContract]
    31   public class Job: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class Job : HiveBaseObject {
    3432    [DataMember]
    3533    public State State { get; set; }
     
    5048    [DataMember]
    5149    public int Priority { get; set; }
    52 
    53     public override bool Equals(object obj) {
    54       if (obj is Job) {
    55         return (obj as Job).Id.Equals(Id);
    56       } else     
    57         return base.Equals(obj);
    58     }
    59 
    60     public override int GetHashCode() {
    61       return Id.GetHashCode();
    62     }
    6350  }
    6451}
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/JobResult.cs

    r1168 r1175  
    2929
    3030  [DataContract]
    31   public class JobResult: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class JobResult: HiveBaseObject {
    3432    [DataMember]
    3533    public Job Job { get; set; }
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Permission.cs

    r995 r1175  
    2929
    3030  [DataContract]
    31   public class Permission: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class Permission: HiveBaseObject {
    3432    [DataMember]
    3533    public String Name { get; set; }
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/PermissionOwner.cs

    r995 r1175  
    2929
    3030  [DataContract]
    31   public class PermissionOwner: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class PermissionOwner: HiveBaseObject {
    3432    [DataMember]
    3533    public string Name { get; set; }
    36 
    37     public override bool Equals(object obj) {
    38       if (obj is PermissionOwner)
    39         return this.Id.Equals(
    40           (obj as PermissionOwner).Id);
    41       else
    42         return base.Equals(obj);
    43     }
    44 
    45     public override int GetHashCode() {
    46       return this.Id.GetHashCode();
    47     }
    4834  }
    4935}
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Resource.cs

    r995 r1175  
    2929
    3030  [DataContract]
    31   public class Resource: IHiveObject {
    32     [DataMember]
    33     public long Id { get; set; }
     31  public class Resource: HiveBaseObject {
    3432    [DataMember]
    3533    public string Name { get; set; }
    36 
    37     public override bool Equals(object obj) {
    38       if (obj is Resource)
    39         return (obj as Resource).Id.Equals(Id);
    40       else
    41         return base.Equals(obj);
    42     }
    43 
    44     public override int GetHashCode() {
    45       return Id.GetHashCode();
    46     }
    4734  }
    4835}
Note: See TracChangeset for help on using the changeset viewer.