You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package mvc基础2;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 鍥句功鏁版嵁璁块棶瀵硅薄锛圡odel灞傦級 璐熻矗鍥句功鏁版嵁鐨勬煡璇€€佹坊鍔犵瓑鎿嶄綔锛堟ā鎷熸暟鎹<E69A9F>簱浜や簰锛?
|
|
|
* @author The Administrator
|
|
|
* @version 1.0
|
|
|
* @created 26-10月-2025 22:50:57
|
|
|
*/
|
|
|
class BookDAO {
|
|
|
|
|
|
/**
|
|
|
* 妯℃嫙鏁版嵁搴擄細瀛樺偍鍥句功鐨勯泦鍚?
|
|
|
*/
|
|
|
private static List<Book> bookDatabase = new ArrayList<>();
|
|
|
|
|
|
public BookDAO(){
|
|
|
|
|
|
}
|
|
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
* @param book
|
|
|
*/
|
|
|
void addBook(Book book){
|
|
|
|
|
|
}
|
|
|
|
|
|
public List<Book> findAllBooks(){
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 鏍规嵁ID鏌ヨ<E98F8C>鍥句功
|
|
|
* @return 鍖归厤鐨勫浘涔﹀<E6B694>璞★紝鏃犲尮閰嶅垯杩斿洖
|
|
|
*
|
|
|
* @param id 鍥句功ID
|
|
|
*/
|
|
|
Book findBook(int id){
|
|
|
return null;
|
|
|
}
|
|
|
}//end BookDAO
|