Package org.mifosplatform.portfolio.interestratechart.exception

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


        try {
            this.context.authenticatedUser();
            final String sql = "select " + this.chartRowMapper.schema() + " where irc.id = ?";
            return this.jdbcTemplate.queryForObject(sql, this.chartRowMapper, new Object[] { chartId });
        } catch (final EmptyResultDataAccessException e) {
            throw new InterestRateChartNotFoundException(chartId);
        }
    }
View Full Code Here


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

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

        this.repository = repository;
    }

    public InterestRateChart findOneWithNotFoundDetection(final Long intrestRateChartId) {
        final InterestRateChart interestRateChart = this.repository.findOne(intrestRateChartId);
        if (interestRateChart == null) { throw new InterestRateChartNotFoundException(intrestRateChartId); }
        return interestRateChart;
    }
View Full Code Here

TOP

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

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.