亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? topicmodel.java

?? 一個論壇程序的簡單實現
?? JAVA
字號:
/*
 * Copyright (c) 2003, Rafael Steil
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, 
 * with or without modification, are permitted provided 
 * that the following conditions are met:
 * 
 * 1) Redistributions of source code must retain the above 
 * copyright notice, this list of conditions and the 
 * following  disclaimer.
 * 2)  Redistributions in binary form must reproduce the 
 * above copyright notice, this list of conditions and 
 * the following disclaimer in the documentation and/or 
 * other materials provided with the distribution.
 * 3) Neither the name of "Rafael Steil" nor 
 * the names of its contributors may be used to endorse 
 * or promote products derived from this software without 
 * specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT 
 * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
 * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
 * IN CONTRACT, STRICT LIABILITY, OR TORT 
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
 * 
 * This file creating date: Feb 23, 2003 / 2:56:58 PM
 * The JForum Project
 * http://www.jforum.net
 */
package net.jforum.model;

import java.util.List;

import net.jforum.entities.Topic;

/**
* Model interface for {@link net.jforum.Topic}.
 * This interface defines methods which are expected to be
 * implementd by a specific data access driver. The intention is
 * to provide all functionality needed to update, insert, delete and
 * select some specific data.
 *
 * @author Rafael Steil
 * @version $Id: TopicModel.java,v 1.5 2004/11/05 03:29:49 rafaelsteil Exp $
 */
public interface TopicModel 
{
	/**
	 * Gets a specific <code>Topic</code>.
	 * 
	 * @param topicId The Topic ID to search
	 * @return <code>Topic</code>object containing all the information
	 * @throws Exception
	 * @see #selectAll
	 */
	public Topic selectById(int topicId) throws Exception;
	
	/**
	 * Selects all topics associated to a specific forum
	 * 
	 * @param forumId The forum id to select the topics
	 * @return <code>ArrayList</code> with all topics found. Each entry is a <code>net.jforum.Topic</code> object
	 * @throws Exception
	 */
	public List selectAllByForum(int forumId) throws Exception;
	
	/**
	 * Selects all topics associated to a specific forum, limiting the total number
	 * of records returned.
	 * 
	 * @param forumId The forum id to select the topics
	 * @return <code>ArrayList</code> with all topics found. Each entry is a <code>net.jforum.Topic</code> object
	 * @throws Exception
	 */
	public List selectAllByForumByLimit(int forumId, int startFrom, int count) throws Exception;
	
	/**
	 * Selects the last <code>count</code> topics postted. 
	 * 
	 * @param count The desired total to retrieve
	 * @return <code>ArrayList</code> with all topics found. Each entry is a <code>net.jforum.Topic</code> object
	 * @throws Exception
	 */
	public List selectLastN(int count) throws Exception;
	
	/**
	 * Delete a Topic.
	 * 
	 * @param topicId The Topic ID to delete
	 * @return The total of related posts removed
	 * @throws Exception
	 * @see #canDelete(int)
	 */
	public void delete(Topic topic) throws Exception;
	
	/**
	 * Updates a Topic.
	 * 
	 * @param topic Reference to a <code>Topic</code> object to update
	 * @throws Exception
	 * @see #update(int)
	 */
	public void update(Topic topic) throws Exception;
	
	/**
	 * Adds a new Topic.
	 * 
	 * @param topic Reference to a valid and configured <code>Topic</code> object
	 * @return The new ID
	 * @throws Exception
	 */
	public int addNew(Topic topic) throws Exception;
	
	/**
	 * Increments the number of times the topic was saw
	 * 
	 * @param topicId The topic ID to increment the total number of views
	 * @throws Exception
	 */
	public void incrementTotalViews(int topicId) throws Exception;
	
	/**
	 * Increments the number of replies the topic has
	 * 
	 * @param topicId The topic ID to increment the total number of replies
	 * @throws Exception
	 */
	public void incrementTotalReplies(int topicId) throws Exception;

	/**
	 * Decrements the number of replies the topic has
	 * 
	 * @param topicId The topic ID to decrement the total number of replies
	 * @throws Exception
	 */
	public void decrementTotalReplies(int topicId) throws Exception;
	
	/**
	 * Sets the ID of the last post of the topic
	 * 
	 * @param topicId Topic ID
	 * @param postId Post ID
	 * @throws Exception
	 */
	public void setLastPostId(int topicId, int postId) throws Exception;
	
	/**
	 * Gets the last post id associated to the topic
	 * 
	 * @param topicId The topic id
	 * @throws Exception
	 */
	public int getMaxPostId(int topicId) throws Exception;
	
