Package org.mifosplatform.portfolio.charge.exception

Examples of org.mifosplatform.portfolio.charge.exception.SavingsAccountChargeNotFoundException


                        savingsAccountCharges.add(savingsAccountCharge);
                    } else {
                        final Long savingsAccountChargeId = id;
                        final SavingsAccountCharge savingsAccountCharge = this.savingsAccountChargeRepository
                                .findOne(savingsAccountChargeId);
                        if (savingsAccountCharge == null) { throw new SavingsAccountChargeNotFoundException(savingsAccountChargeId); }

                        savingsAccountCharge.update(amount, dueDate, feeOnMonthDay, feeInterval);

                        savingsAccountCharges.add(savingsAccountCharge);
                    }
View Full Code Here


            final String sql = "select " + rm.schema() + " where sc.id=? and sc.savings_account_id=?";

            return this.jdbcTemplate.queryForObject(sql, rm, new Object[] { id, savingsAccountId });
        } catch (final EmptyResultDataAccessException e) {
            throw new SavingsAccountChargeNotFoundException(savingsAccountId);
        }
    }
View Full Code Here

                        savingsAccountCharges.add(savingsAccountCharge);
                    } else {
                        final Long savingsAccountChargeId = id;
                        final SavingsAccountCharge savingsAccountCharge = this.savingsAccountChargeRepository
                                .findOne(savingsAccountChargeId);
                        if (savingsAccountCharge == null) { throw new SavingsAccountChargeNotFoundException(savingsAccountChargeId); }

                        savingsAccountCharge.update(amount, dueDate, null, null);

                        savingsAccountCharges.add(savingsAccountCharge);
                    }
View Full Code Here

                charge = existingCharge;
                break;
            }
        }

        if (charge == null) { throw new SavingsAccountChargeNotFoundException(savingsAccountChargeId, getId()); }

        return charge;
    }
View Full Code Here

        this.repository = repository;
    }

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

        return savingsAccountCharge;
    }

    public SavingsAccountCharge findOneWithNotFoundDetection(final Long id, final Long savingsAccountId) {
        final SavingsAccountCharge savingsAccountCharge = this.repository.findByIdAndSavingsAccountId(id, savingsAccountId);
        if (savingsAccountCharge == null) { throw new SavingsAccountChargeNotFoundException(id); }
        return savingsAccountCharge;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.charge.exception.SavingsAccountChargeNotFoundException

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.