рефакторинг. вынес в обобщенную часть бд, но еще не все

This commit is contained in:
2024-10-08 01:30:25 +03:00
parent d0c08a2c7e
commit 18ceb04325
91 changed files with 442 additions and 456 deletions

View File

@@ -1,7 +1,6 @@
package GlobalData.Machine;
import Common.Database.Objects.iDBObject;
import Common.Utils.CommonUtils;
import _VisualDVM.Global;
import GlobalData.Compiler.Compiler;
import GlobalData.User.User;
@@ -27,10 +26,10 @@ public class Machine extends iDBObject {
"Машина по адресу " + CommonUtils.Brackets(getURL());
}
public LinkedHashMap<Integer, Compiler> getCompilers() {
return Global.db.getMapByFKi(this, Compiler.class);
return CommonUtils.db.getMapByFKi(this, Compiler.class);
}
public LinkedHashMap<Integer, User> getUsers() {
return Global.db.getMapByFKi(this, User.class);
return CommonUtils.db.getMapByFKi(this, User.class);
}
@Override
public String getDialogName() {