visitordao.java
来自「有简单的网上书店需求及设计流程」· Java 代码 · 共 37 行
JAVA
37 行
package org.wiely.dao;
import java.util.List;
import org.wiely.vo.Visitor;
/**
* the interface named visitorDAO,two methods to provide opration the value
* object for visitor
*/
public interface VisitorDAO {
/**
*
* @return List
* @throws Exception
* @describe get all Visitors from database
*/
@SuppressWarnings("unchecked")
public List getVisitors(int currentPage, int pageSize) throws Exception;
/**
*
* @return int
* @throws Exception
* @describe getTotalRecords from database.
*/
public int getTotalRecords() throws Exception;
/**
* @param visitor
* @throws Exception
* @describe insert into the new visitor to database
*/
public void insertVisitor(Visitor visitor) throws Exception;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?