| java.lang.Object org.jamwiki.db.AnsiQueryHandler
All known Subclasses: org.jamwiki.db.MySqlQueryHandler, org.jamwiki.db.PostgresQueryHandler, org.jamwiki.db.MSSqlQueryHandler, org.jamwiki.db.SybaseASAQueryHandler, org.jamwiki.db.DB2400QueryHandler, org.jamwiki.db.OracleQueryHandler, org.jamwiki.db.HSqlQueryHandler, org.jamwiki.db.DB2QueryHandler,
AnsiQueryHandler | public class AnsiQueryHandler implements QueryHandler(Code) | | Default implementation of the QueryHandler implementation for retrieving, inserting,
and updating data in the database. This method uses ANSI SQL and should therefore
work with any fully ANSI-compliant database.
|
Method Summary | |
public String | connectionValidationQuery() | public void | createTables(Connection conn) | public void | deleteRecentChanges(int topicId, Connection conn) | public void | deleteRoleMapGroup(int groupId, Connection conn) | public void | deleteRoleMapUser(int userId, Connection conn) | public void | deleteTopicCategories(int childTopicId, Connection conn) | public void | deleteWatchlistEntry(int virtualWikiId, String topicName, int userId, Connection conn) | public void | dropTables(Connection conn) | public String | existenceValidationQuery() Return a simple query, that if successfully run indicates that JAMWiki
tables have been initialized in the database. | public WikiResultSet | getAllTopicNames(int virtualWikiId) | public WikiResultSet | getAllWikiFileVersions(WikiFile wikiFile, boolean descending) | public WikiResultSet | getCategories(int virtualWikiId, Pagination pagination) | public WikiResultSet | getRecentChanges(String virtualWiki, Pagination pagination, boolean descending) | public WikiResultSet | getRecentChanges(int topicId, Pagination pagination, boolean descending) | public WikiResultSet | getRoleMapByLogin(String loginFragment) | public WikiResultSet | getRoleMapByRole(String roleName) | public WikiResultSet | getRoleMapGroup(String groupName) | public WikiResultSet | getRoleMapGroups() | public WikiResultSet | getRoleMapUser(String login) | public WikiResultSet | getRoles() | public WikiResultSet | getTopicsAdmin(int virtualWikiId, Pagination pagination) | public WikiResultSet | getUserContributions(String virtualWiki, String userString, Pagination pagination, boolean descending) | public WikiResultSet | getVirtualWikis(Connection conn) | public WikiResultSet | getWatchlist(int virtualWikiId, int userId) | public WikiResultSet | getWatchlist(int virtualWikiId, int userId, Pagination pagination) | protected void | init(Properties props) | public void | insertCategory(Category category, int virtualWikiId, Connection conn) | public void | insertRecentChange(RecentChange change, int virtualWikiId, Connection conn) | public void | insertRole(Role role, Connection conn) | public void | insertRoleMap(int userId, int groupId, String role, Connection conn) | public void | insertTopic(Topic topic, int virtualWikiId, Connection conn) | public void | insertTopicVersion(TopicVersion topicVersion, Connection conn) | public void | insertVirtualWiki(VirtualWiki virtualWiki, Connection conn) | public void | insertWatchlistEntry(int virtualWikiId, String topicName, int userId, Connection conn) | public void | insertWikiFile(WikiFile wikiFile, int virtualWikiId, Connection conn) | public void | insertWikiFileVersion(WikiFileVersion wikiFileVersion, Connection conn) | public void | insertWikiGroup(WikiGroup group, Connection conn) | public void | insertWikiUser(WikiUser user, Connection conn) | public void | insertWikiUserInfo(WikiUserInfo userInfo, Connection conn) | public WikiResultSet | lookupCategoryTopics(int virtualWikiId, String categoryName) | public WikiResultSet | lookupTopic(int virtualWikiId, String topicName, boolean caseSensitive, Connection conn) | public WikiResultSet | lookupTopicByType(int virtualWikiId, int topicType, Pagination pagination) | public WikiResultSet | lookupTopicCount(int virtualWikiId) Return a count of all topics, including redirects, comments pages and templates,
currently available on the Wiki. | public WikiResultSet | lookupTopicVersion(int topicVersionId, Connection conn) | public WikiResultSet | lookupWikiFile(int virtualWikiId, int topicId) | public WikiResultSet | lookupWikiFileCount(int virtualWikiId) Return a count of all wiki files currently available on the Wiki. | public WikiResultSet | lookupWikiUser(int userId, Connection conn) | public WikiResultSet | lookupWikiUser(String username, Connection conn) | public WikiResultSet | lookupWikiUser(String username, String encryptedPassword, Connection conn) | public WikiResultSet | lookupWikiUserCount() Return a count of all wiki users. | public WikiResultSet | lookupWikiUserInfo(String username) | public WikiResultSet | lookupWikiUsers(Pagination pagination) | public int | nextTopicId(Connection conn) | public int | nextTopicVersionId(Connection conn) | public int | nextVirtualWikiId(Connection conn) | public int | nextWikiFileId(Connection conn) | public int | nextWikiFileVersionId(Connection conn) | public int | nextWikiGroupId(Connection conn) | public int | nextWikiUserId(Connection conn) | public void | reloadRecentChanges(Connection conn) | public void | updateRole(Role role, Connection conn) | public void | updateTopic(Topic topic, int virtualWikiId, Connection conn) | public void | updateVirtualWiki(VirtualWiki virtualWiki, Connection conn) | public void | updateWikiFile(WikiFile wikiFile, int virtualWikiId, Connection conn) | public void | updateWikiGroup(WikiGroup group, Connection conn) | public void | updateWikiUser(WikiUser user, Connection conn) | public void | updateWikiUserInfo(WikiUserInfo userInfo, Connection conn) | protected void | validateCategory(Category category) | protected void | validateRecentChange(RecentChange change) | protected void | validateRole(Role role) | protected void | validateRoleMap(String role) | protected void | validateTopic(Topic topic) | protected void | validateTopicVersion(TopicVersion topicVersion) | protected void | validateVirtualWiki(VirtualWiki virtualWiki) | protected void | validateWatchlistEntry(String topicName) | protected void | validateWikiFile(WikiFile wikiFile) | protected void | validateWikiFileVersion(WikiFileVersion wikiFileVersion) | protected void | validateWikiGroup(WikiGroup group) | protected void | validateWikiUser(WikiUser user) | protected void | validateWikiUserInfo(WikiUserInfo userInfo) |
SQL_PROPERTY_FILE_NAME | final protected static String SQL_PROPERTY_FILE_NAME(Code) | | |
STATEMENT_CONNECTION_VALIDATION_QUERY | protected static String STATEMENT_CONNECTION_VALIDATION_QUERY(Code) | | |
STATEMENT_CREATE_CATEGORY_TABLE | protected static String STATEMENT_CREATE_CATEGORY_TABLE(Code) | | |
STATEMENT_CREATE_GROUP_TABLE | protected static String STATEMENT_CREATE_GROUP_TABLE(Code) | | |
STATEMENT_CREATE_RECENT_CHANGE_TABLE | protected static String STATEMENT_CREATE_RECENT_CHANGE_TABLE(Code) | | |
STATEMENT_CREATE_ROLE_MAP_TABLE | protected static String STATEMENT_CREATE_ROLE_MAP_TABLE(Code) | | |
STATEMENT_CREATE_ROLE_TABLE | protected static String STATEMENT_CREATE_ROLE_TABLE(Code) | | |
STATEMENT_CREATE_TOPIC_CURRENT_VERSION_CONSTRAINT | protected static String STATEMENT_CREATE_TOPIC_CURRENT_VERSION_CONSTRAINT(Code) | | |
STATEMENT_CREATE_TOPIC_TABLE | protected static String STATEMENT_CREATE_TOPIC_TABLE(Code) | | |
STATEMENT_CREATE_TOPIC_VERSION_TABLE | protected static String STATEMENT_CREATE_TOPIC_VERSION_TABLE(Code) | | |
STATEMENT_CREATE_VIRTUAL_WIKI_TABLE | protected static String STATEMENT_CREATE_VIRTUAL_WIKI_TABLE(Code) | | |
STATEMENT_CREATE_WATCHLIST_TABLE | protected static String STATEMENT_CREATE_WATCHLIST_TABLE(Code) | | |
STATEMENT_CREATE_WIKI_FILE_TABLE | protected static String STATEMENT_CREATE_WIKI_FILE_TABLE(Code) | | |
STATEMENT_CREATE_WIKI_FILE_VERSION_TABLE | protected static String STATEMENT_CREATE_WIKI_FILE_VERSION_TABLE(Code) | | |
STATEMENT_CREATE_WIKI_USER_INFO_TABLE | protected static String STATEMENT_CREATE_WIKI_USER_INFO_TABLE(Code) | | |
STATEMENT_CREATE_WIKI_USER_LOGIN_INDEX | protected static String STATEMENT_CREATE_WIKI_USER_LOGIN_INDEX(Code) | | |
STATEMENT_CREATE_WIKI_USER_TABLE | protected static String STATEMENT_CREATE_WIKI_USER_TABLE(Code) | | |
STATEMENT_DELETE_RECENT_CHANGES | protected static String STATEMENT_DELETE_RECENT_CHANGES(Code) | | |
STATEMENT_DELETE_RECENT_CHANGES_TOPIC | protected static String STATEMENT_DELETE_RECENT_CHANGES_TOPIC(Code) | | |
STATEMENT_DELETE_ROLE_MAP_GROUP | protected static String STATEMENT_DELETE_ROLE_MAP_GROUP(Code) | | |
STATEMENT_DELETE_ROLE_MAP_USER | protected static String STATEMENT_DELETE_ROLE_MAP_USER(Code) | | |
STATEMENT_DELETE_TOPIC_CATEGORIES | protected static String STATEMENT_DELETE_TOPIC_CATEGORIES(Code) | | |
STATEMENT_DELETE_WATCHLIST_ENTRY | protected static String STATEMENT_DELETE_WATCHLIST_ENTRY(Code) | | |
STATEMENT_DROP_CATEGORY_TABLE | protected static String STATEMENT_DROP_CATEGORY_TABLE(Code) | | |
STATEMENT_DROP_GROUP_TABLE | protected static String STATEMENT_DROP_GROUP_TABLE(Code) | | |
STATEMENT_DROP_RECENT_CHANGE_TABLE | protected static String STATEMENT_DROP_RECENT_CHANGE_TABLE(Code) | | |
STATEMENT_DROP_ROLE_MAP_TABLE | protected static String STATEMENT_DROP_ROLE_MAP_TABLE(Code) | | |
STATEMENT_DROP_ROLE_TABLE | protected static String STATEMENT_DROP_ROLE_TABLE(Code) | | |
STATEMENT_DROP_TOPIC_CURRENT_VERSION_CONSTRAINT | protected static String STATEMENT_DROP_TOPIC_CURRENT_VERSION_CONSTRAINT(Code) | | |
STATEMENT_DROP_TOPIC_TABLE | protected static String STATEMENT_DROP_TOPIC_TABLE(Code) | | |
STATEMENT_DROP_TOPIC_VERSION_TABLE | protected static String STATEMENT_DROP_TOPIC_VERSION_TABLE(Code) | | |
STATEMENT_DROP_VIRTUAL_WIKI_TABLE | protected static String STATEMENT_DROP_VIRTUAL_WIKI_TABLE(Code) | | |
STATEMENT_DROP_WATCHLIST_TABLE | protected static String STATEMENT_DROP_WATCHLIST_TABLE(Code) | | |
STATEMENT_DROP_WIKI_FILE_TABLE | protected static String STATEMENT_DROP_WIKI_FILE_TABLE(Code) | | |
STATEMENT_DROP_WIKI_FILE_VERSION_TABLE | protected static String STATEMENT_DROP_WIKI_FILE_VERSION_TABLE(Code) | | |
STATEMENT_DROP_WIKI_USER_INFO_TABLE | protected static String STATEMENT_DROP_WIKI_USER_INFO_TABLE(Code) | | |
STATEMENT_DROP_WIKI_USER_LOGIN_INDEX | protected static String STATEMENT_DROP_WIKI_USER_LOGIN_INDEX(Code) | | |
STATEMENT_DROP_WIKI_USER_TABLE | protected static String STATEMENT_DROP_WIKI_USER_TABLE(Code) | | |
STATEMENT_INSERT_CATEGORY | protected static String STATEMENT_INSERT_CATEGORY(Code) | | |
STATEMENT_INSERT_GROUP | protected static String STATEMENT_INSERT_GROUP(Code) | | |
STATEMENT_INSERT_RECENT_CHANGE | protected static String STATEMENT_INSERT_RECENT_CHANGE(Code) | | |
STATEMENT_INSERT_RECENT_CHANGES | protected static String STATEMENT_INSERT_RECENT_CHANGES(Code) | | |
STATEMENT_INSERT_ROLE | protected static String STATEMENT_INSERT_ROLE(Code) | | |
STATEMENT_INSERT_ROLE_MAP | protected static String STATEMENT_INSERT_ROLE_MAP(Code) | | |
STATEMENT_INSERT_TOPIC | protected static String STATEMENT_INSERT_TOPIC(Code) | | |
STATEMENT_INSERT_TOPIC_VERSION | protected static String STATEMENT_INSERT_TOPIC_VERSION(Code) | | |
STATEMENT_INSERT_VIRTUAL_WIKI | protected static String STATEMENT_INSERT_VIRTUAL_WIKI(Code) | | |
STATEMENT_INSERT_WATCHLIST_ENTRY | protected static String STATEMENT_INSERT_WATCHLIST_ENTRY(Code) | | |
STATEMENT_INSERT_WIKI_FILE | protected static String STATEMENT_INSERT_WIKI_FILE(Code) | | |
STATEMENT_INSERT_WIKI_FILE_VERSION | protected static String STATEMENT_INSERT_WIKI_FILE_VERSION(Code) | | |
STATEMENT_INSERT_WIKI_USER | protected static String STATEMENT_INSERT_WIKI_USER(Code) | | |
STATEMENT_INSERT_WIKI_USER_INFO | protected static String STATEMENT_INSERT_WIKI_USER_INFO(Code) | | |
STATEMENT_SELECT_CATEGORIES | protected static String STATEMENT_SELECT_CATEGORIES(Code) | | |
STATEMENT_SELECT_CATEGORY_TOPICS | protected static String STATEMENT_SELECT_CATEGORY_TOPICS(Code) | | |
STATEMENT_SELECT_GROUP_SEQUENCE | protected static String STATEMENT_SELECT_GROUP_SEQUENCE(Code) | | |
STATEMENT_SELECT_RECENT_CHANGES | protected static String STATEMENT_SELECT_RECENT_CHANGES(Code) | | |
STATEMENT_SELECT_RECENT_CHANGES_TOPIC | protected static String STATEMENT_SELECT_RECENT_CHANGES_TOPIC(Code) | | |
STATEMENT_SELECT_ROLES | protected static String STATEMENT_SELECT_ROLES(Code) | | |
STATEMENT_SELECT_ROLE_MAP_GROUP | protected static String STATEMENT_SELECT_ROLE_MAP_GROUP(Code) | | |
STATEMENT_SELECT_ROLE_MAP_GROUPS | protected static String STATEMENT_SELECT_ROLE_MAP_GROUPS(Code) | | |
STATEMENT_SELECT_ROLE_MAP_LOGIN | protected static String STATEMENT_SELECT_ROLE_MAP_LOGIN(Code) | | |
STATEMENT_SELECT_ROLE_MAP_ROLE | protected static String STATEMENT_SELECT_ROLE_MAP_ROLE(Code) | | |
STATEMENT_SELECT_ROLE_MAP_USER | protected static String STATEMENT_SELECT_ROLE_MAP_USER(Code) | | |
STATEMENT_SELECT_TOPIC | protected static String STATEMENT_SELECT_TOPIC(Code) | | |
STATEMENT_SELECT_TOPICS | protected static String STATEMENT_SELECT_TOPICS(Code) | | |
STATEMENT_SELECT_TOPICS_ADMIN | protected static String STATEMENT_SELECT_TOPICS_ADMIN(Code) | | |
STATEMENT_SELECT_TOPIC_BY_TYPE | protected static String STATEMENT_SELECT_TOPIC_BY_TYPE(Code) | | |
STATEMENT_SELECT_TOPIC_COUNT | protected static String STATEMENT_SELECT_TOPIC_COUNT(Code) | | |
STATEMENT_SELECT_TOPIC_LOWER | protected static String STATEMENT_SELECT_TOPIC_LOWER(Code) | | |
STATEMENT_SELECT_TOPIC_SEQUENCE | protected static String STATEMENT_SELECT_TOPIC_SEQUENCE(Code) | | |
STATEMENT_SELECT_TOPIC_VERSION | protected static String STATEMENT_SELECT_TOPIC_VERSION(Code) | | |
STATEMENT_SELECT_TOPIC_VERSION_SEQUENCE | protected static String STATEMENT_SELECT_TOPIC_VERSION_SEQUENCE(Code) | | |
STATEMENT_SELECT_VIRTUAL_WIKIS | protected static String STATEMENT_SELECT_VIRTUAL_WIKIS(Code) | | |
STATEMENT_SELECT_VIRTUAL_WIKI_SEQUENCE | protected static String STATEMENT_SELECT_VIRTUAL_WIKI_SEQUENCE(Code) | | |
STATEMENT_SELECT_WATCHLIST | protected static String STATEMENT_SELECT_WATCHLIST(Code) | | |
STATEMENT_SELECT_WATCHLIST_CHANGES | protected static String STATEMENT_SELECT_WATCHLIST_CHANGES(Code) | | |
STATEMENT_SELECT_WIKI_FILE | protected static String STATEMENT_SELECT_WIKI_FILE(Code) | | |
STATEMENT_SELECT_WIKI_FILE_COUNT | protected static String STATEMENT_SELECT_WIKI_FILE_COUNT(Code) | | |
STATEMENT_SELECT_WIKI_FILE_SEQUENCE | protected static String STATEMENT_SELECT_WIKI_FILE_SEQUENCE(Code) | | |
STATEMENT_SELECT_WIKI_FILE_VERSIONS | protected static String STATEMENT_SELECT_WIKI_FILE_VERSIONS(Code) | | |
STATEMENT_SELECT_WIKI_FILE_VERSION_SEQUENCE | protected static String STATEMENT_SELECT_WIKI_FILE_VERSION_SEQUENCE(Code) | | |
STATEMENT_SELECT_WIKI_USER | protected static String STATEMENT_SELECT_WIKI_USER(Code) | | |
STATEMENT_SELECT_WIKI_USERS | protected static String STATEMENT_SELECT_WIKI_USERS(Code) | | |
STATEMENT_SELECT_WIKI_USER_CHANGES_ANONYMOUS | protected static String STATEMENT_SELECT_WIKI_USER_CHANGES_ANONYMOUS(Code) | | |
STATEMENT_SELECT_WIKI_USER_CHANGES_LOGIN | protected static String STATEMENT_SELECT_WIKI_USER_CHANGES_LOGIN(Code) | | |
STATEMENT_SELECT_WIKI_USER_COUNT | protected static String STATEMENT_SELECT_WIKI_USER_COUNT(Code) | | |
STATEMENT_SELECT_WIKI_USER_INFO | protected static String STATEMENT_SELECT_WIKI_USER_INFO(Code) | | |
STATEMENT_SELECT_WIKI_USER_LOGIN | protected static String STATEMENT_SELECT_WIKI_USER_LOGIN(Code) | | |
STATEMENT_SELECT_WIKI_USER_PASSWORD | protected static String STATEMENT_SELECT_WIKI_USER_PASSWORD(Code) | | |
STATEMENT_SELECT_WIKI_USER_SEQUENCE | protected static String STATEMENT_SELECT_WIKI_USER_SEQUENCE(Code) | | |
STATEMENT_UPDATE_GROUP | protected static String STATEMENT_UPDATE_GROUP(Code) | | |
STATEMENT_UPDATE_ROLE | protected static String STATEMENT_UPDATE_ROLE(Code) | | |
STATEMENT_UPDATE_TOPIC | protected static String STATEMENT_UPDATE_TOPIC(Code) | | |
STATEMENT_UPDATE_TOPIC_CURRENT_VERSION | protected static String STATEMENT_UPDATE_TOPIC_CURRENT_VERSION(Code) | | |
STATEMENT_UPDATE_TOPIC_CURRENT_VERSIONS | protected static String STATEMENT_UPDATE_TOPIC_CURRENT_VERSIONS(Code) | | |
STATEMENT_UPDATE_VIRTUAL_WIKI | protected static String STATEMENT_UPDATE_VIRTUAL_WIKI(Code) | | |
STATEMENT_UPDATE_WIKI_FILE | protected static String STATEMENT_UPDATE_WIKI_FILE(Code) | | |
STATEMENT_UPDATE_WIKI_USER | protected static String STATEMENT_UPDATE_WIKI_USER(Code) | | |
STATEMENT_UPDATE_WIKI_USER_INFO | protected static String STATEMENT_UPDATE_WIKI_USER_INFO(Code) | | |
AnsiQueryHandler | protected AnsiQueryHandler()(Code) | | |
connectionValidationQuery | public String connectionValidationQuery()(Code) | | |
existenceValidationQuery | public String existenceValidationQuery()(Code) | | Return a simple query, that if successfully run indicates that JAMWiki
tables have been initialized in the database.
Returns a simple query that, if successfully run, indicatesthat JAMWiki tables have been set up in the database. |
lookupTopicCount | public WikiResultSet lookupTopicCount(int virtualWikiId) 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: virtualWikiId - The virtual wiki id for the virtual wiki of the topicsbeing retrieved. |
lookupWikiFileCount | public WikiResultSet lookupWikiFileCount(int virtualWikiId) throws Exception(Code) | | Return a count of all wiki files currently available on the Wiki. This
method excludes deleted files.
Parameters: virtualWikiId - The virtual wiki id for the virtual wiki of the filesbeing retrieved. |
|
|