Remove Service interface.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / Database.java
index 4bf863f..3fd7e2b 100644 (file)
@@ -17,8 +17,6 @@
 
 package net.pterodactylus.sone.database;
 
-import com.google.common.util.concurrent.Service;
-
 /**
  * Database for Sone data. This interface combines the various provider, store,
  * and builder factory interfaces into a single interface and adds some methods
@@ -26,14 +24,9 @@ import com.google.common.util.concurrent.Service;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public interface Database extends Service, PostDatabase, PostReplyDatabase, AlbumDatabase {
+public interface Database extends IdentityDatabase, SoneDatabase, PostDatabase, PostReplyDatabase, AlbumDatabase, ImageDatabase {
 
-       /**
-        * Saves the database.
-        *
-        * @throws DatabaseException
-        *             if an error occurs while saving
-        */
-       public void save() throws DatabaseException;
+       void start();
+       void stop();
 
 }