Java Doc for PostDAO.java in  » Forum » mvnforum-1.1 » com » mvnforum » db » 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 » mvnforum 1.1 » com.mvnforum.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.mvnforum.db.PostDAO

All known Subclasses:   com.mvnforum.db.jdbc.PostDAOImplJDBC,
PostDAO
public interface PostDAO (Code)


Field Summary
final public static  StringTABLE_NAME
    


Method Summary
public  intcreatePost(int parentPostID, int forumID, int threadID, int memberID, String memberName, String lastEditMemberName, String postTopic, String postBody, Timestamp postCreationDate, Timestamp postLastEditDate, String postCreationIP, String postLastEditIP, int postEditCount, int postFormatOption, int postOption, int postStatus, String postIcon, int postAttachCount)
    
public  voiddelete(int postID)
    
public  voiddelete_inForum(int forumID)
    
public  voiddelete_inThread(int threadID)
    
public  voidfindByPrimaryKey(int postID)
    
public  CollectiongetDisablePosts_inThread_limit(int threadID, int offset, int rowsToReturn)
    
public  CollectiongetEnablePosts_inThread_limit(int threadID, int offset, int rowsToReturn)
    
public  PostBeangetFirstPost_inThread(int threadID)
    
public  CollectiongetLastEnablePosts_inForum_limit(int forumID, int rowsToReturn)
    
public  CollectiongetLastEnablePosts_inThread_limit(int threadID, int rowsToReturn)
     This method could be used to get latest post in a thread to update thread statistics.
public  intgetMaxPostID()
    
public  CollectiongetMostActiveMembers(Timestamp since, int rowsToReturn)
    
public  CollectiongetMostActiveThreads(Timestamp since, int rowsToReturn)
    
public  intgetNumberOfDisablePosts_inForum(int forumID)
    
public  intgetNumberOfDisablePosts_inThread(int threadID)
    
public  intgetNumberOfEnablePosts_inForum(int forumID)
    
public  intgetNumberOfEnablePosts_inThread(int threadID)
    
public  intgetNumberOfPosts()
    
public  intgetNumberOfPosts_inMember(int memberID)
    
public  PostBeangetPost(int postID)
    
public  CollectiongetPosts()
    
public  CollectiongetPosts_fromIDRange(int fromID, int toID)
    
public  voidincreaseEditCount(int postID)
    
public  voidupdate(int postID, String lastEditMemberName, String postTopic, String postBody, Timestamp postLastEditDate, String postLastEditIP, int postFormatOption, int postOption, int postStatus, String postIcon)
    
public  voidupdate(int postID, int parentPostID, int forumID, int threadID)
    
public  voidupdateAttachCount(int postID, int postAttachCount)
    
public  voidupdateParentPostID(int oldParentPostID, int newParentPostID)
    
public  voidupdateStatus(int postID, int postStatus)
    
public  voidupdate_ForumID_inThread(int threadID, int forumID)
    

Field Detail
TABLE_NAME
final public static String TABLE_NAME(Code)





Method Detail
createPost
public int createPost(int parentPostID, int forumID, int threadID, int memberID, String memberName, String lastEditMemberName, String postTopic, String postBody, Timestamp postCreationDate, Timestamp postLastEditDate, String postCreationIP, String postLastEditIP, int postEditCount, int postFormatOption, int postOption, int postStatus, String postIcon, int postAttachCount) throws CreateException, DatabaseException, ForeignKeyNotFoundException(Code)



delete
public void delete(int postID) throws DatabaseException, ObjectNotFoundException(Code)



delete_inForum
public void delete_inForum(int forumID) throws DatabaseException(Code)



delete_inThread
public void delete_inThread(int threadID) throws DatabaseException(Code)



findByPrimaryKey
public void findByPrimaryKey(int postID) throws ObjectNotFoundException, DatabaseException(Code)



getDisablePosts_inThread_limit
public Collection getDisablePosts_inThread_limit(int threadID, int offset, int rowsToReturn) throws IllegalArgumentException, DatabaseException(Code)



