public interface BookRepository extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
delete(BookInfo info)
Deletes a book
|
List<BookInfo> |
list()
Get the BookInfo list
|
Book |
load(BookInfo info)
Loads a book
|
BookInfo |
save(BookInfo info,
Book book)
Saves a book and replace book of BookInfo.
|
BookInfo |
save(BookInfo info,
Book book,
boolean isForce)
Saves a book and replace book of BookInfo
|
BookInfo |
saveAs(String name,
Book book)
Saves a book with a new name,
|
Book load(BookInfo info) throws IOException
info
- the BookInfoIOException
BookInfo save(BookInfo info, Book book) throws IOException
info
- the BookInfobook
- the book to be savedIOException
BookInfo save(BookInfo info, Book book, boolean isForce) throws IOException
info
- the BookInfobook
- the book to be savedisForce
- save without dirty check if trueIOException
BookInfo saveAs(String name, Book book) throws IOException
name
- the new namebook
- the book to be savedIOException
boolean delete(BookInfo info) throws IOException
info
- the BookInfoIOException
Copyright © 2020. All rights reserved.