1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/org/sonews/storage/impl/HSQLDB.java Tue Jun 07 09:23:34 2011 +0200
1.3 @@ -0,0 +1,157 @@
1.4 +/*
1.5 + * SONEWS News Server
1.6 + * see AUTHORS for the list of contributors
1.7 + *
1.8 + * This program is free software: you can redistribute it and/or modify
1.9 + * it under the terms of the GNU General Public License as published by
1.10 + * the Free Software Foundation, either version 3 of the License, or
1.11 + * (at your option) any later version.
1.12 + *
1.13 + * This program is distributed in the hope that it will be useful,
1.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.16 + * GNU General Public License for more details.
1.17 + *
1.18 + * You should have received a copy of the GNU General Public License
1.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.20 + */
1.21 +package org.sonews.storage.impl;
1.22 +
1.23 +import java.util.List;
1.24 +import org.sonews.feed.Subscription;
1.25 +import org.sonews.storage.Article;
1.26 +import org.sonews.storage.ArticleHead;
1.27 +import org.sonews.storage.Channel;
1.28 +import org.sonews.storage.Group;
1.29 +import org.sonews.storage.Storage;
1.30 +import org.sonews.storage.StorageBackendException;
1.31 +import org.sonews.util.Pair;
1.32 +
1.33 +/**
1.34 + *
1.35 + * @author Christian Lins
1.36 + * @since sonews/1.1
1.37 + */
1.38 +public class HSQLDB implements Storage {
1.39 +
1.40 + public void addArticle(Article art) throws StorageBackendException {
1.41 + throw new UnsupportedOperationException("Not supported yet.");
1.42 + }
1.43 +
1.44 + public void addEvent(long timestamp, int type, long groupID) throws StorageBackendException {
1.45 + throw new UnsupportedOperationException("Not supported yet.");
1.46 + }
1.47 +
1.48 + public void addGroup(String groupname, int flags) throws StorageBackendException {
1.49 + throw new UnsupportedOperationException("Not supported yet.");
1.50 + }
1.51 +
1.52 + public int countArticles() throws StorageBackendException {
1.53 + throw new UnsupportedOperationException("Not supported yet.");
1.54 + }
1.55 +
1.56 + public int countGroups() throws StorageBackendException {
1.57 + throw new UnsupportedOperationException("Not supported yet.");
1.58 + }
1.59 +
1.60 + public void delete(String messageID) throws StorageBackendException {
1.61 + throw new UnsupportedOperationException("Not supported yet.");
1.62 + }
1.63 +
1.64 + public Article getArticle(String messageID) throws StorageBackendException {
1.65 + throw new UnsupportedOperationException("Not supported yet.");
1.66 + }
1.67 +
1.68 + public Article getArticle(long articleIndex, long groupID) throws StorageBackendException {
1.69 + throw new UnsupportedOperationException("Not supported yet.");
1.70 + }
1.71 +
1.72 + public List<Pair<Long, String>> getArticleHeaders(Channel channel, long start, long end, String header, String pattern) throws StorageBackendException {
1.73 + throw new UnsupportedOperationException("Not supported yet.");
1.74 + }
1.75 +
1.76 + public List<Pair<Long, ArticleHead>> getArticleHeads(Group group, long first, long last) throws StorageBackendException {
1.77 + throw new UnsupportedOperationException("Not supported yet.");
1.78 + }
1.79 +
1.80 + public long getArticleIndex(Article art, Group group) throws StorageBackendException {
1.81 + throw new UnsupportedOperationException("Not supported yet.");
1.82 + }
1.83 +
1.84 + public List<Long> getArticleNumbers(long groupID) throws StorageBackendException {
1.85 + throw new UnsupportedOperationException("Not supported yet.");
1.86 + }
1.87 +
1.88 + public String getConfigValue(String key) throws StorageBackendException {
1.89 + throw new UnsupportedOperationException("Not supported yet.");
1.90 + }
1.91 +
1.92 + public int getEventsCount(int eventType, long startTimestamp, long endTimestamp, Channel channel) throws StorageBackendException {
1.93 + throw new UnsupportedOperationException("Not supported yet.");
1.94 + }
1.95 +
1.96 + public double getEventsPerHour(int key, long gid) throws StorageBackendException {
1.97 + throw new UnsupportedOperationException("Not supported yet.");
1.98 + }
1.99 +
1.100 + public int getFirstArticleNumber(Group group) throws StorageBackendException {
1.101 + throw new UnsupportedOperationException("Not supported yet.");
1.102 + }
1.103 +
1.104 + public Group getGroup(String name) throws StorageBackendException {
1.105 + throw new UnsupportedOperationException("Not supported yet.");
1.106 + }
1.107 +
1.108 + public List<Channel> getGroups() throws StorageBackendException {
1.109 + throw new UnsupportedOperationException("Not supported yet.");
1.110 + }
1.111 +
1.112 + public List<String> getGroupsForList(String listAddress) throws StorageBackendException {
1.113 + throw new UnsupportedOperationException("Not supported yet.");
1.114 + }
1.115 +
1.116 + public int getLastArticleNumber(Group group) throws StorageBackendException {
1.117 + throw new UnsupportedOperationException("Not supported yet.");
1.118 + }
1.119 +
1.120 + public List<String> getListsForGroup(String groupname) throws StorageBackendException {
1.121 + throw new UnsupportedOperationException("Not supported yet.");
1.122 + }
1.123 +
1.124 + public String getOldestArticle() throws StorageBackendException {
1.125 + throw new UnsupportedOperationException("Not supported yet.");
1.126 + }
1.127 +
1.128 + public int getPostingsCount(String groupname) throws StorageBackendException {
1.129 + throw new UnsupportedOperationException("Not supported yet.");
1.130 + }
1.131 +
1.132 + public List<Subscription> getSubscriptions(int type) throws StorageBackendException {
1.133 + throw new UnsupportedOperationException("Not supported yet.");
1.134 + }
1.135 +
1.136 + public boolean isArticleExisting(String messageID) throws StorageBackendException {
1.137 + throw new UnsupportedOperationException("Not supported yet.");
1.138 + }
1.139 +
1.140 + public boolean isGroupExisting(String groupname) throws StorageBackendException {
1.141 + throw new UnsupportedOperationException("Not supported yet.");
1.142 + }
1.143 +
1.144 + public void purgeGroup(Group group) throws StorageBackendException {
1.145 + throw new UnsupportedOperationException("Not supported yet.");
1.146 + }
1.147 +
1.148 + public void setConfigValue(String key, String value) throws StorageBackendException {
1.149 + throw new UnsupportedOperationException("Not supported yet.");
1.150 + }
1.151 +
1.152 + public boolean update(Article article) throws StorageBackendException {
1.153 + throw new UnsupportedOperationException("Not supported yet.");
1.154 + }
1.155 +
1.156 + public boolean update(Group group) throws StorageBackendException {
1.157 + throw new UnsupportedOperationException("Not supported yet.");
1.158 + }
1.159 +
1.160 +}