public KontoDO getKonto(final Integer id) { if (id == null) { return null; } checkRefresh(); return accountMapById.get(id); }
public boolean isEmpty() { checkRefresh(); return MapUtils.isEmpty(accountMapById); }
/** * Gets account of given project if given, otherwise the account assigned to the customer assigned to this project. If * no account is given at all, null is returned.<br/> * Please note: The object of project must be initialized including the assigned customer, if not a * {@link LazyInitializationException} could be thrown. * * @param project * @return The assigned account if given, otherwise null. */ public KontoDO getKonto(final ProjektDO project) { if (project == null) { return null; } checkRefresh(); KontoDO konto = getKonto(project.getKontoId()); if (konto != null) { return konto; } final KundeDO customer = project.getKunde(); if (customer != null) { konto = getKonto(customer.getKontoId()); } return konto; }
return null; checkRefresh(); KontoDO konto = getKonto(invoice.getKontoId()); if (konto != null) {