?? setshititypeimpl.java
字號:
package com.myExam.domain.impl;
import java.util.ArrayList;
import java.util.List;
import com.myExam.bean.ShitiType;
import com.myExam.dao.ShitiTypeDAO;
import com.myExam.domain.SetShitiType;
public class SetShitiTypeImpl implements SetShitiType {
private String msg;
private ShitiTypeDAO shitiTypeDao;
//生成試題種類
public List createShitiType(ShitiType shitiType) {
// TODO Auto-generated method stub
return null;
}
//獲取已有的試題種類
public List queryShitiType() {
List list = new ArrayList();
list = shitiTypeDao.queryList();
return list;
}
//刪除試題種類
public void deleteShitiType(ShitiType shitiType) {
shitiTypeDao.delete(shitiType);
}
//獲取消息
public String getMsg() {
return msg;
}
//新增試題種類
public void insertShitiType(ShitiType shitiType) {
shitiTypeDao.insert(shitiType);
msg = "新增試題種類成功";
}
//修改試題種類
public void updateShitiType(ShitiType shitiType) {
shitiTypeDao.update(shitiType);
}
/**返回shitiTypeDao
*/
public ShitiTypeDAO getShitiTypeDao() {
return shitiTypeDao;
}
/**設(shè)定shitiTypeDao
*/
public void setShitiTypeDao(ShitiTypeDAO shitiTypeDao) {
this.shitiTypeDao = shitiTypeDao;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -