package com.sinosoft.lz.system.function.busi; import java.util.ArrayList; import java.util.Collection; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.dao.DataAccessException; import com.sinosoft.lz.system.function.dao.ButtonDAO; import com.sinosoft.lz.system.function.vo.ButtonVO; public class ButtonBean{ @SuppressWarnings("unused") private static Log log = LogFactory.getLog(ButtonBean.class); private ButtonDAO dao = new ButtonDAO(); /** * 新增 * * @param VO * @return * @throws DataAccessException */ public boolean addSysButton(ButtonVO VO) throws ClassNotFoundException { return dao.addSysButton(VO); } /** * 批量新增对象 * * @param voList * @return * @throws DataAccessException */ public int[] addSysButton(ArrayList voList) throws ClassNotFoundException { return dao.addSysButton(voList); } /** * 修改对象 * * @param VO * @throws DataAccessException */ public boolean modifySysButton(ButtonVO VO) throws ClassNotFoundException { return dao.modifySysButton(VO); } /** * 根据主键删除对象 * * @param FD_OBJECTID * 对象主键 * @return * @throws DataAccessException */ public boolean delSysButton(String FD_OBJECTID) throws ClassNotFoundException { return dao.delSysButton(FD_OBJECTID); } /** * 根据主键获得对象 * * @param FD_OBJECTID * 对象主键 * @return * @throws DataAccessException */ public ButtonVO getSysButtonVO(String FD_OBJECTID) throws ClassNotFoundException { return dao.getSysButtonVO(FD_OBJECTID); } public String getButtonNameById(String id) throws ClassNotFoundException { return dao.getButtonNameById(id); } /** * 根据传入sql查询对象集合 * * @param sql * 查询语句 * @return * @throws DataAccessException */ public Collection getSysButton(String sql) throws ClassNotFoundException { return dao.getSysButton(sql); } }