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
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public interface Database extends Service, PostDatabase, PostReplyDatabase, AlbumDatabase, ImageDatabase {
+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();
}