📄 newsdao.java
字号:
package com.pure.dao;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.pure.domain.News;
import com.pure.page.Page;
/**
* 资讯(新闻)DAO接口
*
* @author pure
*
*/
public interface NewsDAO {
void insertNews(News news) throws DataAccessException;
public void updateNews(News news) throws DataAccessException;
public List getNewsList(Page page);
public List getNewsList(int num);
public News getNews(int id);
public void delNews(int id);
public int getTotal(String hql);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -