📄 bookserviceimpl.java
字号:
package com.ascent.business.service;
import java.util.List;
import com.ascent.bean.Book;
import com.ascent.business.IBookService;
import com.ascent.dao.IBookDAO;
public class BookServiceImpl implements IBookService {
private IBookDAO bookDAO;
/**
*
* @return
*/
public IBookDAO getBookDAO() {
return this.bookDAO;
}
public void setBookDAO(IBookDAO bookDAO) {
this.bookDAO = bookDAO;
}
/**
* @return
*
*/
public BookServiceImpl() {
super();
// TODO Auto-generated constructor stub
}
/**
*
* @param Book
* @return Book
*/
public Book saveBook(Book book) {
return this.getBookDAO().saveBook(book);
}
/**
*
* @param id
* int
*
* @return Book
*/
public Book getBook(Integer id) {
return this.getBookDAO().getBook(id);
}
/**
*
* @return List
*/
public List findBookAll() {
return this.getBookDAO().findBookAll();
}
/**
*
* @param type
* String
*
* @return List
*/
public List findBookById(Integer id) {
return this.getBookDAO().findBookById(id);
}
/**
*
* @param type
* String
*
* @return List
*/
public List findBookByName(String name) {
return this.getBookDAO().findBookByName(name);
}
/**
*
* @param Book
*
*/
public List findBookByAuthor(String author) {
return this.getBookDAO().findBookByAuthor(author);
}
public List findBookFive() {
return this.getBookDAO().findBookFive();
}
public Book updateBook(Book book){
return this.getBookDAO().updateBook(book);
}
public void removeBook(Book book) {
this.getBookDAO().removeBook(book);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -