Java Doc for AnsiDataHandler.java in  » Wiki-Engine » JAMWiki » org » jamwiki » 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 » Wiki Engine » JAMWiki » org.jamwiki.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jamwiki.db.AnsiDataHandler

All known Subclasses:   org.jamwiki.db.SybaseASADataHandler,  org.jamwiki.db.DB2DataHandler,  org.jamwiki.db.DB2400DataHandler,  org.jamwiki.db.PostgresDataHandler,  org.jamwiki.db.OracleDataHandler,  org.jamwiki.db.MSSqlDataHandler,  org.jamwiki.db.MySqlDataHandler,  org.jamwiki.db.HSqlDataHandler,
AnsiDataHandler
public class AnsiDataHandler implements DataHandler(Code)
Default implementation of the org.jamwiki.DataHandler interface for ANSI SQL compatible databases.


Field Summary
final public static  StringDATA_CATEGORY_NAME
    
final public static  StringDATA_GROUP_ID
    
final public static  StringDATA_TOPIC_ID
    
final public static  StringDATA_TOPIC_NAME
    
final public static  StringDATA_WIKI_USER_ID
    


Method Summary
protected  voidaddWikiUser(WikiUser user, Connection conn)
    
public  booleancanMoveTopic(Topic fromTopic, String destination)
    
public  voiddeleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject)
    
public  ListgetAllCategories(String virtualWiki, Pagination pagination)
    
public  ListgetAllRoles()
    
public  ListgetAllTopicNames(String virtualWiki)
    
public  ListgetAllWikiFileVersions(String virtualWiki, String topicName, boolean descending)
    
public  ListgetRecentChanges(String virtualWiki, Pagination pagination, boolean descending)
    
public  ListgetRecentChanges(String virtualWiki, String topicName, Pagination pagination, boolean descending)
    
public  CollectiongetRoleMapByLogin(String loginFragment)
    
public  CollectiongetRoleMapByRole(String roleName)
    
public  Role[]getRoleMapGroup(String groupName)
    
public  CollectiongetRoleMapGroups()
    
public  Role[]getRoleMapUser(String login)
    
public  ListgetTopicsAdmin(String virtualWiki, Pagination pagination)
    
public  ListgetUserContributions(String virtualWiki, String userString, Pagination pagination, boolean descending)
    
public  ListgetVirtualWikiList(Object transactionObject)
     Return a List of all VirtualWiki objects that exist for the Wiki.
public  WatchlistgetWatchlist(String virtualWiki, int userId)
     Retrieve a watchlist containing a List of topic ids and topic names that can be used to determine if a topic is in a user's current watchlist.
public  ListgetWatchlist(String virtualWiki, int userId, Pagination pagination)
     Retrieve a watchlist containing a List of RecentChanges objects that can be used for display on the Special:Watchlist page.
public  ListlookupCategoryTopics(String virtualWiki, String categoryName)
    
public  TopiclookupTopic(String virtualWiki, String topicName, boolean deleteOK, Object transactionObject)
    
public  ListlookupTopicByType(String virtualWiki, int topicType, Pagination pagination)
    
public  intlookupTopicCount(String virtualWiki)
     Return a count of all topics, including redirects, comments pages and templates, currently available on the Wiki.
public  TopicVersionlookupTopicVersion(int topicVersionId, Object transactionObject)
    
public  VirtualWikilookupVirtualWiki(String virtualWikiName)
    
public  WikiFilelookupWikiFile(String virtualWiki, String topicName)
    
public  intlookupWikiFileCount(String virtualWiki)
     Return a count of all wiki files currently available on the Wiki.
public  WikiUserlookupWikiUser(int userId, Object transactionObject)
    
public  WikiUserlookupWikiUser(String username, Object transactionObject)
    
public  intlookupWikiUserCount()
     Return a count of all wiki users.
public  ListlookupWikiUsers(Pagination pagination)
    
public  voidmoveTopic(Topic fromTopic, TopicVersion fromVersion, String destination, Object transactionObject)
    
protected  QueryHandlerqueryHandler()
    
public  voidreloadRecentChanges(Object transactionObject)
    
public  voidsetup(Locale locale, WikiUser user)
    
public  voidsetupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki, Object transactionObject)
    
