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) void
void
deleteBook
(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) void
updateBook
(String id, BookDTO bookDTO)
-
Field Details
-
mapper
-
booksRepo
-
-
Constructor Details
-
BooksServiceImpl
public BooksServiceImpl()
-
-
Method Details
-
createBook
- Specified by:
createBook
in interfaceBooksService
-
getBooks
public org.springframework.data.domain.Page<BookDTO> getBooks(org.springframework.data.domain.Pageable pageable) - Specified by:
getBooks
in interfaceBooksService
-
getBook
- Specified by:
getBook
in interfaceBooksService
-
getRandomBook
- Specified by:
getRandomBook
in interfaceBooksService
-
updateBook
- Specified by:
updateBook
in interfaceBooksService
-
deleteBook
- Specified by:
deleteBook
in interfaceBooksService
-
findPublishedAfter
public org.springframework.data.domain.Page<BookDTO> findPublishedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable) - Specified by:
findPublishedAfter
in interfaceBooksService
-
deleteAllBooks
public void deleteAllBooks()- Specified by:
deleteAllBooks
in interfaceBooksService
-
findBooksMatchingAll
public org.springframework.data.domain.Page<BookDTO> findBooksMatchingAll(BookDTO probeDTO, org.springframework.data.domain.Pageable pageable) - Specified by:
findBooksMatchingAll
in interfaceBooksService
-