⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newsfacadeimpl.java.svn-base

📁 这是基于spring +hibernate的项目
💻 SVN-BASE
字号:
package com.pure.domain.logic.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.pure.dao.NewsDAO;
import com.pure.domain.News;
import com.pure.domain.logic.NewsFacade;
import com.pure.page.Page;

public class NewsFacadeImpl implements NewsFacade {
	private NewsDAO newsDao;

	public NewsDAO getNewsDao() {
		return newsDao;
	}

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

	public void insertNews(News news) throws DataAccessException {
		this.getNewsDao().insertNews(news);
	}

	public List getNewsList(Page page) {
		return this.getNewsDao().getNewsList(page);
	}

	public List getNewsList(final int num) {
		return this.getNewsDao().getNewsList(num);
	}
	public News getNews(int id) {
		return this.getNewsDao().getNews(id);
	}

	public int getTotal(String hql) {
		return this.getNewsDao().getTotal(hql);
	}

	public void delNews(int id) {
		this.getNewsDao().delNews(id);

	}

	public void updateNews(News news) throws DataAccessException {
		this.getNewsDao().updateNews(news);
	}

}

⌨️ 快捷键说明

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