public  voidundeleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject)
    
public  voidupdateSpecialPage(Locale locale, String virtualWiki, String topicName, WikiUser user, String ipAddress, Object transactionObject)
    
public  voidwriteFile(WikiFile wikiFile, WikiFileVersion wikiFileVersion, Object transactionObject)
    
public  voidwriteRole(Role role, Object transactionObject, boolean update)
    
public  voidwriteRoleMapGroup(int groupId, List roles, Object transactionObject)
    
public  voidwriteRoleMapUser(int userId, List roles, Object transactionObject)
    
public  voidwriteTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap categories, Vector links, boolean userVisible, Object transactionObject)
     Commit changes to a topic (and its version) to the database or filesystem.
Parameters:
  topic - The topic object that is to be committed.
public  voidwriteVirtualWiki(VirtualWiki virtualWiki, Object transactionObject)
    
public  voidwriteWatchlistEntry(Watchlist watchlist, String virtualWiki, String topicName, int userId, Object transactionObject)
    
public  voidwriteWikiGroup(WikiGroup group, Object transactionObject)
    
public  voidwriteWikiUser(WikiUser user, WikiUserInfo userInfo, Object transactionObject)
    

Field Detail
DATA_CATEGORY_NAME
final public static String DATA_CATEGORY_NAME(Code)



DATA_GROUP_ID
final public static String DATA_GROUP_ID(Code)



DATA_TOPIC_ID
final public static String DATA_TOPIC_ID(Code)



DATA_TOPIC_NAME
final public static String DATA_TOPIC_NAME(Code)



DATA_WIKI_USER_ID
final public static String DATA_WIKI_USER_ID(Code)





Method Detail
addWikiUser
protected void addWikiUser(WikiUser user, Connection conn) throws Exception(Code)



canMoveTopic
public boolean canMoveTopic(Topic fromTopic, String destination) throws Exception(Code)



deleteTopic
public void deleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject) throws Exception(Code)



getAllCategories
public List getAllCategories(String virtualWiki, Pagination pagination) throws Exception(Code)



getAllRoles
public List getAllRoles() throws Exception(Code)



getAllTopicNames
public List getAllTopicNames(String virtualWiki) throws Exception(Code)



getAllWikiFileVersions
public List getAllWikiFileVersions(String virtualWiki, String topicName, boolean descending) throws Exception(Code)



getRecentChanges
public List getRecentChanges(String virtualWiki, Pagination pagination, boolean descending) throws Exception(Code)



getRecentChanges
public List getRecentChanges(String virtualWiki, String topicName, Pagination pagination, boolean descending) throws Exception(Code)



getRoleMapByLogin
public Collection getRoleMapByLogin(String loginFragment) throws Exception(Code)



getRoleMapByRole
public Collection getRoleMapByRole(String roleName) throws Exception(Code)



getRoleMapGroup
public Role[] getRoleMapGroup(String groupName) throws Exception(Code)



getRoleMapGroups
public Collection getRoleMapGroups() throws Exception(Code)



getRoleMapUser
public Role[] getRoleMapUser(String login) throws Exception(Code)



getTopicsAdmin
public List getTopicsAdmin(String virtualWiki, Pagination pagination) throws Exception(Code)



getUserContributions
public List getUserContributions(String virtualWiki, String userString, Pagination pagination, boolean descending) throws Exception(Code)



getVirtualWikiList
public List getVirtualWikiList(Object transactionObject) throws Exception(Code)
Return a List of all VirtualWiki objects that exist for the Wiki.



getWatchlist
public Watchlist getWatchlist(String virtualWiki, int userId) throws Exception(Code)
Retrieve a watchlist containing a List of topic ids and topic names that can be used to determine if a topic is in a user's current watchlist.



getWatchlist
public List getWatchlist(String virtualWiki, int userId, Pagination pagination) throws Exception(Code)
Retrieve a watchlist containing a List of RecentChanges objects that can be used for display on the Special:Watchlist page.



lookupCategoryTopics
public List lookupCategoryTopics(String virtualWiki, String categoryName) throws Exception(Code)



lookupTopic
public Topic lookupTopic(String virtualWiki, String topicName, boolean deleteOK, Object transactionObject) throws Exception(Code)



