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

📄 aboutfacadeimpl.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.AboutDAO;
import com.pure.domain.About;
import com.pure.domain.logic.AboutFacade;
import com.pure.page.Page;

public class AboutFacadeImpl implements AboutFacade {
	private AboutDAO aboutDao;

	public AboutDAO getAboutDao() {
		return aboutDao;
	}

	public void setAboutDao(AboutDAO aboutDao) {
		this.aboutDao = aboutDao;
	}

	public void insertAbout(About about) throws DataAccessException {
		this.getAboutDao().insertAbout(about);
	}

	public void saveOrUpdate(About about){
		this.getAboutDao().saveOrUpdate(about);
	}
	
	public List getAboutList(Page page) {
		return this.getAboutDao().getAboutList(page);
	}

	public List getAboutList(int num, String hql) {
		return this.getAboutDao().getAboutList(num, hql);
	}

	public About getAbout(int id) {
		return this.getAboutDao().getAbout(id);
	}

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

	public void delAbout(int id) {
		this.getAboutDao().delAbout(id);

	}

	public void updateAbout(About aboutSort) throws DataAccessException {
		this.getAboutDao().updateAbout(aboutSort);
	}

	public About getFirstAbout() {
		return this.getAboutDao().getFirstAbout();
	}

}

⌨️ 快捷键说明

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