Package io.keikai.app
Interface BookRepository
- All Superinterfaces:
Serializable
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeletes a booklist()Get the BookInfo listLoads a bookSaves a book and replace book of BookInfo.Saves a book and replace book of BookInfoSaves a book with a new name,
-
Method Details
-
list
Get the BookInfo list- Returns:
- the BookInfo list
-
load
Loads a book- Parameters:
info- the BookInfo- Returns:
- book or null if no such book.
- Throws:
IOException
-
save
Saves a book and replace book of BookInfo. This method will do nothing when book's dirty flag is false.- Parameters:
info- the BookInfobook- the book to be saved- Returns:
- the updated BookInfo, or null if not saved.
- Throws:
IOException
-
save
Saves a book and replace book of BookInfo- Parameters:
info- the BookInfobook- the book to be savedisForce- save without dirty check if true- Returns:
- the updated BookInfo, or null if not saved.
- Throws:
IOException
-
saveAs
Saves a book with a new name,- Parameters:
name- the new namebook- the book to be saved- Returns:
- the new BookInfo, or null if not saved.
- Throws:
IOException
-
delete
Deletes a book- Parameters:
info- the BookInfo- Returns:
- true if deleted, or false if not
- Throws:
IOException
-