Java Doc for PostDAO.java in  » Forum » JForum-2.1.8 » net » jforum » dao » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Forum » JForum 2.1.8 » net.jforum.dao 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $




Method Summary
public  intaddNew(Post post)
     Adds a new Post.
public  intcountPreviousPosts(int postId)
    
public  intcountUserPosts(int userId)
     Count user posts.
public  voiddelete(Post post)
     Delete a Post.
public  voiddeleteByTopic(int topicId)
    
public  ListselectAllByTopic(int topicId)
     Selects all messages relacted to a specific topic.
public  ListselectAllByTopicByLimit(int topicId, int startFrom, int count)
     Selects all messages relacted to a specific topic.
public  PostselectById(int postId)
     Gets a specific Post.
public  ListselectByUserByLimit(int userId, int startFrom, int count)
    
public  ListselectHotForRSS(int limit)
    
public  ListselectLatestByForumForRSS(int forumId, int limit)
    
public  voidupdate(Post post)
     Updates a Post.



Method Detail
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 Postobject 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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.