Class CalendarRepositoryWrapper

java.lang.Object
org.apache.fineract.portfolio.calendar.domain.CalendarRepositoryWrapper

@Service public class CalendarRepositoryWrapper extends Object

Wrapper for CalendarRepository that is responsible for checking if Calendar is returned when using findOne repository method and throwing an appropriate not found exception.

This is to avoid need for checking and throwing in multiple areas of code base where CalendarRepository is required.

  • Constructor Details

    • CalendarRepositoryWrapper

      @Autowired public CalendarRepositoryWrapper(CalendarRepository repository)
  • Method Details

    • findOneWithNotFoundDetection

      public org.apache.fineract.portfolio.calendar.domain.Calendar findOneWithNotFoundDetection(Long calendarId)
    • save

      public void save(org.apache.fineract.portfolio.calendar.domain.Calendar calendar)
    • delete

      public void delete(org.apache.fineract.portfolio.calendar.domain.Calendar calendar)
    • saveAndFlush

      public void saveAndFlush(org.apache.fineract.portfolio.calendar.domain.Calendar calendar)