newssortfacadeimpl.java

来自「这是基于spring +hibernate的项目」· Java 代码 · 共 57 行

JAVA
57
字号
package com.pure.domain.logic.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.pure.dao.NewsSortDAO;
import com.pure.domain.NewsSort;
import com.pure.domain.logic.NewsSortFacade;
import com.pure.page.Page;

public class NewsSortFacadeImpl implements NewsSortFacade {
	private NewsSortDAO newsSortDao;

	public NewsSortDAO getNewsSortDao() {
		return newsSortDao;
	}

	public void setNewsSortDao(NewsSortDAO newsSortDao) {
		this.newsSortDao = newsSortDao;
	}

	public void insertNewsSort(NewsSort newsSort) throws DataAccessException {
		this.getNewsSortDao().insertNewsSort(newsSort);
	}

	public List getNewsSortList(Page page) {
		return this.getNewsSortDao().getNewsSortList(page);
	}

	public List getNewsSortList() {
		return this.getNewsSortDao().getNewsSortList();
	}

	public NewsSort getNewsSort(int id) {
		return this.getNewsSortDao().getNewsSort(id);
	}

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

	public void delNewsSort(int id) {
		this.getNewsSortDao().delNewsSort(id);

	}

	public void updateNewsSort(NewsSort newsSort) throws DataAccessException {
		this.getNewsSortDao().updateNewsSort(newsSort);
	}

	public void seq(int id, int seq) {
		this.getNewsSortDao().seq(id, seq);
	}

}

⌨️ 快捷键说明

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