Java Doc for GenericTopicDAO.java in  » Forum » JForum-2.1.8 » net » jforum » dao » generic » 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.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.jforum.dao.generic.AutoKeys
      net.jforum.dao.generic.GenericTopicDAO

All known Subclasses:   net.jforum.dao.hsqldb.HsqldbTopicDAO,  net.jforum.dao.oracle.OracleTopicDAO,  net.jforum.dao.sqlserver.SqlServerTopicDAO,
GenericTopicDAO
public class GenericTopicDAO extends AutoKeys implements TopicDAO(Code)

author:
   Rafael Steil
version:
   $Id: GenericTopicDAO.java,v 1.33 2007/09/12 14:43:15 rafaelsteil Exp $




Method Summary
public  intaddNew(Topic topic)
    
public  intcountUserTopics(int userId)
    
public  voiddecrementTotalReplies(int topicId)
    
public  voiddelete(Topic topic, boolean fromModeration)
    
public  voiddeleteByForum(int forumId)
    
public  voiddeleteTopics(List topics, boolean fromModeration)
    
public  ListfillTopicsData(PreparedStatement p)
     Fills all topic data.
public  SearchResultfindTopicsByDateRange(SearchArgs args)
    
public  voidfixFirstLastPostId(int topicId)
    
protected  TopicgetBaseTopicData(ResultSet rs)
    
public  intgetMaxPostId(int topicId)
    
public  intgetMinPostId(int topicId)
    
public  intgetTotalPosts(int topicId)
    
public  voidincrementTotalReplies(int topicId)
    
public  voidincrementTotalViews(int topicId)
    
public  booleanisUserSubscribed(int topicId, int userId)
    
public  voidlockUnlock(int[] topicId, int status)
    
public  ListnotifyUsers(Topic topic)
    
public  voidremoveSubscription(int topicId, int userId)
    
public  voidremoveSubscriptionByTopic(int topicId)
    
public  ListselectAllByForum(int forumId)
    
public  ListselectAllByForumByLimit(int forumId, int startFrom, int count)
    
public  TopicselectById(int topicId)
    
public  ListselectByUserByLimit(int userId, int startFrom, int count)
    
public  ListselectHottestTopics(int limit)
    
public  TopicselectRaw(int topicId)
    
public  ListselectRecentTopics(int limit)
    
public  ListselectTopicTitlesByIds(Collection idList)
    
public  voidsetFirstPostId(int topicId, int postId)
    
public  voidsetLastPostId(int topicId, int postId)
    
public  voidsetModerationStatus(int forumId, boolean status)
    
public  voidsetModerationStatusByTopic(int topicId, boolean status)
    
public  voidsubscribeUser(int topicId, int userId)
    
public  voidsubscribeUsers(int topicId, List users)
    
public  MaptopicPosters(int topicId)
    
public  voidupdate(Topic topic)
    
public  voidupdateReadStatus(int topicId, int userId, boolean read)
    



Method Detail
addNew
public int addNew(Topic topic)(Code)

See Also:   net.jforum.dao.TopicDAO.addNew(net.jforum.entities.Topic)



countUserTopics
public int countUserTopics(int userId)(Code)

See Also:   net.jforum.dao.TopicDAO.countUserTopics(int)



