?? serproblemserviserimpl.java
字號:
/*
* $Workfile: SerProblemServiserImpl.java$
* Copyright (c) 2007 Jama, International.
* All rights reserved.
* Creator Jun
* Last Changed by: $Author: Jun$
* On: $Date: 2007-8-30 下午09:52:37$
* $Revision: 1$
*/
package com.jama.rcrm.service.business;
import java.util.List;
import org.apache.commons.beanutils.BeanUtils;
import com.jama.common.taglib.QueryInfo;
import com.jama.rcrm.service.business.dto.SerProblemDto;
import com.jama.rcrm.service.dao.SerProblemDao;
import com.jama.rcrm.service.web.form.ProblemForm;
public class SerProblemServiserImpl implements SerProblemServise
{
private SerProblemDao serProblemDao;
public SerProblemDao getSerProblemDao()
{
return serProblemDao;
}
public void setSerProblemDao(SerProblemDao serProblemDao)
{
this.serProblemDao = serProblemDao;
}
/**
* 傳入SerProblemDto將SerProblemDto的屬性對應賦值給TSerProblemDefine的
* 對象的屬性保存到數據庫中
* */
public boolean addProblemType(SerProblemDto serProblemDto) throws Exception
{
serProblemDao.addProblemType(serProblemDto);
return true;
}
/**
* 傳入String 類型的ID數組將數據庫中對應記錄的inactive字段值設為1,
* 表示不可用
* */
public boolean deleteProblemType(String... ids) throws Exception
{
serProblemDao.deleteProblemType(ids);
return true;
}
/**
* 傳入QueryInfo類型的對象將數據按需求查詢出來封裝到List內返回
*
*/
public List getProblem(QueryInfo queryInfo) throws Exception
{
return serProblemDao.getProblem(queryInfo);
}
/**
*傳入ID查找表中對應的記錄,封裝成ProblemForm返回
*/
public ProblemForm getProblemTypeById(String id) throws Exception
{
SerProblemDto dto = serProblemDao.getProblemTypeById(id);
ProblemForm form = new ProblemForm();
BeanUtils.copyProperties(form,dto);
return form;
}
/**
*傳入SerProblemDto,將數據庫表中對應的記錄內容修改為該DTO屬性的內容
*/
public boolean modifyProblemType(SerProblemDto serProblemDto) throws Exception
{
serProblemDao.modifyProblemType(serProblemDto);
return true;
}
/**
*返回具有父子關系的內容為SerProblemDto的列表
*/
public List getProblemList() throws Exception
{
return serProblemDao.getProblemList();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -