Class BooksServiceImpl
java.lang.Object
info.ejava.examples.db.mongo.books.svc.BooksServiceImpl
- All Implemented Interfaces:
BooksService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBook(BookDTO bookDTO) voidvoiddeleteBook(String id) org.springframework.data.domain.Page<BookDTO> findBooksMatchingAll(BookDTO probeDTO, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<BookDTO> findPublishedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<BookDTO> getBooks(org.springframework.data.domain.Pageable pageable) voidupdateBook(String id, BookDTO bookDTO)
-
Field Details
-
mapper
-
booksRepo
-
-
Constructor Details
-
BooksServiceImpl
public BooksServiceImpl()
-
-
Method Details
-
createBook
- Specified by:
createBookin interfaceBooksService
-
getBooks
public org.springframework.data.domain.Page<BookDTO> getBooks(org.springframework.data.domain.Pageable pageable) - Specified by:
getBooksin interfaceBooksService
-
getBook
- Specified by:
getBookin interfaceBooksService
-
getRandomBook
- Specified by:
getRandomBookin interfaceBooksService
-
updateBook
- Specified by:
updateBookin interfaceBooksService
-
deleteBook
- Specified by:
deleteBookin interfaceBooksService
-
findPublishedAfter
public org.springframework.data.domain.Page<BookDTO> findPublishedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable) - Specified by:
findPublishedAfterin interfaceBooksService
-
deleteAllBooks
public void deleteAllBooks()- Specified by:
deleteAllBooksin interfaceBooksService
-
findBooksMatchingAll
public org.springframework.data.domain.Page<BookDTO> findBooksMatchingAll(BookDTO probeDTO, org.springframework.data.domain.Pageable pageable) - Specified by:
findBooksMatchingAllin interfaceBooksService
-