	/**
	 * Gets the number of posts the topic has.
	 * 
	 * @param topicId The topic id
	 * @return The number of posts
	 * @throws Exception
	 */
	public int getTotalPosts(int topicId) throws Exception;
	
	/**
	 * Get the users to notify
	 * 
	 * @param topic The topic 
	 * @return <code>ArrayList</code> of <code>User</code> objects. Each
	 * entry is an user who will receive the topic anwser notification
	 * @throws Exception
	 * */
	public List notifyUsers(Topic topic) throws Exception;
	
	/**
	 * Subscribe the user for notification of new post on the topic
	 *  
	 * @param topicId The topic id
	 * @param userId The user id
	 * @throws Exception
	 */	
	public void subscribeUser(int topicId, int userId) throws Exception;
	
	/**
	 * Return the subscrition status of the user on the topic.
	 * 
	 * @param topicId The topic id
	 * @param userId The user id
	 * @return true if the user is waiting notification on the topic
	 * @throws Exception
	 */	
	public boolean isUserSubscribed(int topicId, int userId) throws Exception;
	
	/**
	 * Remove the user's subscription of the topic
	 * 
	 * @param topicId The topic id
	 * @param userId the User id
	 * @throws Exception
	 */
	public void removeSubscription(int topicId, int userId) throws Exception;
	
	/**
	 * Clean all subscriptions of some topic
	 * 
	 * @param topicId The topic id
	 * @throws Exception
	 */
	public void removeSubscriptionByTopic(int topicId) throws Exception;
	
	/**
	 * Change the topic read status 
	 * 
	 * @param topicId The topic id
	 * @param userId The user id
	 * @param read <code>true</code> or <code>false</code>
	 * @throws Exception
	 */
	public void updateReadStatus(int topicId, int userId, boolean read) throws Exception;
	
	/**
	 * Lock or unlock a topic. 
	 * 
	 * @param topicId The topic id to perform the action on
	 * @param status Use <code>Topic.STATUS_LOCKED</code> to lock the topic, or
	 * <code>Topic.STATUS_UNLOCKED</code> to unlock. 
	 * @throws Exception
	 */
	public void lockUnlock(int[] topicId, int status) throws Exception;