decrementTotalReplies
public void decrementTotalReplies(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.decrementTotalReplies(int)



delete
public void delete(Topic topic, boolean fromModeration)(Code)

See Also:   net.jforum.dao.TopicDAO.delete(net.jforum.entities.Topic)



deleteByForum
public void deleteByForum(int forumId)(Code)

See Also:   net.jforum.dao.TopicDAO.deleteByForum(int)



deleteTopics
public void deleteTopics(List topics, boolean fromModeration)(Code)



fillTopicsData
public List fillTopicsData(PreparedStatement p)(Code)
Fills all topic data. The method will try to get all fields from the topics table, as well information about the user who made the first and the last post in the topic.
The method will close the PreparedStatement
Parameters:
  p - the PreparedStatement to execute A list with all topics found
throws:
  SQLException -



findTopicsByDateRange
public SearchResult findTopicsByDateRange(SearchArgs args)(Code)

See Also:   net.jforum.dao.TopicDAO.findTopicsByDateRange(net.jforum.search.SearchArgs)



fixFirstLastPostId
public void fixFirstLastPostId(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.fixFirstLastPostId(int)



getBaseTopicData
protected Topic getBaseTopicData(ResultSet rs) throws SQLException(Code)



getMaxPostId
public int getMaxPostId(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.autoSetLastPostId(int)



getMinPostId
public int getMinPostId(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.getMinPostId(int)



getTotalPosts
public int getTotalPosts(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.getTotalPosts(int)



incrementTotalReplies
public void incrementTotalReplies(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.incrementTotalReplies(int)



incrementTotalViews
public void incrementTotalViews(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.incrementTotalViews(int)



isUserSubscribed
public boolean isUserSubscribed(int topicId, int userId)(Code)

See Also:   net.jforum.dao.TopicDAO.isUserSubscribing(intint)



lockUnlock
public void lockUnlock(int[] topicId, int status)(Code)

See Also:   net.jforum.dao.TopicDAO.lockUnlock(int[]int)



notifyUsers
public List notifyUsers(Topic topic)(Code)

See Also:   net.jforum.dao.TopicDAO.notifyUsers(net.jforum.entities.Topic)



removeSubscription
public void removeSubscription(int topicId, int userId)(Code)

See Also:   net.jforum.dao.TopicDAO.removeSubscription(intint)



removeSubscriptionByTopic
public void removeSubscriptionByTopic(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.removeSubscriptionByTopic(int)



selectAllByForum
public List selectAllByForum(int forumId)(Code)

See Also:   net.jforum.dao.TopicDAO.selectAllByForum(int)



selectAllByForumByLimit
public List selectAllByForumByLimit(int forumId, int startFrom, int count)(Code)

See Also:   net.jforum.dao.TopicDAO.selectAllByForumByLimit(intintint)



selectById
public Topic selectById(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.selectById(int)



selectByUserByLimit
public List selectByUserByLimit(int userId, int startFrom, int count)(Code)

See Also:   net.jforum.dao.TopicDAO.selectByUserByLimit(intintint)



selectHottestTopics
public List selectHottestTopics(int limit)(Code)

See Also:   net.jforum.dao.TopicDAO.selectHottestTopics(int)



selectRaw
public Topic selectRaw(int topicId)(Code)

See Also:   net.jforum.dao.TopicDAO.selectRaw(int)



selectRecentTopics
public List selectRecentTopics(int limit)(Code)

See Also:   net.jforum.dao.TopicDAO.selectRecentTopics(int)



selectTopicTitlesByIds
public List selectTopicTitlesByIds(Collection idList)(Code)

See Also:   net.jforum.dao.TopicDAO.selectTopicTitlesByIds(java.util.Collection)



setFirstPostId
public void setFirstPostId(int topicId, int postId)(Code)

See Also:   net.jforum.dao.TopicDAO.setFirstPostId(intint)



setLastPostId
public void setLastPostId(int topicId, int postId)(Code)

See Also:   net.jforum.dao.TopicDAO.setLastPostId(intint)



setModerationStatus
public void setModerationStatus(int forumId, boolean status)(Code)

See Also:   net.jforum.dao.TopicDAO.setModerationStatus(intboolean)



setModerationStatusByTopic
public void setModerationStatusByTopic(int topicId, boolean status)(Code)

See Also:   net.jforum.dao.TopicDAO.setModerationStatusByTopic(intboolean)



subscribeUser
public void subscribeUser(int topicId, int userId)(Code)

See Also:   net.jforum.dao.TopicDAO.subscribeUser(intint)



subscribeUsers
public void subscribeUsers(int topicId, List users)(Code)

See Also:   net.jforum.dao.TopicDAO.subscribeUsers(intjava.util.List)



topicPosters
public Map topicPosters(int topicId)(Code)

See Also:   net.jforum.model.UserModel.topicPosters(int)



update
public void update(Topic topic)(Code)

See Also:   net.jforum.dao.TopicDAO.update(net.jforum.entities.Topic)



updateReadStatus
public void updateReadStatus(int topicId, int userId, boolean read)(Code)

See Also:   net.jforum.dao.TopicDAO.updateReadStatus(intintboolean)



Methods inherited from net.jforum.dao.generic.AutoKeys
protected int executeAutoKeysQuery(PreparedStatement p) throws SQLException(Code)(Java Doc)
protected int executeAutoKeysQuery(PreparedStatement p, Connection conn) throws SQLException(Code)(Java Doc)
protected String getAutoGeneratedKeysQuery()(Code)(Java Doc)
protected String getErrorMessage()(Code)(Java Doc)
protected PreparedStatement getStatementForAutoKeys(String queryName, Connection conn) throws SQLException(Code)(Java Doc)
protected PreparedStatement getStatementForAutoKeys(String queryName) throws SQLException(Code)(Java Doc)
protected void setAutoGeneratedKeysQuery(String query)(Code)(Java Doc)
protected boolean supportAutoGeneratedKeys()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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