platformmgserviceimpl.java

来自「一个jsf企业级程序示例实现一些基本功能」· Java 代码 · 共 112 行

JAVA
112
字号
package com.wxd.netbar.service;

import java.util.List;
import java.util.Map;

import com.wxd.netbar.persistence.dao.*;
import com.wxd.netbar.domain.*;

public class PlatformMgServiceImpl {
	private UserDaoImpl userDao;
	private NetBarDaoImpl netbarDao;
	private SurveyDaoImpl surveyDao;
	private NewsDaoImpl newsDao;
	private FeeDaoImpl feeDao;
	private BulletinDaoImpl bulletinDao;

	public List getAllUsers(){
		return userDao.getAllUsers();
	}
	
	public NetBar getCurrentNetBarInfo(){
		return netbarDao.getCurrentNetBar();
	}
	
	public Survey getCurrentSurveyInfo(){
		return surveyDao.getCurrentSurvey();
	}
	
	public List getCurrentSurveyItemsInfo(){
		return surveyDao.getCurrentSurveyItems();
	}
	
	public List getAllTopNews(){
		return newsDao.getAllTopNews();
	}
	
	public News getNews(String newsId) {
		return newsDao.getNewsFromId(newsId);
	}

	
	public void addNews(News news){
		newsDao.addNews(news);
	}

	public void updateNews(News news){
		newsDao.updateNews(news);
	}

	public List getAllFees(){
		return feeDao.getAllFees();
	}
	
	public List getAllTopBulletin(){
		return bulletinDao.getAllTopBulletin();
	}
	
	public Bulletin getBulletin(String bulletinId) {
		return bulletinDao.getBulletinFromId(bulletinId);
	}
	
	public UserDaoImpl getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDaoImpl userDao) {
		this.userDao = userDao;
	}
	

	public NetBarDaoImpl getNetbarDao() {
		return netbarDao;
	}

	public void setNetbarDao(NetBarDaoImpl netbarDao) {
		this.netbarDao = netbarDao;
	}

	public SurveyDaoImpl getSurveyDao() {
		return surveyDao;
	}

	public void setSurveyDao(SurveyDaoImpl surveyDao) {
		this.surveyDao = surveyDao;
	}

	public NewsDaoImpl getNewsDao() {
		return newsDao;
	}

	public void setNewsDao(NewsDaoImpl newsDao) {
		this.newsDao = newsDao;
	}

	public FeeDaoImpl getFeeDao() {
		return feeDao;
	}

	public void setFeeDao(FeeDaoImpl feeDao) {
		this.feeDao = feeDao;
	}

	public BulletinDaoImpl getBulletinDao() {
		return bulletinDao;
	}

	public void setBulletinDao(BulletinDaoImpl bulletinDao) {
		this.bulletinDao = bulletinDao;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?