	/**
	 * Selects recent topics 
	 *
	 * @param limit The number of topics to retrieve
	 * @throws Exception
	 */	
	public List selectRecentTopics (int limit) throws Exception;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
偷拍一区二区三区四区| 久久久久久97三级| 一本在线高清不卡dvd| 国产精品 日产精品 欧美精品| 日本美女视频一区二区| 久久精品国产精品亚洲红杏| 春色校园综合激情亚洲| 夫妻av一区二区| 成人一区二区三区中文字幕| 国产成人免费在线视频| 成人国产精品视频| 99久久精品国产一区二区三区 | 日韩欧美电影一二三| 4438亚洲最大| 久久精品一二三| 国产精品久久毛片a| 亚洲精品视频在线观看免费| 亚洲韩国一区二区三区| 视频一区在线视频| 精品系列免费在线观看| 成人动漫av在线| 色欧美日韩亚洲| 欧美一级一区二区| 久久精品人人做人人爽97| 国产精品国产三级国产aⅴ原创 | 一级日本不卡的影视| 亚洲一区av在线| 久久99最新地址| 成人不卡免费av| 欧美日韩高清一区二区不卡| 久久一留热品黄| 一区二区三区日韩精品视频| 久久精品av麻豆的观看方式| 成人av小说网| 91精品中文字幕一区二区三区| 久久一区二区三区四区| 一区二区成人在线| 激情综合五月婷婷| 在线观看视频91| 国产日韩精品一区二区浪潮av| 亚洲一区二区欧美| 国产精品一区二区在线播放| 欧美日韩一区在线| 国产亚洲精品bt天堂精选| 亚洲成人自拍一区| 国产精品一区在线| 7777精品伊人久久久大香线蕉的| 国产精品国产三级国产普通话三级| 日本成人中文字幕| 91蜜桃婷婷狠狠久久综合9色| 日韩欧美久久一区| 亚洲成人在线网站| 91麻豆精东视频| 中文字幕不卡在线播放| 久久国产综合精品| 欧美乱熟臀69xxxxxx| 一区视频在线播放| 国产精品一区二区三区99| 欧美日韩精品欧美日韩精品一 | 国产精品一区二区在线播放| 欧美绝品在线观看成人午夜影视| 国产精品素人视频| 国产一区二区三区四区五区美女| 精品婷婷伊人一区三区三| 亚洲色图视频网| 成人av资源在线| 国产欧美日韩卡一| 欧美私模裸体表演在线观看| 国产精品人成在线观看免费| 免费成人性网站| 日韩一区二区三区在线视频| 亚洲h动漫在线| 欧美调教femdomvk| 亚洲电影第三页| 欧亚洲嫩模精品一区三区| 亚洲综合男人的天堂| 色88888久久久久久影院野外| 国产精品日日摸夜夜摸av| 国产成人8x视频一区二区| 欧美精彩视频一区二区三区| 成人免费看的视频| 一区在线观看视频| 在线日韩av片| 天天av天天翘天天综合网| 欧美精品 国产精品| 五月天亚洲婷婷| 欧美刺激午夜性久久久久久久| 久久国产精品72免费观看| 欧美电影免费观看高清完整版在线| 毛片一区二区三区| 2020日本不卡一区二区视频| 国产精品一区二区三区99| 中文无字幕一区二区三区 | 激情深爱一区二区| 久久精品人人爽人人爽| www.视频一区| 香蕉成人伊视频在线观看| 日韩欧美国产1| 不卡区在线中文字幕| 一区二区激情视频| 日韩欧美亚洲一区二区| 国产91精品精华液一区二区三区| 一色桃子久久精品亚洲| 欧美伦理影视网| 国产69精品久久99不卡| 亚洲永久免费视频| 精品电影一区二区| 97精品视频在线观看自产线路二| 亚洲成人在线网站| 欧美激情在线看| 欧美精品久久天天躁| 风间由美性色一区二区三区| 亚洲第一激情av| 国产日韩精品一区二区浪潮av | 成人免费观看男女羞羞视频| 一级做a爱片久久| 久久久影视传媒| 欧美日韩一区二区不卡| 国产精品原创巨作av| 午夜久久福利影院| 中文字幕免费观看一区| 制服丝袜中文字幕一区| 99国产欧美另类久久久精品| 久久99精品视频| 亚洲国产综合人成综合网站| 亚洲国产精品精华液2区45| 欧美丝袜丝交足nylons| 成人激情av网| 久久99久久久久| 亚洲成人精品在线观看| 亚洲视频一区二区在线| 精品久久久久一区二区国产| 欧美日韩在线一区二区| 91在线精品秘密一区二区| 国产一区二三区| 免费不卡在线视频| 天堂久久久久va久久久久| 亚洲久草在线视频| 亚洲欧洲美洲综合色网| 国产天堂亚洲国产碰碰| 精品久久久久久久人人人人传媒 | 337p粉嫩大胆色噜噜噜噜亚洲| 91电影在线观看| 色综合久久99| 91丝袜美腿高跟国产极品老师 | 欧美电影精品一区二区| 欧美日韩免费一区二区三区| 91国偷自产一区二区三区成为亚洲经典| 国产精品一级在线| 国产精品一区二区x88av| 国产一区 二区| 国产一区二区三区四区在线观看| 久久66热偷产精品| 精品一区二区三区的国产在线播放| 日韩国产一二三区| 青青草视频一区| 精品制服美女丁香| 国产真实乱子伦精品视频| 国产精品白丝jk黑袜喷水| 粉嫩高潮美女一区二区三区| 国产精品一二三区在线| 成人午夜伦理影院| 99国内精品久久| 日本丶国产丶欧美色综合| 在线免费观看日韩欧美| 欧美久久久久久久久| 日韩手机在线导航| 久久久久久久久久久久电影| 中文字幕乱码亚洲精品一区| 亚洲视频香蕉人妖| 亚洲综合色婷婷| 久久不见久久见免费视频7 | 婷婷综合久久一区二区三区| 亚洲成人综合网站| 精品一区二区三区蜜桃| 成人h动漫精品一区二| 欧美性大战久久| 精品久久一区二区| 亚洲视频狠狠干| 日本欧美在线观看| 成人天堂资源www在线| 欧美综合一区二区三区| 日韩欧美一区中文| 国产精品国产三级国产aⅴ中文 | 日本欧美一区二区三区乱码 | 91麻豆免费在线观看| 欧美日韩在线播放一区| 久久伊人蜜桃av一区二区| 一区二区在线观看视频| 免费高清在线一区| 色综合久久88色综合天天免费| 日韩欧美成人激情| 国产精品久久久久久妇女6080 | 欧美伊人久久大香线蕉综合69| 欧美成人a视频| 亚洲一区二区三区四区五区黄| 国内成人精品2018免费看| 91免费观看在线| 久久久久久99精品| 午夜久久电影网|