Examples of SavingsAccountChargeNotFoundException


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

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

            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

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, null, null);

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

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

                charge = existingCharge;
                break;
            }
        }

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

        return charge;
    }
View Full Code Here

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

        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

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

        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
Copyright © 2018 www.massapi.com. 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.