@Override public void load() { try { load(AccountIO.find(false, dc).elements()); } catch (SQLException ex) { } }
@Override public void modification(Param current, Param p) throws SQLException { if (p instanceof Account) { Account c = (Account) p; AccountIO.update(c, dc); desktop.getDataCache().update(c); desktop.postEvent(new GemEvent(this, GemEvent.MODIFICATION, GemEvent.ACCOUNT, c)); } }
@Override /** @see net.algem.ctrl.parametres.ParamTableCtrl#insertion */ public void insertion(Param p) throws SQLException { if (p instanceof Account) { Account c = (Account) p; AccountIO.insert(c, dc); desktop.getDataCache().add(c); desktop.postEvent(new GemEvent(this, GemEvent.CREATION, GemEvent.ACCOUNT, c)); } }