📄 noticegameresultserviceimpl.java
字号:
package com.szhelper.lotteryWeb.service.impl;
import java.util.List;
import com.szhelper.lotteryWeb.dao.INoticeGameResultDao;
import com.szhelper.lotteryWeb.model.NoticeGameResult;
import com.szhelper.lotteryWeb.service.INoticeGameResultService;
import com.szhelper.lotteryWeb.util.PageBean;
public class NoticeGameResultServiceImpl implements INoticeGameResultService {
private INoticeGameResultDao noticeGameResultDao;
public void setNoticeGameResultDao(INoticeGameResultDao noticeGameResultDao) {
this.noticeGameResultDao = noticeGameResultDao;
}
public NoticeGameResult getNoticeGameResultByKey(int noticeGameResultId) {
return noticeGameResultDao.findByKey(noticeGameResultId);
}
/*
* public NoticeGameResult getNoticeGameResultByNoticeGameResultname( String
* noticeGameResultname) { return null; }
*/
/**
* Retrieves a list of NoticeGameResults, filtering with parameters on a
* NoticeGameResult object
*
* @return List
*/
public List getNoticeGameResultList() {
return noticeGameResultDao.list();
}
/**
* Saves a NoticeGameResult's information.
*
* @param NoticeGameResult
* the NoticeGameResult's information
* @throws NoticeGameResultExistsException
* thrown when NoticeGameResult already exists
* @return NoticeGameResult the updated NoticeGameResult object
*/
public boolean saveNoticeGameResult(NoticeGameResult noticeGameResult) {
return noticeGameResultDao.save(noticeGameResult);
}
public boolean updateNoticeGameResult(NoticeGameResult noticeGameResult) {
return noticeGameResultDao.update(noticeGameResult);
}
/**
* Removes a NoticeGameResult from the database by their NoticeGameResultId
*
* @param NoticeGameResultId
* the NoticeGameResult's id
*/
public boolean deleteNoticeGameResult(int NoticeGameResultId) {
return noticeGameResultDao.delete(NoticeGameResultId);
}
public List getNoticeGameResultPageList(PageBean page) {
return noticeGameResultDao
.getPageList(page);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -