public class BookManagerEx extends BookManagerImpl
repo
Constructor and Description |
---|
BookManagerEx(BookRepository repo) |
Modifier and Type | Method and Description |
---|---|
void |
deleteBook(BookInfo info) |
void |
detachBook(BookInfo info) |
boolean |
isBookAttached(BookInfo info) |
Book |
readBook(BookInfo info) |
void |
saveAll() |
BookInfo |
saveBook(BookInfo info,
Book book) |
void |
shutdownAutoFileSaving() |
BookInfo |
updateBook(BookInfo info,
Book book) |
getInstance
public BookManagerEx(BookRepository repo)
public Book readBook(BookInfo info) throws IOException
readBook
in interface BookManager
readBook
in class BookManagerImpl
IOException
public BookInfo updateBook(BookInfo info, Book book) throws IOException
updateBook
in interface BookManager
updateBook
in class BookManagerImpl
IOException
public BookInfo saveBook(BookInfo info, Book book) throws IOException
saveBook
in interface BookManager
saveBook
in class BookManagerImpl
IOException
public void deleteBook(BookInfo info) throws IOException
deleteBook
in interface BookManager
deleteBook
in class BookManagerImpl
IOException
public void detachBook(BookInfo info) throws IOException
detachBook
in interface BookManager
detachBook
in class BookManagerImpl
IOException
public boolean isBookAttached(BookInfo info)
isBookAttached
in interface BookManager
isBookAttached
in class BookManagerImpl
public void saveAll() throws IOException
saveAll
in interface BookManager
saveAll
in class BookManagerImpl
IOException
public void shutdownAutoFileSaving()
shutdownAutoFileSaving
in interface BookManager
shutdownAutoFileSaving
in class BookManagerImpl
Copyright © 2020. All rights reserved.