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 java.io.IOException
readBook
in interface BookManager
readBook
in class BookManagerImpl
java.io.IOException
public BookInfo updateBook(BookInfo info, Book book) throws java.io.IOException
updateBook
in interface BookManager
updateBook
in class BookManagerImpl
java.io.IOException
public BookInfo saveBook(BookInfo info, Book book) throws java.io.IOException
saveBook
in interface BookManager
saveBook
in class BookManagerImpl
java.io.IOException
public void deleteBook(BookInfo info) throws java.io.IOException
deleteBook
in interface BookManager
deleteBook
in class BookManagerImpl
java.io.IOException
public void detachBook(BookInfo info) throws java.io.IOException
detachBook
in interface BookManager
detachBook
in class BookManagerImpl
java.io.IOException
public boolean isBookAttached(BookInfo info)
isBookAttached
in interface BookManager
isBookAttached
in class BookManagerImpl
public void saveAll() throws java.io.IOException
saveAll
in interface BookManager
saveAll
in class BookManagerImpl
java.io.IOException
public void shutdownAutoFileSaving()
shutdownAutoFileSaving
in interface BookManager
shutdownAutoFileSaving
in class BookManagerImpl
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.