Class CalendarRepositoryWrapper
java.lang.Object
org.apache.fineract.portfolio.calendar.domain.CalendarRepositoryWrapper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(org.apache.fineract.portfolio.calendar.domain.Calendar calendar) org.apache.fineract.portfolio.calendar.domain.CalendarfindOneWithNotFoundDetection(Long calendarId) voidsave(org.apache.fineract.portfolio.calendar.domain.Calendar calendar) voidsaveAndFlush(org.apache.fineract.portfolio.calendar.domain.Calendar calendar)
-
Constructor Details
-
CalendarRepositoryWrapper
-
-
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)
-