]> git.mxchange.org Git - jcore.git/commitdiff
Also added here missing thrown exceptions
authorRoland Haeder <roland@mxchange.org>
Fri, 14 Aug 2015 19:27:14 +0000 (21:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 14 Aug 2015 19:27:14 +0000 (21:27 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/backend/DatabaseBackend.java
src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java

index 64dcf25d7a8086432c08b2727a7c9d2712731a07..34f985dc70e65cb2e23343740b3f6951caf18ddc 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.jcore.database.backend;
 
 import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
 import java.sql.SQLException;
 import java.util.Map;
 import org.mxchange.jcore.FrameworkInterface;
@@ -61,8 +62,11 @@ public interface DatabaseBackend extends FrameworkInterface {
         * @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
+        * @throws java.lang.NoSuchMethodException If a method was not found
+        * @throws java.lang.IllegalAccessException If the method cannot be accessed
+        * @throws java.lang.reflect.InvocationTargetException Any other problems?
         */
-       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, CorruptedDatabaseFileException, SQLException;
+       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, CorruptedDatabaseFileException, SQLException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
 
        /**
         * Shuts down this backend
index aef05e4e65dc8acb88f0f982fb2c744443026220..fc10a6220b4440f11664c42e580ee0c78671ee14 100644 (file)
@@ -19,10 +19,13 @@ package org.mxchange.jcore.database.backend.base64;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.RandomAccessFile;
+import java.lang.reflect.InvocationTargetException;
 import java.text.MessageFormat;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 import org.apache.commons.codec.binary.Base64;
@@ -166,7 +169,7 @@ public class Base64CsvDatabaseBackend extends BaseDatabaseBackend implements Dat
        }
 
        @Override
-       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, CorruptedDatabaseFileException {
+       public Result<? extends Storeable> doSelectByCriteria (final SearchableCritera critera) throws IOException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                // Trace message
                this.getLogger().trace(MessageFormat.format("criteria={0} - CALLED!", critera));