首页>代码>java基于MVC的简单博客系统>/Blog/src/net/lamp/blog/dao/BlogDao.java
package net.lamp.blog.dao;

import java.sql.SQLException;
import java.util.List;
import net.lamp.blog.common.PageRoll;
import net.lamp.blog.entity.Blog;
/**
 * 博客管理:
 *
 */
public interface BlogDao {
	
	/**
	 * 通过blogid查看博客详细信息:
	 * @param blogid
	 * @return
	 * @throws SQLException
	 */
	public Blog findById(int blogid) throws SQLException;
	/**
	 * 显示最新的10条博客信息:
	 * @return
	 * @throws SQLException
	 */
	public List<Blog> list() throws SQLException;
	/**
	 * 按标题和更新时间:
	 * 搜索博客信息:
	 * @return
	 * @throws SQLException
	 */
	public List<Blog> search(String headline,String updatedate,PageRoll pageRoll) throws SQLException;
	/**
	 * 通过用户名登录后查看当前用户下的所有的博客信息:
	 * @param username
	 * @return
	 * @throws SQLException
	 */
	public List<Blog> findMyBlog(String username,PageRoll pageRoll) throws SQLException;
	/**
	 * 通过blogid删除当前用户下的博客信息:
	 * @param blogid
	 * @throws SQLException
	 */
	public void deleteMyBlogByBlogId(int blogid) throws SQLException;
	/**
	 * 添加当前用户下的博客信息:
	 * @param blog
	 * @throws SQLException
	 */
	public void addMyBlog(Blog blog) throws SQLException;
	/**
	 * 修改当前用户下的博客信息:
	 * @param blog
	 * @throws SQLException
	 */
	public void updateMyBlog(Blog blog) throws SQLException;
	
	
}
最近下载更多
cheung524071  LV8 2023年8月23日
你们的代码都是我的了  LV16 2022年12月5日
SQ2930501923  LV14 2022年10月14日
你好呀123456  LV1 2022年10月13日
bafjkdnvgj  LV1 2022年6月26日
微信网友_5944522042150912  LV1 2022年5月4日
dxp0216  LV1 2021年8月31日
 LV10 2021年6月12日
万分史密斯  LV1 2021年6月12日
云生123456  LV6 2021年6月8日
最近浏览更多
pangzhihui  LV12 2023年12月23日
cheung524071  LV8 2023年8月23日
wanglongfei2  LV2 2023年6月15日
mishidelu 2023年5月28日
暂无贡献等级
微信网友_6488247163490304  LV1 2023年5月23日
tang0209  LV1 2023年5月15日
information  LV2 2023年4月27日
yubuzhuo  LV2 2023年2月27日
zzhua195  LV6 2023年1月29日
qazwer11  LV5 2022年12月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友