Пример #1
0
 public void createBook(Book book) {
   bDao.create(book);
 }
Пример #2
0
 public Book findBook(int id) {
   return dao.findById(id);
 }
Пример #3
0
 public List<Book> getAllBooks() {
   // TODO Auto-generated method stub
   return dao.getAll();
 }
Пример #4
0
 public void insertBook(Book b) {
   dao.insert(b);
 }