]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/database/backend/DatabaseBackend.java
Organized members
[jcore.git] / src / org / mxchange / jcore / database / backend / DatabaseBackend.java
index 26a6c4ca2153fb9e6481b591ebad2c80814ed7fc..0dd7dac728e13fe1a1d46b9fc482683ccaa94214 100644 (file)
  */
 package org.mxchange.jcore.database.backend;
 
+import java.io.IOException;
 import java.sql.SQLException;
 import org.mxchange.jcore.FrameworkInterface;
 import org.mxchange.jcore.criteria.searchable.SearchableCritera;
 import org.mxchange.jcore.database.result.Result;
 import org.mxchange.jcore.database.storage.Storeable;
+import org.mxchange.jcore.exceptions.BadTokenException;
 
 /**
  * A generic interface for database frontends
@@ -43,11 +45,16 @@ public interface DatabaseBackend extends FrameworkInterface {
         *
         * @param critera Search critera
         * @return A result instance
+        * @throws java.io.IOException If any IO error occurs
+        * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
         */
-       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera);
+       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException;
 
        /**
         * Shuts down this backend
+        *
+        * @throws java.sql.SQLException If any SQL error occurs
+        * @throws java.io.IOException If any IO error occurs
         */
-       public void doShutdown ();
+       public void doShutdown () throws SQLException, IOException;
 }