?? setsurveychildcountimpl.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -