bookstoreservice.java

来自「servlet实现网上书店查询」· Java 代码 · 共 70 行

JAVA
70
字号
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 + =
减小字号Ctrl + -
显示快捷键?