| net.jforum.dao.PostDAO
All known Subclasses: net.jforum.dao.generic.GenericPostDAO,
PostDAO | public interface PostDAO (Code) | | Model interface for
net.jforum.entities.Post .
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: PostDAO.java,v 1.12 2007/08/20 19:35:52 rafaelsteil Exp $ |
addNew | public int addNew(Post post)(Code) | | Adds a new Post.
Parameters: post - Post Reference to a valid and configured Post object The new ID |
countPreviousPosts | public int countPreviousPosts(int postId)(Code) | | Count how many previous posts there are before the given post id
Parameters: postId - int int |
countUserPosts | public int countUserPosts(int userId)(Code) | | Count user posts.
Parameters: userId - int int |
delete | public void delete(Post post)(Code) | | Delete a Post.
Parameters: post - Post The Post to delete |
deleteByTopic | public void deleteByTopic(int topicId)(Code) | | Delete all posts related to the given topic
Parameters: topicId - int |
selectAllByTopic | public List selectAllByTopic(int topicId)(Code) | | Selects all messages relacted to a specific topic.
Parameters: topicId - The topic ID ArrayList containing all records found. Each entry of the ArrayList is a net.jforum.entities.Post object |
selectAllByTopicByLimit | public List selectAllByTopicByLimit(int topicId, int startFrom, int count)(Code) | | Selects all messages relacted to a specific topic.
Parameters: topicId - The topic ID Parameters: startFrom - The count position to start fetching Parameters: count - The total number of records to retrieve ArrayList containing all records found. Each entry of the ArrayList is a net.jforum.entities.Post object |
selectById | public Post selectById(int postId)(Code) | | Gets a specific Post .
Parameters: postId - The Post ID to search Post object containing all the information |
selectByUserByLimit | public List selectByUserByLimit(int userId, int startFrom, int count)(Code) | | Selects all posts associated to a specific user and belonging to
given forums
Parameters: userId - int User ID. Parameters: startFrom - int Parameters: count - int List |
selectHotForRSS | public List selectHotForRSS(int limit)(Code) | | |
selectLatestByForumForRSS | public List selectLatestByForumForRSS(int forumId, int limit)(Code) | | |
update | public void update(Post post)(Code) | | Updates a Post.
Parameters: post - Reference to a Post object to update |
|
|