Class ReportRepositoryWrapper

java.lang.Object
org.apache.fineract.infrastructure.dataqueries.domain.ReportRepositoryWrapper

@Service public class ReportRepositoryWrapper extends Object
A wrapper class for the ReportRepository that provides a method that returns a Report entity if it exists, else throws "ReportNotFoundException" exception if the Report does not exist
  • Constructor Details

    • ReportRepositoryWrapper

      @Autowired public ReportRepositoryWrapper(ReportRepository reportRepository)
  • Method Details

    • findOneThrowExceptionIfNotFound

      public Report findOneThrowExceptionIfNotFound(Long id)
      Retrieves an entity by its id
      Parameters:
      id - must not be null
      Returns:
      Report object
      Throws:
      ReportNotFoundException - if entity not found