public interface BookDAO
Modifier and Type | Method and Description |
---|---|
Book |
create(Book book)
Add the book to the database.
|
List<Book> |
findAll(int start,
int count)
Returns a collection of books, starting at the index provided and
limiting the collection to the count value.
|
Book |
get(long id)
Gets a book from the database by its ID.
|
void |
remove(Book book)
Removes a book from the database.
|
Book |
update(Book book)
Updates the book in the database with the values in this object.
|
Book create(Book book) throws PersistenceException
PersistenceException
Book update(Book book) throws PersistenceException
PersistenceException
Book get(long id) throws PersistenceException
PersistenceException
void remove(Book book) throws PersistenceException
PersistenceException
List<Book> findAll(int start, int count) throws PersistenceException
PersistenceException
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.