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

📄 cpcontentmanageimpl.java

📁 一个关于短信的java程序,非常适合java程序员,谢谢大家
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -