Package org.mifosplatform.accounting.financialactivityaccount.exception

Examples of org.mifosplatform.accounting.financialactivityaccount.exception.FinancialActivityAccountNotFoundException


            sqlBuilder.append(this.financialActivityAccountMapper.schema());
            sqlBuilder.append(" where faa.id=?");
            return this.jdbcTemplate.queryForObject(sqlBuilder.toString(), this.financialActivityAccountMapper,
                    new Object[] { financialActivityAccountId });
        } catch (final EmptyResultDataAccessException e) {
            throw new FinancialActivityAccountNotFoundException(financialActivityAccountId);
        }
    }
View Full Code Here


        this.repository = repository;
    }

    public FinancialActivityAccount findOneWithNotFoundDetection(final Long id) {
        final FinancialActivityAccount financialActivityAccount = this.repository.findOne(id);
        if (financialActivityAccount == null) { throw new FinancialActivityAccountNotFoundException(id); }
        return financialActivityAccount;
    }
View Full Code Here

        return financialActivityAccount;
    }

    public FinancialActivityAccount findByFinancialActivityTypeWithNotFoundDetection(final int financialActivityType) {
        FinancialActivityAccount financialActivityAccount = this.repository.findByFinancialActivityType(financialActivityType);
        if (financialActivityAccount == null) { throw new FinancialActivityAccountNotFoundException(financialActivityType); }
        return financialActivityAccount;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.accounting.financialactivityaccount.exception.FinancialActivityAccountNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.