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

📄 choicedao.java

📁 一个jsp写的bbs
💻 JAVA
字号:
package com.laoer.bbscs.dao;

import com.laoer.bbscs.bean.Choice;
import java.util.*;

/**
 * <p>Title: TianyiBBS</p>
 *
 * <p>Description: BBSCS</p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: Laoer.com</p>
 *
 * @author Laoer
 * @version 7.0
 */
public interface ChoiceDAO {

  /**
   *
   * @param choice Choice
   * @return Choice
   */
  public Choice saveChoice(Choice choice);

  /**
   *
   * @param id String
   * @return Choice
   */
  public Choice findChoiceById(String id);

  /**
   *
   * @param categoryID String
   * @param postID String
   * @return Choice
   */
  public Choice findChoiceByCategoryIDPostID(String categoryID, String postID);

  /**
   *
   * @param categoryID String
   * @return int
   */
  public int getChoicesNumByCategoryID(String categoryID);

  /**
   *
   * @param categoryID String
   * @param firstResult int
   * @param maxResults int
   * @return List
   */
  public List findChoicesByCategoryID(String categoryID, int firstResult, int maxResults);

  /**
   *
   * @param categoryID String
   * @return List
   */
  public List findChoicesByCategoryID(String categoryID);

  /**
   *
   * @param ids List
   * @return List
   */
  public List findChoicesInIds(List ids);

  /**
   *
   * @param choice Choice
   */
  public void removeChoice(Choice choice);

  /**
   *
   * @param id String
   */
  public void removeChoiceById(String id);

  /**
   *
   * @param categoryID String
   */
  public void removeChoiceByCategoryID(String categoryID);

  /**
   *
   * @param ids List
   */
  public void removeChoice(List ids);

}

⌨️ 快捷键说明

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