db759c245849bec6faa9b9826c13fa0c4a75a1b7.svn-base 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.sinosoft.lz.system.right.role.busi;
  2. import java.util.ArrayList;
  3. import java.util.Collection;
  4. import org.apache.log4j.Logger;
  5. import org.springframework.dao.DataAccessException;
  6. import com.sinosoft.lz.system.right.role.dao.SysRoleRightRelDAO;
  7. import com.sinosoft.lz.system.right.role.vo.SysRoleRightRelVO;
  8. public class SysRoleRightRelBean{
  9. @SuppressWarnings("unused")
  10. private Logger log = Logger.getLogger(SysRoleRightRelBean.class);
  11. private SysRoleRightRelDAO dao = new SysRoleRightRelDAO();
  12. /**
  13. * 新增
  14. *
  15. * @param VO
  16. * @return
  17. * @throws DataAccessException
  18. */
  19. public boolean addSysRoleRightRel(SysRoleRightRelVO VO) throws ClassNotFoundException {
  20. return dao.addSysRoleRightRel(VO);
  21. }
  22. /**
  23. * 批量新增对象
  24. *
  25. * @param voList
  26. * @return
  27. * @throws DataAccessException
  28. */
  29. public int[] addSysRoleRightRel(ArrayList<SysRoleRightRelVO> voList)
  30. throws ClassNotFoundException {
  31. return dao.addSysRoleRightRel(voList);
  32. }
  33. /**
  34. * 修改对象
  35. *
  36. * @param VO
  37. * @throws DataAccessException
  38. */
  39. public boolean modifySysRoleRightRel(SysRoleRightRelVO VO) throws ClassNotFoundException {
  40. return dao.modifySysRoleRightRel(VO);
  41. }
  42. /**
  43. * 根据主键删除对象
  44. *
  45. * @param FD_OBJECTID
  46. * 对象主键
  47. * @return
  48. * @throws DataAccessException
  49. */
  50. public boolean delSysRoleRightRel(String roleId) throws ClassNotFoundException {
  51. return dao.delSysRoleRightRel(roleId);
  52. }
  53. /**
  54. * 根据主键获得对象
  55. *
  56. * @param FD_OBJECTID
  57. * 对象主键
  58. * @return
  59. * @throws DataAccessException
  60. */
  61. public SysRoleRightRelVO getSysRoleRightRelVO(String FD_OBJECTID) throws ClassNotFoundException {
  62. return dao.getSysRoleRightRelVO(FD_OBJECTID);
  63. }
  64. /**
  65. * 根据传入sql查询对象集合
  66. *
  67. * @param sql
  68. * 查询语句
  69. * @return
  70. * @throws DataAccessException
  71. */
  72. @SuppressWarnings("rawtypes")
  73. public Collection getSysRoleRightRel(String sql) throws ClassNotFoundException {
  74. return dao.getSysRoleRightRel(sql);
  75. }
  76. }