]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/database/backend/DatabaseBackend.java
Continued with jcore: (refacturing)
[jcore.git] / src / org / mxchange / jcore / database / backend / DatabaseBackend.java
index a1e7a062f1b028b6f3388ad8d8b23f06a1da5345..64dcf25d7a8086432c08b2727a7c9d2712731a07 100644 (file)
@@ -24,6 +24,7 @@ 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;
+import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
 
 /**
  * A generic interface for database frontends
@@ -45,8 +46,9 @@ public interface DatabaseBackend extends FrameworkInterface {
         * @param dataset A dataset instance
         * @return An instance of Result
         * @throws java.sql.SQLException If any SQL error occurs
+        * @throws java.io.IOException If an IO error occurs
         */
-       public Result<? extends Storeable> doInsertDataSet (final Map<String, Object> dataset) throws SQLException;
+       public Result<? extends Storeable> doInsertDataSet (final Map<String, Object> dataset) throws SQLException, IOException;
 
        /**
         * Run a "SELECT" statement with given criteria and always return a Result
@@ -57,9 +59,10 @@ public interface DatabaseBackend extends FrameworkInterface {
         * @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
+        * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the file is badly damaged
         * @throws java.sql.SQLException If any SQL error occurs
         */
-       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, SQLException;
+       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, CorruptedDatabaseFileException, SQLException;
 
        /**
         * Shuts down this backend