getEnablePosts_inThread_limit
public Collection getEnablePosts_inThread_limit(int threadID, int offset, int rowsToReturn) throws IllegalArgumentException, DatabaseException(Code)



getFirstPost_inThread
public PostBean getFirstPost_inThread(int threadID) throws ObjectNotFoundException, DatabaseException(Code)
This method is used the get the first post of thread for moderation
Parameters:
  threadID -
throws:
  ObjectNotFoundException -
throws:
  DatabaseException -



getLastEnablePosts_inForum_limit
public Collection getLastEnablePosts_inForum_limit(int forumID, int rowsToReturn) throws IllegalArgumentException, DatabaseException(Code)
This method could be used to update forum statistics by getting one last post in a forum
Parameters:
  forumID - int
Parameters:
  rowsToReturn - int
throws:
  IllegalArgumentException -
throws:
  DatabaseException - Collection



getLastEnablePosts_inThread_limit
public Collection getLastEnablePosts_inThread_limit(int threadID, int rowsToReturn) throws IllegalArgumentException, DatabaseException(Code)
This method could be used to get latest post in a thread to update thread statistics. It also could be used to get the latest posts when replying to a post
Parameters:
  threadID - int
Parameters:
  rowsToReturn - int
throws:
  IllegalArgumentException -
throws:
  DatabaseException - Collection



getMaxPostID
public int getMaxPostID() throws DatabaseException(Code)



getMostActiveMembers
public Collection getMostActiveMembers(Timestamp since, int rowsToReturn) throws DatabaseException(Code)



getMostActiveThreads
public Collection getMostActiveThreads(Timestamp since, int rowsToReturn) throws DatabaseException(Code)



getNumberOfDisablePosts_inForum
public int getNumberOfDisablePosts_inForum(int forumID) throws DatabaseException(Code)



getNumberOfDisablePosts_inThread
public int getNumberOfDisablePosts_inThread(int threadID) throws DatabaseException(Code)



getNumberOfEnablePosts_inForum
public int getNumberOfEnablePosts_inForum(int forumID) throws DatabaseException(Code)
This method could be used to update the statistics of the forum
Parameters:
  forumID - int
throws:
  DatabaseException - int



getNumberOfEnablePosts_inThread
public int getNumberOfEnablePosts_inThread(int threadID) throws DatabaseException(Code)



getNumberOfPosts
public int getNumberOfPosts() throws DatabaseException(Code)
This method could be used to check the total posts when compare with number of docs in lucene
throws:
  DatabaseException - int



getNumberOfPosts_inMember
public int getNumberOfPosts_inMember(int memberID) throws DatabaseException(Code)



getPost
public PostBean getPost(int postID) throws ObjectNotFoundException, DatabaseException(Code)



getPosts
public Collection getPosts() throws DatabaseException(Code)
This method could be used to get all post when rebuild lucene search index
throws:
  DatabaseException - Collection



getPosts_fromIDRange
public Collection getPosts_fromIDRange(int fromID, int toID) throws IllegalArgumentException, DatabaseException(Code)
This method could be used to get all post when rebuild lucene search index
throws:
  DatabaseException - Collection



increaseEditCount
public void increaseEditCount(int postID) throws DatabaseException, ObjectNotFoundException(Code)



update
public void update(int postID, String lastEditMemberName, String postTopic, String postBody, Timestamp postLastEditDate, String postLastEditIP, int postFormatOption, int postOption, int postStatus, String postIcon) throws ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code)



update
public void update(int postID, int parentPostID, int forumID, int threadID) throws ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code)



updateAttachCount
public void updateAttachCount(int postID, int postAttachCount) throws ObjectNotFoundException, DatabaseException(Code)



updateParentPostID
public void updateParentPostID(int oldParentPostID, int newParentPostID) throws ObjectNotFoundException, DatabaseException(Code)



updateStatus
public void updateStatus(int postID, int postStatus) throws ObjectNotFoundException, DatabaseException(Code)



update_ForumID_inThread
public void update_ForumID_inThread(int threadID, int forumID) throws DatabaseException, ForeignKeyNotFoundException(Code)



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