de.h_da.library.datamanagement.usecase
Interface Search


public interface Search

[usecase] This use case comprises all functionality for library customers to search the library catalogue.


Method Summary
 java.util.Collection<Book> findBooksByAttributes(Book book)
          [basicQuery] Finds all books in the library system according to a given template.
 

Method Detail

findBooksByAttributes

java.util.Collection<Book> findBooksByAttributes(Book book)
[basicQuery] Finds all books in the library system according to a given template.

Parameters:
book - [in] volatile Book object as search template
Returns:
[out] Collection of all Book objects in the library system whose attributes match the search template (substring comparison, case-insensitive)
    [post forall Book b in result: 
            b.title.toUpperCase().contains(book.title.toUpperCase()) if book.title != null 
     analogous for all other attributes of entity book
    ]