рефакторинг. неудачные наименования классов, и остатки старых вариантов
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package GlobalData;
|
||||
import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Database.DataSet;
|
||||
import Common.Database.SQLITE.SQLiteDatabase;
|
||||
import Common.Global;
|
||||
import Common.UI.DataSetControlForm;
|
||||
import GlobalData.Account.Account;
|
||||
import GlobalData.Account.AccountsDBTable;
|
||||
import GlobalData.Compiler.CompilersDBTable;
|
||||
@@ -19,7 +17,6 @@ import GlobalData.Grid.GridsDBTable;
|
||||
import GlobalData.Machine.MachinesDBTable;
|
||||
import GlobalData.Makefile.MakefilesDBTable;
|
||||
import GlobalData.Module.ModulesDBTable;
|
||||
import GlobalData.RemoteSapfor.RemoteSapforsDBTable;
|
||||
import GlobalData.RunConfiguration.RunConfigurationsDBTable;
|
||||
import GlobalData.SapforProfile.SapforProfile;
|
||||
import GlobalData.SapforProfile.SapforProfilesDBTable;
|
||||
@@ -33,24 +30,17 @@ import GlobalData.Tasks.CompilationTask.CompilationTasksDBTable;
|
||||
import GlobalData.Tasks.RunTask.RunTasksDBTable;
|
||||
import GlobalData.User.UsersDBTable;
|
||||
import Repository.Component.ComponentType;
|
||||
import SapforTestingSystem.SapforTask.SapforTaskResult;
|
||||
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
|
||||
import TestingSystem.TaskKey.TaskKeysDBTable;
|
||||
import Visual_DVM_2021.PassStats.PassStatsDBTable;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
import static Common.UI.Tables.TableRenderers.RendererStatusEnum;
|
||||
public class GlobalDatabase extends SQLiteDatabase {
|
||||
//---------СЕАНС----------------------------------------------
|
||||
public MachinesDBTable machines;
|
||||
public UsersDBTable users;
|
||||
public CompilersDBTable compilers;
|
||||
public RemoteSapforsDBTable remoteSapfors;
|
||||
public MakefilesDBTable makefiles;
|
||||
public ModulesDBTable modules;
|
||||
public CompilationTasksDBTable compilationTasks;
|
||||
@@ -70,10 +60,6 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
public GridsDBTable grids;
|
||||
//-
|
||||
public TaskKeysDBTable tasksKeys;
|
||||
//---------
|
||||
// public SapforScenariosDBTable sapforScenarios;
|
||||
// public SapforTasksPackagesDBTable sapforTasksPackages;
|
||||
// public SapforTasksDBTable sapforTasks = null;
|
||||
public SapforProfilesDBTable sapforProfiles = null;
|
||||
//---------
|
||||
public SapforProfileSettingsDBTable sapforProfilesSettings = null;
|
||||
@@ -86,7 +72,6 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
addTable(machines = new MachinesDBTable());
|
||||
addTable(users = new UsersDBTable());
|
||||
addTable(compilers = new CompilersDBTable());
|
||||
addTable(remoteSapfors = new RemoteSapforsDBTable());
|
||||
addTable(makefiles = new MakefilesDBTable());
|
||||
addTable(modules = new ModulesDBTable());
|
||||
addTable(compilationTasks = new CompilationTasksDBTable());
|
||||
@@ -104,11 +89,6 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
addTable(dvmParameters = new DVMParameterDBTable());
|
||||
addTable(grids = new GridsDBTable());
|
||||
addTable(tasksKeys = new TaskKeysDBTable());
|
||||
//--
|
||||
// addTable(sapforScenarios = new SapforScenariosDBTable());
|
||||
// addTable(sapforTasksPackages = new SapforTasksPackagesDBTable());
|
||||
// addTable(sapforTasks = new SapforTasksDBTable());
|
||||
//--
|
||||
addTable(sapforProfiles = new SapforProfilesDBTable());
|
||||
addTable(sapforProfilesSettings = new SapforProfileSettingsDBTable());
|
||||
}
|
||||
@@ -138,8 +118,6 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
credentials.makefile_id = Current.getMakefile().id;
|
||||
if (Current.HasRunConfiguration())
|
||||
credentials.runconfiguration_id = Current.getRunConfiguration().id;
|
||||
if (Current.HasRemoteSapfor())
|
||||
credentials.remotesapfor_id = Current.getRemoteSapfor().id;
|
||||
Update(credentials);
|
||||
}
|
||||
public void UpdateCredentials() {
|
||||
@@ -156,17 +134,7 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
return res;
|
||||
}
|
||||
/*
|
||||
public LinkedHashMap<Long, SapforTask> getSapforPackageTasks(int package_id) throws Exception {
|
||||
LinkedHashMap<Long, SapforTask> res = new LinkedHashMap<>();
|
||||
for (SapforTask task : sapforTasks.Data.values()) {
|
||||
if (task.sapfor_configuration_id == package_id) {
|
||||
res.put(task.id, task);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
*/
|
||||
public DataSet<String, SapforTaskResult> getSapforPackagesMasterDataSet(SapforTasksPackage package_in) throws Exception {
|
||||
public DataSet<String, SapforTaskResult> getSapforPackagesMasterDataSet(SapforConfigurationTasksSet package_in) throws Exception {
|
||||
DataSet<String, SapforTaskResult> res = new DataSet<String, SapforTaskResult>(String.class, SapforTaskResult.class) {
|
||||
@Override
|
||||
protected DataSetControlForm createUI() {
|
||||
@@ -209,11 +177,9 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
for (SapforTask task : sapforTasks.Data.values())
|
||||
if (task.sapfor_configuration_id == package_in.id)
|
||||
res.put(task.test_description, new SapforTaskResult(package_in, task));
|
||||
*/
|
||||
return res;
|
||||
}
|
||||
//--
|
||||
public DataSet<String, SapforTaskResult> getSapforPackagesSlaveDataSet(SapforTasksPackage package_in) throws Exception {
|
||||
public DataSet<String, SapforTaskResult> getSapforPackagesSlaveDataSet(SapforConfigurationTasksSet package_in) throws Exception {
|
||||
DataSet<String, SapforTaskResult> res = new DataSet<String, SapforTaskResult>(String.class, SapforTaskResult.class) {
|
||||
@Override
|
||||
protected DataSetControlForm createUI() {
|
||||
@@ -256,13 +222,13 @@ public class GlobalDatabase extends SQLiteDatabase {
|
||||
return Current.SapforTaskResult;
|
||||
}
|
||||
};
|
||||
/*
|
||||
for (SapforTask task : sapforTasks.Data.values())
|
||||
if (task.sapfor_configuration_id == package_in.id)
|
||||
res.put(task.test_description, new SapforTaskResult(package_in, task));
|
||||
*/
|
||||
|
||||
return res;
|
||||
}
|
||||
*/
|
||||
//--
|
||||
public LinkedHashMap<SettingName, String> getSapforSettingsForProfile() {
|
||||
LinkedHashMap<SettingName, String> res = new LinkedHashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user