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

📄 checkserviceimpl.java

📁 一个关于短信的java程序,非常适合java程序员,谢谢大家
💻 JAVA
字号:
package com.chinatech.cpmanage.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.chinatech.cpmanage.service.CheckService;
import com.chinatech.cpmanage.dao.CheckDAO;
import com.chinatech.cpmanage.dao.OperLogDAO;
import com.chinatech.cpmanage.common.BusinessException;
import com.chinatech.cpmanage.common.DAOException;
import com.chinatech.cpmanage.hibernate.CpmanageContentsTemp;
import com.chinatech.cpmanage.hibernate.CpmanageOperatorLog;


public class CheckServiceImpl implements CheckService{
	
	private CheckDAO checkDAO;
	private OperLogDAO operLogDAO;
	
	public List getContentsTemp(String str) throws BusinessException {
		// TODO 自动生成方法存根
		List list=new ArrayList();
		try{
			list=checkDAO.getContentsTemp(str);
		}catch(Exception e){
			throw new BusinessException("执行getContentsTemp方法时出错");
		}
		return list;
	}
	
	public CpmanageContentsTemp getContentsById(String columnId)
	throws BusinessException {
		CpmanageContentsTemp obj = null;
		try{
			obj = checkDAO.getContentsById(columnId);
		}catch(Exception e){
			throw new BusinessException("执行getContentsById方法出错!");
		}
		return obj;
    }
	
	public void modifyContent(CpmanageContentsTemp wrule) throws BusinessException {
		// TODO 自动生成方法存根
		try{
			checkDAO.updateContent(wrule);
		}catch(Exception e){
			throw new BusinessException("执行updateContent方法时出错");
		}

	}
	
	public void addOperLog(CpmanageOperatorLog operlog) throws BusinessException {
		// TODO 自动生成方法存根
		try{
			operLogDAO.insertOperLog(operlog);
		}catch(Exception e){
			throw new BusinessException("执行addOperLog方法时出错");
		}

	}
	
	public int getContentCount() throws BusinessException {
		// TODO 自动生成方法存根
		try{
			return checkDAO.getContentCount();
		}catch(DAOException e){
			throw new BusinessException("getContenCount方法出错!" + e.getMessage());
		}
	}
	
	public List getContent(int startRow, int pageSize) throws BusinessException {
		// TODO 自动生成方法存根
		try{
			return checkDAO.getContent(startRow, pageSize);
		}catch(DAOException e){
			throw new BusinessException("getContent方法出错!" + e.getMessage());
		}
	}
	

	public CheckDAO getCheckDAO() {
		return checkDAO;
	}

	public void setCheckDAO(CheckDAO checkDAO) {
		this.checkDAO = checkDAO;
	}

	public OperLogDAO getOperLogDAO() {
		return operLogDAO;
	}

	public void setOperLogDAO(OperLogDAO operLogDAO) {
		this.operLogDAO = operLogDAO;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -