platformmgserviceimpl.java

来自「jsf+spring+ibatis 的一个程序,主要用来介绍JSF程序.」· Java 代码 · 共 113 行

JAVA
113
字号
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 NetBarDaoImpl netbarDao;
	private SurveyDaoImpl surveyDao;
	private NewsDaoImpl newsDao;
	private FeeDaoImpl feeDao;
	private BulletinDaoImpl bulletinDao;
	private SalesDaoImpl salesDao;

	
	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 List getAllSales(){
		return salesDao.getAllSales();
	}
	
	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 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;
	}

	public SalesDaoImpl getSalesDao() {
		return salesDao;
	}

	public void setSalesDao(SalesDaoImpl salesDao) {
		this.salesDao = salesDao;
	}

}

⌨️ 快捷键说明

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