Class BookRepository

java.lang.Object
io.micronaut.data.document.tck.repositories.BookRepository
All Implemented Interfaces:
CrudRepository<Book,String>, GenericRepository<Book,String>, PageableRepository<Book,String>

public abstract class BookRepository extends Object implements PageableRepository<Book,String>
  • Field Details

  • Constructor Details

  • Method Details

    • findByTotalPagesGreaterThan

      public abstract Page<Book> findByTotalPagesGreaterThan(int totalPages, Pageable pageable)
    • findAll

      public abstract List<Book> findAll()
      Description copied from interface: CrudRepository
      Returns all instances of the type.
      Specified by:
      findAll in interface CrudRepository<Book,String>
      Returns:
      all entities
    • findByTitle

      public abstract Book findByTitle(String title)
    • updateAuthor

      public abstract long updateAuthor(@Parameter("id") @Id String id, @Parameter("author") Author author)
    • deleteByIdAndAuthorId

      public abstract int deleteByIdAndAuthorId(String id, String authorId)
    • findTop3ByAuthorNameOrderByTitle

      public abstract Stream<Book> findTop3ByAuthorNameOrderByTitle(String name)
    • queryTop3ByAuthorNameOrderByTitle

      public abstract List<Book> queryTop3ByAuthorNameOrderByTitle(String name)
    • findByAuthorIsNull

      public abstract List<Book> findByAuthorIsNull()
    • findByAuthorIsNotNull

      public abstract List<Book> findByAuthorIsNotNull()
    • countByTitleIsEmpty

      public abstract int countByTitleIsEmpty()
    • countByTitleIsNotEmpty

      public abstract int countByTitleIsNotEmpty()
    • deleteByTitleIsEmptyOrTitleIsNull

      public abstract void deleteByTitleIsEmptyOrTitleIsNull()
    • findTop3OrderByTitle

      public abstract List<Book> findTop3OrderByTitle()
    • findByAuthorName

      public abstract List<Book> findByAuthorName(String name)
    • listByTitleIn

      public abstract List<Book> listByTitleIn(@Nullable @Nullable Collection<String> arg0)
    • listByTitleIn

      public abstract List<Book> listByTitleIn(@TypeDef(type=STRING) @Nullable @Nullable String[] arg0)
    • listByTitleIn

      public abstract List<Book> listByTitleIn(@Nullable @TypeDef(type=STRING_ARRAY) @Nullable List<String> arg0)
    • findByTitleIn

      public abstract List<Book> findByTitleIn(@Nullable @TypeDef(type=STRING_ARRAY) @Nullable String[] arg0)
    • saveAuthorBooks

      public void saveAuthorBooks(List<AuthorBooksDto> authorBooksDtos)
    • newAuthor

      protected Author newAuthor(String name)
    • newBook

      protected Book newBook(Author author, String title, int pages)