public void setPathToTerminalDB(String pathToTerminalDB) { boolean changed = setValue(PATH_TO_TERMINAL_DB, pathToTerminalDB); if (changed) { TerminalDB.getRawInstance().closeConnection(); // reconnect in getInstance TerminalDB.getRawInstance().tryConnectToDB(); if (TerminalDB.getRawInstance().isConnected()) { DistancesRegistry.getInstance().refresh(); TeamsRegistry.getInstance().refresh(); UsersRegistry.getInstance().refresh(); } } }
private void updatePrevWithdrawnMembers() { if (getCurrentScanPoint() != null && getCurrentTeam() != null) { prevWithdrawnMembers.clear(); prevWithdrawnMembers.addAll( TerminalDB.getConnectedInstance() .getDismissedMembers(getLevelPointForTeam(), getCurrentTeam())); } }
public void setCurrentRaidId(String currentRaidId) { boolean changed = setValue(CURRENT_RAID_ID, currentRaidId); if (changed) { if (TerminalDB.getConnectedInstance() != null) { DistancesRegistry.getInstance().refresh(); TeamsRegistry.getInstance().refresh(); UsersRegistry.getInstance().refresh(); } } }
public void saveCurrWithdrawnToDB(Date recordDateTime) { TerminalDB.getConnectedInstance() .saveDismissedMembers( getLevelPointForTeam(), getCurrentTeam(), currWithdrawnMembers, recordDateTime); }