Package io.keikaiex.app.impl
Class BookManagerEx
- java.lang.Object
-
- io.keikai.app.impl.BookManagerImpl
-
- io.keikaiex.app.impl.BookManagerEx
-
- All Implemented Interfaces:
BookManager
,Serializable
public class BookManagerEx extends BookManagerImpl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.keikai.app.impl.BookManagerImpl
repo
-
-
Constructor Summary
Constructors Constructor Description BookManagerEx(BookRepository repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class io.keikai.app.impl.BookManagerImpl
getInstance
-
-
-
-
Constructor Detail
-
BookManagerEx
public BookManagerEx(BookRepository repo)
-
-
Method Detail
-
readBook
public Book readBook(BookInfo info) throws IOException
- Specified by:
readBook
in interfaceBookManager
- Overrides:
readBook
in classBookManagerImpl
- Throws:
IOException
-
updateBook
public BookInfo updateBook(BookInfo info, Book book) throws IOException
- Specified by:
updateBook
in interfaceBookManager
- Overrides:
updateBook
in classBookManagerImpl
- Throws:
IOException
-
saveBook
public BookInfo saveBook(BookInfo info, Book book) throws IOException
- Specified by:
saveBook
in interfaceBookManager
- Overrides:
saveBook
in classBookManagerImpl
- Throws:
IOException
-
deleteBook
public void deleteBook(BookInfo info) throws IOException
- Specified by:
deleteBook
in interfaceBookManager
- Overrides:
deleteBook
in classBookManagerImpl
- Throws:
IOException
-
detachBook
public void detachBook(BookInfo info) throws IOException
- Specified by:
detachBook
in interfaceBookManager
- Overrides:
detachBook
in classBookManagerImpl
- Throws:
IOException
-
isBookAttached
public boolean isBookAttached(BookInfo info)
- Specified by:
isBookAttached
in interfaceBookManager
- Overrides:
isBookAttached
in classBookManagerImpl
-
saveAll
public void saveAll() throws IOException
- Specified by:
saveAll
in interfaceBookManager
- Overrides:
saveAll
in classBookManagerImpl
- Throws:
IOException
-
shutdownAutoFileSaving
public void shutdownAutoFileSaving()
- Specified by:
shutdownAutoFileSaving
in interfaceBookManager
- Overrides:
shutdownAutoFileSaving
in classBookManagerImpl
-
-