lookupTopicByType
public List lookupTopicByType(String virtualWiki, int topicType, Pagination pagination) throws Exception(Code)



lookupTopicCount
public int lookupTopicCount(String virtualWiki) throws Exception(Code)
Return a count of all topics, including redirects, comments pages and templates, currently available on the Wiki. This method excludes deleted topics.
Parameters:
  virtualWiki - The virtual wiki for which the total topic count is being returnedfor.



lookupTopicVersion
public TopicVersion lookupTopicVersion(int topicVersionId, Object transactionObject) throws Exception(Code)



lookupVirtualWiki
public VirtualWiki lookupVirtualWiki(String virtualWikiName) throws Exception(Code)



lookupWikiFile
public WikiFile lookupWikiFile(String virtualWiki, String topicName) throws Exception(Code)



lookupWikiFileCount
public int lookupWikiFileCount(String virtualWiki) throws Exception(Code)
Return a count of all wiki files currently available on the Wiki. This method excludes deleted files.
Parameters:
  virtualWiki - The virtual wiki of the files being retrieved.



lookupWikiUser
public WikiUser lookupWikiUser(int userId, Object transactionObject) throws Exception(Code)



lookupWikiUser
public WikiUser lookupWikiUser(String username, Object transactionObject) throws Exception(Code)



lookupWikiUserCount
public int lookupWikiUserCount() throws Exception(Code)
Return a count of all wiki users.



lookupWikiUsers
public List lookupWikiUsers(Pagination pagination) throws Exception(Code)



moveTopic
public void moveTopic(Topic fromTopic, TopicVersion fromVersion, String destination, Object transactionObject) throws Exception(Code)



queryHandler
protected QueryHandler queryHandler()(Code)



reloadRecentChanges
public void reloadRecentChanges(Object transactionObject) throws Exception(Code)



setup
public void setup(Locale locale, WikiUser user) throws Exception(Code)



setupSpecialPages
public void setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki, Object transactionObject) throws Exception(Code)



undeleteTopic
public void undeleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject) throws Exception(Code)



updateSpecialPage
public void updateSpecialPage(Locale locale, String virtualWiki, String topicName, WikiUser user, String ipAddress, Object transactionObject) throws Exception(Code)



writeFile
public void writeFile(WikiFile wikiFile, WikiFileVersion wikiFileVersion, Object transactionObject) throws Exception(Code)



writeRole
public void writeRole(Role role, Object transactionObject, boolean update) throws Exception(Code)



writeRoleMapGroup
public void writeRoleMapGroup(int groupId, List roles, Object transactionObject) throws Exception(Code)



writeRoleMapUser
public void writeRoleMapUser(int userId, List roles, Object transactionObject) throws Exception(Code)



writeTopic
public void writeTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap categories, Vector links, boolean userVisible, Object transactionObject) throws Exception(Code)
Commit changes to a topic (and its version) to the database or filesystem.
Parameters:
  topic - The topic object that is to be committed. If the topicid is empty or less than zero then the topic is added, otherwise anupdate is performed.
Parameters:
  topicVersion - The version associated with the topic that isbeing added. This parameter should never be null UNLESS the change isnot user visible, such as when deleting a topic temporarily duringpage moves.
Parameters:
  categories - A mapping of categories and their associated sort keys (if any)for all categories that are associated with the current topic.
Parameters:
  links - A List of all topic names that are linked to from thecurrent topic. These will be passed to the search engine to createsearchable metadata.
Parameters:
  transactionObject - Database connection or other parametersrequired for updates.
Parameters:
  userVisible - A flag indicating whether or not this change shouldbe visible to Wiki users. This flag should be true except in rarecases, such as when temporarily deleting a topic during page moves.



writeVirtualWiki
public void writeVirtualWiki(VirtualWiki virtualWiki, Object transactionObject) throws Exception(Code)



writeWatchlistEntry
public void writeWatchlistEntry(Watchlist watchlist, String virtualWiki, String topicName, int userId, Object transactionObject) throws Exception(Code)



writeWikiGroup
public void writeWikiGroup(WikiGroup group, Object transactionObject) throws Exception(Code)



writeWikiUser
public void writeWikiUser(WikiUser user, WikiUserInfo userInfo, Object transactionObject) throws Exception(Code)



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.