123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- package com.sinosoft.lz.system.right.role.busi;
- import java.util.ArrayList;
- import java.util.Collection;
- import org.apache.log4j.Logger;
- import org.springframework.dao.DataAccessException;
- import com.sinosoft.lz.system.right.role.dao.SysRoleRightRelDAO;
- import com.sinosoft.lz.system.right.role.vo.SysRoleRightRelVO;
- public class SysRoleRightRelBean{
- @SuppressWarnings("unused")
- private Logger log = Logger.getLogger(SysRoleRightRelBean.class);
- private SysRoleRightRelDAO dao = new SysRoleRightRelDAO();
- /**
- * 新增
- *
- * @param VO
- * @return
- * @throws DataAccessException
- */
- public boolean addSysRoleRightRel(SysRoleRightRelVO VO) throws ClassNotFoundException {
- return dao.addSysRoleRightRel(VO);
- }
- /**
- * 批量新增对象
- *
- * @param voList
- * @return
- * @throws DataAccessException
- */
- public int[] addSysRoleRightRel(ArrayList<SysRoleRightRelVO> voList)
- throws ClassNotFoundException {
- return dao.addSysRoleRightRel(voList);
- }
- /**
- * 修改对象
- *
- * @param VO
- * @throws DataAccessException
- */
- public boolean modifySysRoleRightRel(SysRoleRightRelVO VO) throws ClassNotFoundException {
- return dao.modifySysRoleRightRel(VO);
- }
- /**
- * 根据主键删除对象
- *
- * @param FD_OBJECTID
- * 对象主键
- * @return
- * @throws DataAccessException
- */
- public boolean delSysRoleRightRel(String roleId) throws ClassNotFoundException {
- return dao.delSysRoleRightRel(roleId);
- }
- /**
- * 根据主键获得对象
- *
- * @param FD_OBJECTID
- * 对象主键
- * @return
- * @throws DataAccessException
- */
- public SysRoleRightRelVO getSysRoleRightRelVO(String FD_OBJECTID) throws ClassNotFoundException {
- return dao.getSysRoleRightRelVO(FD_OBJECTID);
- }
- /**
- * 根据传入sql查询对象集合
- *
- * @param sql
- * 查询语句
- * @return
- * @throws DataAccessException
- */
- @SuppressWarnings("rawtypes")
- public Collection getSysRoleRightRel(String sql) throws ClassNotFoundException {
- return dao.getSysRoleRightRel(sql);
- }
- }
|