no message

This commit is contained in:
2024-10-14 12:14:01 +03:00
parent 3a29898d5f
commit 452c4c7268
466 changed files with 1255 additions and 1100 deletions

View File

@@ -0,0 +1,31 @@
package _VisualDVM.Passes.Server;
import Common.Database.Database;
import Common.Database.Objects.DBObject;
import _VisualDVM.Global;
import _VisualDVM.Repository.RepositoryServer;
public abstract class ServerObjectPass <S extends RepositoryServer, D extends DBObject> extends RepositoryPass<S,D>{
protected Class<D> d; //класс объектов.
//---
public ServerObjectPass(S server_in, Class<D> d_in) {
super(server_in);
d = d_in;
}
//--
@Override
public String getButtonText() {
return "";
}
//--
protected Database getDb() {
return server.db;
}
@Override
protected void performFinish() throws Exception {
super.performFinish();
Global.mainModule.getPass(getDb().getSynchronizePassCode()).Do();
}
//-
public boolean fillObjectFields() throws Exception {
return getDb().tables.get(d).ShowAddObjectDialog(target);
}
}