удаление устаревшего объекта
This commit is contained in:
@@ -28,7 +28,7 @@ public enum Current implements Current_ {
|
||||
Function,
|
||||
SelectedFunction,
|
||||
//-
|
||||
ProjectView, Credentials;
|
||||
ProjectView;
|
||||
@Override
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
package _VisualDVM.GlobalData.Credentials;
|
||||
import Common.CommonConstants;
|
||||
import Common.Database.Objects.iDBObject;
|
||||
import com.sun.org.glassfish.gmbal.Description;
|
||||
//todo вывести. оформить механизм сохр текущих объектов в бд визуализатора.
|
||||
public class Credentials extends iDBObject {
|
||||
@Description("DEFAULT -1")
|
||||
public int machine_id = CommonConstants.Nan;
|
||||
@Description("DEFAULT -1")
|
||||
public int user_id = CommonConstants.Nan;
|
||||
@Description("DEFAULT -1")
|
||||
public int compiler_id = CommonConstants.Nan;
|
||||
@Description("DEFAULT -1")
|
||||
public int makefile_id = CommonConstants.Nan;
|
||||
@Description("DEFAULT -1")
|
||||
public int runconfiguration_id = CommonConstants.Nan;
|
||||
@Description("DEFAULT -1")
|
||||
public int remotesapfor_id = CommonConstants.Nan;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package _VisualDVM.GlobalData.Credentials;
|
||||
import Common.Database.Tables.iDBTable;
|
||||
//todo реализовать стандартно для выбранных объектов (?)
|
||||
public class CredentialsDBTable extends iDBTable<Credentials> {
|
||||
public CredentialsDBTable() {
|
||||
super(Credentials.class);
|
||||
}
|
||||
}
|
||||
@@ -8,8 +8,6 @@ import _VisualDVM.GlobalData.Account.Account;
|
||||
import _VisualDVM.GlobalData.Account.AccountsDBTable;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Compiler.CompilersDBTable;
|
||||
import _VisualDVM.GlobalData.Credentials.Credentials;
|
||||
import _VisualDVM.GlobalData.Credentials.CredentialsDBTable;
|
||||
import _VisualDVM.GlobalData.DBLastProject.LastProjectsDBTable;
|
||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameterDBTable;
|
||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValuesDBTable;
|
||||
@@ -44,7 +42,6 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
public RunConfigurationsDBTable runConfigurations;
|
||||
public EnvironmentValuesDBTable environmentValues;
|
||||
public DVMParameterDBTable dvmParameters;
|
||||
public CredentialsDBTable credentials;
|
||||
//----- ДАННЫЕ ВИЗУАЛИЗАТОРА---------------------------------
|
||||
public LastProjectsDBTable lastProjects;
|
||||
public AccountsDBTable accounts;
|
||||
@@ -68,7 +65,6 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
addTable(runTasks = new RunTasksDBTable());
|
||||
addTable(runConfigurations = new RunConfigurationsDBTable());
|
||||
addTable(environmentValues = new EnvironmentValuesDBTable());
|
||||
addTable(credentials = new CredentialsDBTable());
|
||||
addTable(lastProjects = new LastProjectsDBTable());
|
||||
addTable(accounts = new AccountsDBTable());
|
||||
addTable(dvmParameters = new DVMParameterDBTable());
|
||||
@@ -82,9 +78,6 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
accounts.Data.isEmpty() ? Insert(new Account()) :
|
||||
accounts.getFirstRecord()
|
||||
);
|
||||
Global.mainModule.set(Current.Credentials,
|
||||
credentials.Data.isEmpty() ? Insert(new Credentials()) :
|
||||
credentials.getFirstRecord());
|
||||
//настройки компонент
|
||||
runConfigurations.Patch();
|
||||
//---
|
||||
|
||||
Reference in New Issue
Block a user