📄 bookstoreservice.java
字号:
package com.ghy.bookstore.service;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.ghy.bookstore.book.model.BookVO;
import com.ghy.bookstore.order.model.OrderItem;
import com.ghy.bookstore.order.model.OrderVO;
import com.ghy.bookstore.user.model.UserVO;
public interface BookStoreService {
public boolean checkUserName(String name) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public void createUser(UserVO user) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public boolean login(UserVO user) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public UserVO findUserByName(String name) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public String findFirstCatId() throws IOException, InstantiationException,
IllegalAccessException, ClassNotFoundException, SQLException;
public int getBookCount(int mode, String catId, String field, String key)
throws IOException, InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public ArrayList findAllBookCat() throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public ArrayList findBookWithCat(int i, String catId, String key,
String field) throws SQLException, IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException;
public BookVO findBookByID(String id) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public OrderVO createOrderWithItems(OrderVO order, ArrayList list)
throws IOException, InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public void createOrderItem(OrderItem shopcart, String orderid)
throws IOException, InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public ArrayList searchOrderByUser(UserVO user) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public void deleteOrder(String orderId) throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException, SQLException;
public ArrayList findAllBooks() throws IOException, InstantiationException,
IllegalAccessException, ClassNotFoundException, SQLException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -