setsurveychildcountimpl.java
来自「简单的网上调查系统。采用Spring+Hibernate方式设计架构。」· Java 代码 · 共 42 行
JAVA
42 行
package com.mySurvey.domain.impl;
import com.mySurvey.bean.SurveyChildCount;
import com.mySurvey.dao.SurveyChildCountDAO;
import com.mySurvey.domain.SetSurveyChildCount;
public class SetSurveyChildCountImpl implements SetSurveyChildCount {
private String msg;
private SurveyChildCountDAO surveyChildCountDao;
//查询调查结果
public SurveyChildCount querySurveyChildCount(SurveyChildCount surveyChildCount) {
return surveyChildCountDao.query(surveyChildCount);
}
//删除调查结果
public void deleteSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.delete(surveyChildCount);
}
//获取统计信息
public String getMsg() {
return msg;
}
//新增调查结果
public void insertSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.insert(surveyChildCount);
}
//修改调查结果
public void updateSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.update(surveyChildCount);
msg = "统计成功";
}
/**返回surveyChildCountDao
*/
public SurveyChildCountDAO getSurveyChildCountDao() {
return surveyChildCountDao;
}
/**设定surveyChildCountDao
*/
public void setSurveyChildCountDao(SurveyChildCountDAO surveyChildCountDao) {
this.surveyChildCountDao = surveyChildCountDao;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?