1.1 --- a/src/org/sonews/storage/impl/HSQLDB.java Tue Jun 07 09:23:34 2011 +0200
1.2 +++ b/src/org/sonews/storage/impl/HSQLDB.java Tue Jun 07 11:55:22 2011 +0200
1.3 @@ -17,141 +17,14 @@
1.4 */
1.5 package org.sonews.storage.impl;
1.6
1.7 -import java.util.List;
1.8 -import org.sonews.feed.Subscription;
1.9 -import org.sonews.storage.Article;
1.10 -import org.sonews.storage.ArticleHead;
1.11 -import org.sonews.storage.Channel;
1.12 -import org.sonews.storage.Group;
1.13 import org.sonews.storage.Storage;
1.14 -import org.sonews.storage.StorageBackendException;
1.15 -import org.sonews.util.Pair;
1.16
1.17 /**
1.18 - *
1.19 + * A specialized JDBCDatabase supporting HSQLDB.
1.20 * @author Christian Lins
1.21 * @since sonews/1.1
1.22 */
1.23 -public class HSQLDB implements Storage {
1.24 +public class HSQLDB extends JDBCDatabase implements Storage {
1.25
1.26 - public void addArticle(Article art) throws StorageBackendException {
1.27 - throw new UnsupportedOperationException("Not supported yet.");
1.28 - }
1.29 -
1.30 - public void addEvent(long timestamp, int type, long groupID) throws StorageBackendException {
1.31 - throw new UnsupportedOperationException("Not supported yet.");
1.32 - }
1.33 -
1.34 - public void addGroup(String groupname, int flags) throws StorageBackendException {
1.35 - throw new UnsupportedOperationException("Not supported yet.");
1.36 - }
1.37 -
1.38 - public int countArticles() throws StorageBackendException {
1.39 - throw new UnsupportedOperationException("Not supported yet.");
1.40 - }
1.41 -
1.42 - public int countGroups() throws StorageBackendException {
1.43 - throw new UnsupportedOperationException("Not supported yet.");
1.44 - }
1.45 -
1.46 - public void delete(String messageID) throws StorageBackendException {
1.47 - throw new UnsupportedOperationException("Not supported yet.");
1.48 - }
1.49 -
1.50 - public Article getArticle(String messageID) throws StorageBackendException {
1.51 - throw new UnsupportedOperationException("Not supported yet.");
1.52 - }
1.53 -
1.54 - public Article getArticle(long articleIndex, long groupID) throws StorageBackendException {
1.55 - throw new UnsupportedOperationException("Not supported yet.");
1.56 - }
1.57 -
1.58 - public List<Pair<Long, String>> getArticleHeaders(Channel channel, long start, long end, String header, String pattern) throws StorageBackendException {
1.59 - throw new UnsupportedOperationException("Not supported yet.");
1.60 - }
1.61 -
1.62 - public List<Pair<Long, ArticleHead>> getArticleHeads(Group group, long first, long last) throws StorageBackendException {
1.63 - throw new UnsupportedOperationException("Not supported yet.");
1.64 - }
1.65 -
1.66 - public long getArticleIndex(Article art, Group group) throws StorageBackendException {
1.67 - throw new UnsupportedOperationException("Not supported yet.");
1.68 - }
1.69 -
1.70 - public List<Long> getArticleNumbers(long groupID) throws StorageBackendException {
1.71 - throw new UnsupportedOperationException("Not supported yet.");
1.72 - }
1.73 -
1.74 - public String getConfigValue(String key) throws StorageBackendException {
1.75 - throw new UnsupportedOperationException("Not supported yet.");
1.76 - }
1.77 -
1.78 - public int getEventsCount(int eventType, long startTimestamp, long endTimestamp, Channel channel) throws StorageBackendException {
1.79 - throw new UnsupportedOperationException("Not supported yet.");
1.80 - }
1.81 -
1.82 - public double getEventsPerHour(int key, long gid) throws StorageBackendException {
1.83 - throw new UnsupportedOperationException("Not supported yet.");
1.84 - }
1.85 -
1.86 - public int getFirstArticleNumber(Group group) throws StorageBackendException {
1.87 - throw new UnsupportedOperationException("Not supported yet.");
1.88 - }
1.89 -
1.90 - public Group getGroup(String name) throws StorageBackendException {
1.91 - throw new UnsupportedOperationException("Not supported yet.");
1.92 - }
1.93 -
1.94 - public List<Channel> getGroups() throws StorageBackendException {
1.95 - throw new UnsupportedOperationException("Not supported yet.");
1.96 - }
1.97 -
1.98 - public List<String> getGroupsForList(String listAddress) throws StorageBackendException {
1.99 - throw new UnsupportedOperationException("Not supported yet.");
1.100 - }
1.101 -
1.102 - public int getLastArticleNumber(Group group) throws StorageBackendException {
1.103 - throw new UnsupportedOperationException("Not supported yet.");
1.104 - }
1.105 -
1.106 - public List<String> getListsForGroup(String groupname) throws StorageBackendException {
1.107 - throw new UnsupportedOperationException("Not supported yet.");
1.108 - }
1.109 -
1.110 - public String getOldestArticle() throws StorageBackendException {
1.111 - throw new UnsupportedOperationException("Not supported yet.");
1.112 - }
1.113 -
1.114 - public int getPostingsCount(String groupname) throws StorageBackendException {
1.115 - throw new UnsupportedOperationException("Not supported yet.");
1.116 - }
1.117 -
1.118 - public List<Subscription> getSubscriptions(int type) throws StorageBackendException {
1.119 - throw new UnsupportedOperationException("Not supported yet.");
1.120 - }
1.121 -
1.122 - public boolean isArticleExisting(String messageID) throws StorageBackendException {
1.123 - throw new UnsupportedOperationException("Not supported yet.");
1.124 - }
1.125 -
1.126 - public boolean isGroupExisting(String groupname) throws StorageBackendException {
1.127 - throw new UnsupportedOperationException("Not supported yet.");
1.128 - }
1.129 -
1.130 - public void purgeGroup(Group group) throws StorageBackendException {
1.131 - throw new UnsupportedOperationException("Not supported yet.");
1.132 - }
1.133 -
1.134 - public void setConfigValue(String key, String value) throws StorageBackendException {
1.135 - throw new UnsupportedOperationException("Not supported yet.");
1.136 - }
1.137 -
1.138 - public boolean update(Article article) throws StorageBackendException {
1.139 - throw new UnsupportedOperationException("Not supported yet.");
1.140 - }
1.141 -
1.142 - public boolean update(Group group) throws StorageBackendException {
1.143 - throw new UnsupportedOperationException("Not supported yet.");
1.144 - }
1.145
1.146 }