?? 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);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -