src/org/sonews/storage/impl/HSQLDB.java
author cli
Tue, 07 Jun 2011 09:23:34 +0200
changeset 43 7d0e65712a95
parent 42 7f84f4de2893
child 44 5d7d1adf387f
permissions -rw-r--r--
Adapt config sample to use hsqldb
     1 /*
     2  *   SONEWS News Server
     3  *   see AUTHORS for the list of contributors
     4  *
     5  *   This program is free software: you can redistribute it and/or modify
     6  *   it under the terms of the GNU General Public License as published by
     7  *   the Free Software Foundation, either version 3 of the License, or
     8  *   (at your option) any later version.
     9  *
    10  *   This program is distributed in the hope that it will be useful,
    11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  *   GNU General Public License for more details.
    14  *
    15  *   You should have received a copy of the GNU General Public License
    16  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17  */
    18 package org.sonews.storage.impl;
    19 
    20 import java.util.List;
    21 import org.sonews.feed.Subscription;
    22 import org.sonews.storage.Article;
    23 import org.sonews.storage.ArticleHead;
    24 import org.sonews.storage.Channel;
    25 import org.sonews.storage.Group;
    26 import org.sonews.storage.Storage;
    27 import org.sonews.storage.StorageBackendException;
    28 import org.sonews.util.Pair;
    29 
    30 /**
    31  *
    32  * @author Christian Lins
    33  * @since sonews/1.1
    34  */
    35 public class HSQLDB implements Storage {
    36 
    37 	public void addArticle(Article art) throws StorageBackendException {
    38 		throw new UnsupportedOperationException("Not supported yet.");
    39 	}
    40 
    41 	public void addEvent(long timestamp, int type, long groupID) throws StorageBackendException {
    42 		throw new UnsupportedOperationException("Not supported yet.");
    43 	}
    44 
    45 	public void addGroup(String groupname, int flags) throws StorageBackendException {
    46 		throw new UnsupportedOperationException("Not supported yet.");
    47 	}
    48 
    49 	public int countArticles() throws StorageBackendException {
    50 		throw new UnsupportedOperationException("Not supported yet.");
    51 	}
    52 
    53 	public int countGroups() throws StorageBackendException {
    54 		throw new UnsupportedOperationException("Not supported yet.");
    55 	}
    56 
    57 	public void delete(String messageID) throws StorageBackendException {
    58 		throw new UnsupportedOperationException("Not supported yet.");
    59 	}
    60 
    61 	public Article getArticle(String messageID) throws StorageBackendException {
    62 		throw new UnsupportedOperationException("Not supported yet.");
    63 	}
    64 
    65 	public Article getArticle(long articleIndex, long groupID) throws StorageBackendException {
    66 		throw new UnsupportedOperationException("Not supported yet.");
    67 	}
    68 
    69 	public List<Pair<Long, String>> getArticleHeaders(Channel channel, long start, long end, String header, String pattern) throws StorageBackendException {
    70 		throw new UnsupportedOperationException("Not supported yet.");
    71 	}
    72 
    73 	public List<Pair<Long, ArticleHead>> getArticleHeads(Group group, long first, long last) throws StorageBackendException {
    74 		throw new UnsupportedOperationException("Not supported yet.");
    75 	}
    76 
    77 	public long getArticleIndex(Article art, Group group) throws StorageBackendException {
    78 		throw new UnsupportedOperationException("Not supported yet.");
    79 	}
    80 
    81 	public List<Long> getArticleNumbers(long groupID) throws StorageBackendException {
    82 		throw new UnsupportedOperationException("Not supported yet.");
    83 	}
    84 
    85 	public String getConfigValue(String key) throws StorageBackendException {
    86 		throw new UnsupportedOperationException("Not supported yet.");
    87 	}
    88 
    89 	public int getEventsCount(int eventType, long startTimestamp, long endTimestamp, Channel channel) throws StorageBackendException {
    90 		throw new UnsupportedOperationException("Not supported yet.");
    91 	}
    92 
    93 	public double getEventsPerHour(int key, long gid) throws StorageBackendException {
    94 		throw new UnsupportedOperationException("Not supported yet.");
    95 	}
    96 
    97 	public int getFirstArticleNumber(Group group) throws StorageBackendException {
    98 		throw new UnsupportedOperationException("Not supported yet.");
    99 	}
   100 
   101 	public Group getGroup(String name) throws StorageBackendException {
   102 		throw new UnsupportedOperationException("Not supported yet.");
   103 	}
   104 
   105 	public List<Channel> getGroups() throws StorageBackendException {
   106 		throw new UnsupportedOperationException("Not supported yet.");
   107 	}
   108 
   109 	public List<String> getGroupsForList(String listAddress) throws StorageBackendException {
   110 		throw new UnsupportedOperationException("Not supported yet.");
   111 	}
   112 
   113 	public int getLastArticleNumber(Group group) throws StorageBackendException {
   114 		throw new UnsupportedOperationException("Not supported yet.");
   115 	}
   116 
   117 	public List<String> getListsForGroup(String groupname) throws StorageBackendException {
   118 		throw new UnsupportedOperationException("Not supported yet.");
   119 	}
   120 
   121 	public String getOldestArticle() throws StorageBackendException {
   122 		throw new UnsupportedOperationException("Not supported yet.");
   123 	}
   124 
   125 	public int getPostingsCount(String groupname) throws StorageBackendException {
   126 		throw new UnsupportedOperationException("Not supported yet.");
   127 	}
   128 
   129 	public List<Subscription> getSubscriptions(int type) throws StorageBackendException {
   130 		throw new UnsupportedOperationException("Not supported yet.");
   131 	}
   132 
   133 	public boolean isArticleExisting(String messageID) throws StorageBackendException {
   134 		throw new UnsupportedOperationException("Not supported yet.");
   135 	}
   136 
   137 	public boolean isGroupExisting(String groupname) throws StorageBackendException {
   138 		throw new UnsupportedOperationException("Not supported yet.");
   139 	}
   140 
   141 	public void purgeGroup(Group group) throws StorageBackendException {
   142 		throw new UnsupportedOperationException("Not supported yet.");
   143 	}
   144 
   145 	public void setConfigValue(String key, String value) throws StorageBackendException {
   146 		throw new UnsupportedOperationException("Not supported yet.");
   147 	}
   148 
   149 	public boolean update(Article article) throws StorageBackendException {
   150 		throw new UnsupportedOperationException("Not supported yet.");
   151 	}
   152 
   153 	public boolean update(Group group) throws StorageBackendException {
   154 		throw new UnsupportedOperationException("Not supported yet.");
   155 	}
   156 
   157 }