noticegameresultserviceimpl.java.svn-base

来自「学习dwr+struts2+spring进行开发的好例子」· SVN-BASE 代码 · 共 68 行

SVN-BASE
68
字号
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 + =
减小字号Ctrl + -
显示快捷键?