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

📄 articledao.java

📁 用JAVA完成的BLOG采用STRUTS.HIBERNATE.SPRING.框架.直接用ECLIPSE导入就可以发布运行.调试.
💻 JAVA
字号:
package com.laoer.blog.dao;

import com.laoer.blog.bean.Article;
import java.util.*;

/**
 * <p>Title: 天乙博客</p>
 *
 * <p>Description: 天乙博客系统</p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: Laoer.com</p>
 *
 * @author laoer[Gong Tianyi]
 * @version 1.0
 */
public interface ArticleDAO {

  /**
   *
   * @param article Article
   * @return Article
   */
  public Article saveArticle(Article article);

  /**
   *
   * @param id long
   * @param blogID long
   * @return Article
   */
  public Article findArticleByID_BlogID(long id, long blogID);

  /**
   *
   * @param blogID long
   * @return int
   */
  public int getArticleNumByBlogID(long blogID);

  /**
   *
   * @param blogID long
   * @param ishide int
   * @return int
   */
  public int getArticleNumByBlogID_IsHide(long blogID, int ishide);

  /**
   *
   * @param blogID long
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findArticlesByBlogID(long blogID, int firstResult, int maxResults);

  /**
   *
   * @param blogID long
   * @param ishide int
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findArticlesByBlogID_IsHide(long blogID, int ishide, int firstResult, int maxResults);

  /**
   *
   * @param sortID long
   * @return int
   */
  public int getArticleNumBySort(long blogID, long sortID);

  /**
   *
   * @param sortID long
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findArticlesBySort(long blogID, long sortID, int firstResult, int maxResults);

  /**
   *
   * @param blogID long
   * @param sortID long
   * @return List
   */
  public List findArticlesAllBySort(long blogID, long sortID);

  /**
   *
   * @param postDate String
   * @return int
   */
  public int getArticleNumByPostDate(long blogID, String postDate);

  /**
   *
   * @param postDate String
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findArticlesByPostDate(long blogID, String postDate, int firstResult, int maxResults);

  /**
   *
   * @param blogID long
   * @return List
   */
  public List findArticlesGroupByPostDate(long blogID);

  /**
   *
   * @return int
   */
  public int getArticleAllNum();

  /**
   *
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findArticlesAll(int firstResult, int maxResults);

  /**
   *
   * @param article Article
   */
  public void removeArticle(Article article);

}

⌨️ 快捷键说明

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