Package org.mifosplatform.portfolio.interestratechart.exception

Examples of org.mifosplatform.portfolio.interestratechart.exception.InterestRateChartSlabNotFoundException


        this.repository = repository;
    }

    public InterestRateChartSlab findOneWithNotFoundDetection(final Long chartSlabId) {
        final InterestRateChartSlab chartSlab = this.repository.findOne(chartSlabId);
        if (chartSlab == null) { throw new InterestRateChartSlabNotFoundException(chartSlabId); }
        return chartSlab;
    }
View Full Code Here


    public InterestRateChartSlabData retrieveOne(Long chartId, Long chartSlabId) {
        this.context.authenticatedUser();
        final String sql = "select " + this.chartSlabExtractor.schema() + " where irc.id = ? order by ircd.id asc";
        Collection<InterestRateChartSlabData> chartDatas = this.jdbcTemplate.query(sql, this.chartSlabExtractor, new Object[] {
                chartSlabId, chartId });
        if (chartDatas == null || chartDatas.isEmpty()) { throw new InterestRateChartSlabNotFoundException(chartSlabId, chartId); }

        return chartDatas.iterator().next();
    }
View Full Code Here

    public InterestRateChartSlab assembleFrom(final Long chartSlabId, final Long chartId) {
        final InterestRateChart chart = this.interestRateChartRepositoryWrapper.findOneWithNotFoundDetection(chartId);
        final InterestRateChartSlab interestRateChartSlab = chart.findChartSlab(chartSlabId);

        if (interestRateChartSlab == null) throw new InterestRateChartSlabNotFoundException(chartSlabId, chartId);

        return interestRateChartSlab;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.interestratechart.exception.InterestRateChartSlabNotFoundException

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.