Ejemplo n.º 1
0
  public List<FeeBO> getAllApplicableFees(Integer accountId, FeeCategory categoryType)
      throws PersistenceException {
    HashMap<String, Object> queryParameters = new HashMap<String, Object>();
    queryParameters.put("accountId", accountId);

    queryParameters.put("active", FeeStatus.ACTIVE.getValue());
    if (categoryType.getValue().equals(FeeCategory.LOAN.getValue())) {
      queryParameters.put("category", FeeCategory.LOAN.getValue());
      return executeNamedQuery(NamedQueryConstants.GET_ALL_APPLICABLE_LOAN_FEE, queryParameters);
    }
    queryParameters.put("feeFrequencyTypeId", FeeFrequencyType.PERIODIC.getValue());
    queryParameters.put("category1", FeeCategory.ALLCUSTOMERS.getValue());
    queryParameters.put("category2", categoryType.getValue());
    return executeNamedQuery(NamedQueryConstants.GET_ALL_APPLICABLE_CUSTOMER_FEE, queryParameters);
  }
Ejemplo n.º 2
0
 public boolean isActive() {
   if (feeStatus == null || feeStatus.equals(FeeStatus.ACTIVE.getValue())) {
     return true;
   }
   return false;
 }