文档介绍:基于J2EE Struts框架的课程设计实训项目——《BBS论坛系统》——针对项目中用户信息的数据访问组件及单元测试
提供与用户信息相关的DAO组件
1、提供UserManageDAOInterface接口
(1)接口名称为UserManageDAOInterface,.
(2)设计该接口
.;
import ;
import ;
.;
.;
public interface UserManageDAOInterface {
// 下面的方法是针对UserInfoBasePO类的
public ArrayList<UserInfoBasePO> selectAllBaseUserInfo() throws WebBBSException;
public ArrayList<UserInfoBasePO> selectSomeBaseUserInfo(String HQLSelect) throws WebBBSException;
//下面的方法是针对UserInfoPO类的
public ArrayList<UserInfoPO> selectAllUserInfo() throws WebBBSException;
public ArrayList<UserInfoPO> selectSomeUserInfo(String HQLSelect) throws WebBBSException;
public ArrayList<String> selectAllRegisterUserNameInfo(String userName) throws WebBBSException;
public UserInfoPO doGetMaxIDUserInfo() throws WebBBSException;
public UserInfoPO selectOneUserInfo(String registerUserID) throws WebBBSException;
public UserInfoPO selectOneUserInfoByName(String userName) throws WebBBSException;
public ArrayList<UserInfoPO> selectOnePageUserInfo(String HQLSelect, int firstResult,int maxResults) throws WebBBSException;
public ArrayList<Object[]> selectUserSomePropertyInfo(String HQLSelect) throws WebBBSException;
public ArrayList<UserInfoPO> selectSomeRegisterUserInfo(Map registerUserInfos) throws WebBBSException;
public ArrayList<UserInfoPO> selectOnePageRegisterUserInfo(PageStateVO_Prototype onePageStateVO_Prototype,Map registerUserInfos) throws WebBBSException;
public ArrayList<UserInfoPO> selectOnePageVIPUserInfo(PageStateVO_Prototype onePageStateVO_Prototype,Map vipUserInfos) throws WebBBSException;
public ArrayList<UserInfoPO> selectOnePageAllUserInfo(PageStateVO_Prototype onePageStateVO_Prototype) throws WebBBSException;
public ArrayList<UserInfoPO> selectSomeVIPUserInfo(Map vipUserInfos) throws WebBBSException;
public UserInfoPO selectOneUserInfoD