cpcontentmanageimpl.java
来自「一个关于短信的java程序,非常适合java程序员,谢谢大家」· Java 代码 · 共 60 行
JAVA
60 行
package com.chinatech.cpmanage.service.impl;
import java.util.List;
import com.chinatech.cpmanage.common.BusinessException;
import com.chinatech.cpmanage.common.DAOException;
import com.chinatech.cpmanage.dao.CpContentManageDAO;
import com.chinatech.cpmanage.dto.CpContentManageDTO;
import com.chinatech.cpmanage.hibernate.CpmanageContentsTemp;
import com.chinatech.cpmanage.service.CpContentManage;
public class CpContentManageImpl implements CpContentManage {
private CpContentManageDAO cpContentManageDAO;
public void setCpContentManageDAO(CpContentManageDAO cpContentManageDAO){
this.cpContentManageDAO = cpContentManageDAO;
}
public List getCpContents(int startRow, int pageSize,CpContentManageDTO cdto)
throws BusinessException {
// TODO 自动生成方法存根
try{
return cpContentManageDAO.getCpContents(startRow, pageSize, cdto);
}catch(DAOException e){
throw new BusinessException("getCpContents错误"+e.toString());
}
}
public int getCpContentsCount(CpContentManageDTO cdto) throws BusinessException {
// TODO 自动生成方法存根
try{
return cpContentManageDAO.getCpContentsCount(cdto);
}catch(DAOException e){
throw new BusinessException("getCpContentsCount错误"+e.toString());
}
}
public void addOneCpContents(CpContentManageDTO cdto)throws BusinessException{
try{
cpContentManageDAO.addOneCpContents(cdto);
}catch(DAOException e){
throw new BusinessException("addOneCpContents错误"+e.toString());
}
}
public CpmanageContentsTemp getOneCpCpcotentsByCPCP_SID(String CPCP_SID)throws BusinessException{
try{
return cpContentManageDAO.getOneCpCpcotentsByCPCP_SID(CPCP_SID);
}catch(DAOException e){
throw new BusinessException("getOneCpCpcotentsByCPCP_SID错误"+e.toString());
}
}
public void updateOneCpContents(CpContentManageDTO cdto)throws BusinessException{
try{
cpContentManageDAO.updateOneCpContents(cdto);
}catch(DAOException e){
throw new BusinessException("updateOneCpContents错误"+e.toString());
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?