⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userservicebean.java~19~

📁 一个很不错的电子商务后台管理系统 这是一个电子商务网站的后台管理系统 要运行此系统必须具备以下条件 1.首先要把SNSQL文本中的SQL脚本确保在SQL Server中执行 2.包Se
💻 JAVA~19~
字号:
package xian.bin.serivce;import java.util.*;import xian.bin.user.*;import xian.bin.admin.*;import app.*;public class UserServiceBean implements SerivceUser {  Test test;  public UserServiceBean()throws Exception {    test=new Test();  }  //--------------------后台用户--------------------------------  //添加一个后台用户  public void addAdmin(Object[] obj) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method addAdmin() not yet implemented.");  }  //删除一个后台用户信息  public void delAdmin(String admin) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method delAdmin() not yet implemented.");  }  //获得所有后台用户信息  public Collection getAllAdmin() throws Exception {    Collection managers=new ArrayList();    try{      Iterator its=test.managerHome.create().getAllManager().iterator();      while(its.hasNext()){        Manager manager=(Manager)its.next();        AdminDTO dto=new AdminDTO();        dto.setAdmin(manager.getAdmin());        dto.setPwd(manager.getPwd());        dto.setPopedom(manager.getPopedom());        managers.add(dto);      }    }    catch(Exception e){      e.printStackTrace();    }    return managers;  }  //修改后台用户信息  public void updataAdmin(Object[] obj) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method updataAdmin() not yet implemented.");  }  //---------------------前台用户---------------------------------------  //获得前台所有用户信息  public Collection getAllUser() throws Exception {    System.out.println("在服务接口中查找所有用户信息!!!");    try{      User user=test.userHome.create();      Iterator its=user.getAllUserInfo().iterator();      while(its.hasNext()){        UserDTO dto=(UserDTO)its.next();        System.out.println("name="+dto.getUsername());        System.out.println("pwd="+dto.getPassword());      }      return user.getAllUserInfo();    }    catch(Exception e){      e.printStackTrace();    }    return null;  }  //获得前台普通/会员用户信息----根据用户类型  public Collection getCommonUser(int userType) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method getCommonUser() not yet implemented.");  }  //删除一个前台用户信息  public void delUser(String userName) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method delUser() not yet implemented.");  }  //根据用户名进行模糊查找  public Collection getUser(String userName) throws Exception {    /**@todo Implement this xian.bin.serivce.SerivceUser method*/    throw new java.lang.UnsupportedOperationException("Method getUser() not yet implemented.");  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -