1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Data.Linq;
|
---|
24 | using HeuristicLab.Services.Hive.DataAccess.Daos;
|
---|
25 | using HeuristicLab.Services.Hive.DataAccess.Daos.HiveStatistics;
|
---|
26 | using HeuristicLab.Services.Hive.DataAccess.Data;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.Services.Hive.DataAccess.Interfaces {
|
---|
29 | public interface IPersistenceManager : IDisposable {
|
---|
30 | DataContext DataContext { get; }
|
---|
31 |
|
---|
32 | #region Hive daos
|
---|
33 | AssignedResourceDao AssignedResourceDao { get; }
|
---|
34 | DowntimeDao DowntimeDao { get; }
|
---|
35 | JobDao JobDao { get; }
|
---|
36 | JobPermissionDao JobPermissionDao { get; }
|
---|
37 | LifecycleDao LifecycleDao { get; }
|
---|
38 | PluginDao PluginDao { get; }
|
---|
39 | PluginDataDao PluginDataDao { get; }
|
---|
40 | RequiredPluginDao RequiredPluginDao { get; }
|
---|
41 | ResourceDao ResourceDao { get; }
|
---|
42 | ResourcePermissionDao ResourcePermissionDao { get; }
|
---|
43 | SlaveDao SlaveDao { get; }
|
---|
44 | SlaveGroupDao SlaveGroupDao { get; }
|
---|
45 | StateLogDao StateLogDao { get; }
|
---|
46 | TaskDao TaskDao { get; }
|
---|
47 | TaskDataDao TaskDataDao { get; }
|
---|
48 | UserPriorityDao UserPriorityDao { get; }
|
---|
49 | #endregion
|
---|
50 |
|
---|
51 | #region HiveStatistics daos
|
---|
52 | DimClientDao DimClientDao { get; }
|
---|
53 | DimJobDao DimJobDao { get; }
|
---|
54 | DimTimeDao DimTimeDao { get; }
|
---|
55 | DimUserDao DimUserDao { get; }
|
---|
56 | FactClientInfoDao FactClientInfoDao { get; }
|
---|
57 | FactTaskDao FactTaskDao { get; }
|
---|
58 | #endregion
|
---|
59 |
|
---|
60 | #region Transaction management
|
---|
61 | void UseTransaction(Action call, bool repeatableRead = false, bool longRunning = false);
|
---|
62 | T UseTransaction<T>(Func<T> call, bool repeatableRead = false, bool longRunning = false);
|
---|
63 | #endregion
|
---|
64 |
|
---|
65 | TableInformation GetTableInformation(string table);
|
---|
66 | void SubmitChanges();
|
---|
67 | }
|
---|
68 | }
|
---|