📄 humanfiledigbiz.java
字号:
package org.better.hr.biz;
import java.util.List;
import org.better.hr.dao.HumanFileDigDao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.better.hr.entity.HumanFileDig;
import org.better.hr.exception.HrException;
public class HumanFileDigBiz {
private static final Log logger = LogFactory.getLog(HumanFileDigBiz.class);
private HumanFileDigDao humanfiledigDao;
public HumanFileDigDao getHumanfiledigDao() {
return humanfiledigDao;
}
public void setHumanfiledigDao(HumanFileDigDao humanfiledigDao) {
this.humanfiledigDao = humanfiledigDao;
}
/**
* 根据ID号返回对象
* @param id 主键id
* @return 对象
* @throws HrException
*/
public HumanFileDig getbyID(java.io.Serializable id) throws HrException
{
try
{
return (HumanFileDig)this.getHumanfiledigDao().load(HumanFileDig.class,id);
}
catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
/**
* 新增
* @param cfsk 新增的对象
* @return 新产生的职位分类编号
* @throws HrException
*/
public void add(HumanFileDig condition) throws HrException {
try {
// 保存到数据库
this.getHumanfiledigDao().add(condition);
} catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
/**
* 变更操作
* @param condition
* @throws hrException
*/
public void update(HumanFileDig condition) throws HrException{
try {
// 保存到数据库
this.getHumanfiledigDao().update(condition);
} catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
/**
* 查询
* @param condition
* @return
* @throws HrException
*/
public List list(HumanFileDig condition) throws HrException {
try {
List list = this.getHumanfiledigDao().find(condition);
return list;
} catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
/**
* 删除数据库对象
* @param id 对象的主键编号
* @throws HrException
*/
public void delete(java.io.Serializable id) throws HrException
{
try {
this.getHumanfiledigDao().delete(id);
} catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
/**
* 删除数据库对象
* @param conditions 一组集合
* @throws HrException
*/
public void delete(List conditions) throws HrException
{
try {
this.getHumanfiledigDao().delete(conditions);
} catch (Exception ex) {
logger.error(ex);
throw new HrException(ex);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -