Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/08 17:26:43 (16 years ago)
Author:
svonolfe
Message:

Refactored DAL, Improved Caching (#372)

Location:
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IClientAdapter.cs

    r971 r995  
    3030  /// The client database adapter
    3131  /// </summary>
    32   public interface IClientAdapter {
    33     /// <summary>
    34     /// Save or update the client
    35     /// </summary>
    36     /// <param name="client"></param>
    37     void UpdateClient(ClientInfo client);
    38 
    39     /// <summary>
    40     /// Get the client with the specified ID
    41     /// </summary>
    42     /// <param name="clientId"></param>
    43     /// <returns></returns>
    44     ClientInfo GetClientById(Guid clientId);
    45 
     32  public interface IClientAdapter : IDataAdapter<ClientInfo> {
    4633    /// <summary>
    4734    /// Get the client with the specified name
     
    4936    /// <param name="clientId"></param>
    5037    /// <returns></returns>
    51     ClientInfo GetClientByName(string name);
     38    ClientInfo GetByName(string name);
    5239
    5340    /// <summary>
    54     /// Get the client with the specified ID
     41    /// Get the client with the specified id
    5542    /// </summary>
    5643    /// <param name="clientId"></param>
    5744    /// <returns></returns>
    58     ClientInfo GetClientById(long id);
    59 
    60     /// <summary>
    61     /// Get all clients
    62     /// </summary>
    63     /// <returns></returns>
    64     ICollection<ClientInfo> GetAllClients();
    65 
    66     /// <summary>
    67     /// Deletes the client
    68     /// </summary>
    69     /// <param name="client"></param>
    70     bool DeleteClient(ClientInfo client);
     45    ClientInfo GetById(Guid id);
    7146  }
    7247}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IClientGroupAdapter.cs

    r971 r995  
    3030  /// The client group database adapter
    3131  /// </summary>
    32   public interface IClientGroupAdapter {
    33     /// <summary>
    34     /// Save or update the client group
    35     /// </summary>
    36     /// <param name="client"></param>
    37     void UpdateClientGroup(ClientGroup group);
    38 
    39     /// <summary>
    40     /// Get the client group with the specified ID
    41     /// </summary>
    42     /// <param name="clientId"></param>
    43     /// <returns></returns>
    44     ClientGroup GetClientGroupById(long clientGroupId);
    45 
     32  public interface IClientGroupAdapter: IDataAdapter<ClientGroup> {
    4633    /// <summary>
    4734    /// Get the client group with the specified name
     
    4936    /// <param name="clientId"></param>
    5037    /// <returns></returns>
    51     ClientGroup GetClientGroupByName(string name);
    52 
    53     /// <summary>
    54     /// Get all client groups
    55     /// </summary>
    56     /// <returns></returns>
    57     ICollection<ClientGroup> GetAllClientGroups();
     38    ClientGroup GetByName(string name);
    5839
    5940    /// <summary>
     
    6344    /// <returns></returns>
    6445    ICollection<ClientGroup> MemberOf(Resource resource);
    65 
    66     /// <summary>
    67     /// Deletes the client group
    68     /// </summary>
    69     /// <param name="client"></param>
    70     bool DeleteClientGroup(ClientGroup group);
    7146  }
    7247}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IJobAdapter.cs

    r971 r995  
    2727
    2828namespace HeuristicLab.Hive.Server.Core.InternalInterfaces.DataAccess {
    29   public interface IJobAdapter {
    30     /// <summary>
    31     /// Save or update the job
    32     /// </summary>
    33     /// <param name="client"></param>
    34     void UpdateJob(Job job);
    35 
    36     /// <summary>
    37     /// Get the job with the specified ID
    38     /// </summary>
    39     /// <param name="clientId"></param>
    40     /// <returns></returns>
    41     Job GetJobById(long id);
    42 
    43     /// <summary>
    44     /// Get all jobs
    45     /// </summary>
    46     /// <returns></returns>
    47     ICollection<Job> GetAllJobs();
    48 
     29  public interface IJobAdapter: IDataAdapter<Job> {
    4930    /// <summary>
    5031    /// Gets all subjobs of the specified job
     
    7354    /// <returns></returns>
    7455    ICollection<Job> GetJobsOf(User user);
    75 
    76     /// <summary>
    77     /// Deletes the job
    78     /// </summary>
    79     /// <param name="client"></param>
    80     bool DeleteJob(Job job);
    8156  }
    8257}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IPermissionOwnerAdapter.cs

    r925 r995  
    3030  /// The permission owner database adapter
    3131  /// </summary>
    32   public interface IPermissionOwnerAdapter {
    33     /// <summary>
    34     /// Save or update the permission owner
    35     /// </summary>
    36     /// <param name="client"></param>
    37     void UpdatePermissionOwner(PermissionOwner permOwner);
    38 
     32  public interface IPermissionOwnerAdapter: IDataAdapter<PermissionOwner> {
    3933    /// <summary>
    4034    /// Gets the permission owner and updates the values of the object
     
    4236    /// <param name="resource"></param>
    4337    /// <returns></returns>
    44     bool GetPermissionOwnerById(PermissionOwner permOwner);
    45 
    46     /// <summary>
    47     /// Get the permission owner with the specified ID
    48     /// </summary>
    49     /// <param name="clientId"></param>
    50     /// <returns></returns>
    51     PermissionOwner GetPermissionOwnerById(long permOwnerId);
     38    bool GetById(PermissionOwner permOwner);
    5239
    5340    /// <summary>
     
    5643    /// <param name="clientId"></param>
    5744    /// <returns></returns>
    58     PermissionOwner GetPermissionOwnerByName(String name);
    59 
    60     /// <summary>
    61     /// Get all permission owners
    62     /// </summary>
    63     /// <returns></returns>
    64     ICollection<PermissionOwner> GetAllPermissionOwners();
    65 
    66     /// <summary>
    67     /// Deletes the permission owner
    68     /// </summary>
    69     /// <param name="permOwner"></param>
    70     bool DeletePermissionOwner(PermissionOwner permOwner);
     45    PermissionOwner GetByName(String name);
    7146  }
    7247}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IResourceAdapter.cs

    r971 r995  
    3030  /// The resource database adapter
    3131  /// </summary>
    32   public interface IResourceAdapter {
     32  public interface IResourceAdapter: IDataAdapter<Resource> {
    3333    /// <summary>
    34     /// Save or update the resource
     34    /// Gets the resource and updates the values of the object
    3535    /// </summary>
    36     /// <param name="client"></param>
    37     void UpdateResource(Resource resource);
    38 
    39     /// <summary>
    40     /// Get the resource with the specified ID
    41     /// </summary>
    42     /// <param name="clientId"></param>
     36    /// <param name="resource"></param>
    4337    /// <returns></returns>
    44     Resource GetResourceById(long resourceId);
     38    bool GetById(Resource resource);
    4539
    4640    /// <summary>
     
    4943    /// <param name="clientId"></param>
    5044    /// <returns></returns>
    51     Resource GetResourceByName(string name);
    52 
    53     /// <summary>
    54     /// Gets the resource and updates the values of the object
    55     /// </summary>
    56     /// <param name="resource"></param>
    57     /// <returns></returns>
    58     bool GetResourceById(Resource resource);
    59 
    60     /// <summary>
    61     /// Get all resuorces
    62     /// </summary>
    63     /// <returns></returns>
    64     ICollection<Resource> GetAllResources();
    65 
    66     /// <summary>
    67     /// Deletes the resource
    68     /// </summary>
    69     /// <param name="client"></param>
    70     bool DeleteResource(Resource resource);
     45    Resource GetByName(string name);
    7146  }
    7247}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IUserAdapter.cs

    r899 r995  
    3030  /// The user database adapter
    3131  /// </summary>
    32   public interface IUserAdapter {
    33     /// <summary>
    34     /// Save or update the user
    35     /// </summary>
    36     /// <param name="user"></param>
    37     void UpdateUser(User user);
    38 
    39     /// <summary>
    40     /// Get the user with the specified ID
    41     /// </summary>
    42     /// <param name="userId"></param>
    43     /// <returns></returns>
    44     User GetUserById(long userId);
    45 
     32  public interface IUserAdapter: IDataAdapter<User> {
    4633    /// <summary>
    4734    /// Get the user with the specified name
     
    4936    /// <param name="userId"></param>
    5037    /// <returns></returns>
    51     User GetUserByName(string name);
    52 
    53     /// <summary>
    54     /// Get all users
    55     /// </summary>
    56     /// <returns></returns>
    57     ICollection<User> GetAllUsers();
    58 
    59     /// <summary>
    60     /// Deletes the user
    61     /// </summary>
    62     /// <param name="user"></param>
    63     bool DeleteUser(User user);
     38    User GetByName(string name);
    6439  }
    6540}
  • TabularUnified trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IUserGroupAdapter.cs

    r971 r995  
    3030  /// The user group database adapter
    3131  /// </summary>
    32   public interface IUserGroupAdapter {
    33     /// <summary>
    34     /// Save or update the user group
    35     /// </summary>
    36     /// <param name="client"></param>
    37     void UpdateUserGroup(UserGroup group);
    38 
    39     /// <summary>
    40     /// Get the user group with the specified ID
    41     /// </summary>
    42     /// <param name="clientId"></param>
    43     /// <returns></returns>
    44     UserGroup GetUserGroupById(long userGroupId);
    45 
     32  public interface IUserGroupAdapter: IDataAdapter<UserGroup> {
    4633    /// <summary>
    4734    /// Get the user group with the specified name
     
    4936    /// <param name="clientId"></param>
    5037    /// <returns></returns>
    51     UserGroup GetUserGroupByName(string name);
    52 
    53     /// <summary>
    54     /// Get all user groups
    55     /// </summary>
    56     /// <returns></returns>
    57     ICollection<UserGroup> GetAllUserGroups();
     38    UserGroup GetByName(String name);
    5839
    5940    /// <summary>
     
    6344    /// <returns></returns>
    6445    ICollection<UserGroup> MemberOf(PermissionOwner permOwner);
    65 
    66     /// <summary>
    67     /// Deletes the user group
    68     /// </summary>
    69     /// <param name="client"></param>
    70     bool DeleteUserGroup(UserGroup group);
    7146  }
    7247}
Note: See TracChangeset for help on using the changeset viewer.