From: Roland Haeder Date: Fri, 14 Aug 2015 19:35:57 +0000 (+0200) Subject: Also added here missing thrown exceptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b726b472cbed92284b70b63a70fd2a8a7a4272a3;p=pizzaservice-war.git Also added here missing thrown exceptions Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java b/src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java index 57a158b7..39007b7c 100644 --- a/src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java +++ b/src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java @@ -17,6 +17,7 @@ package org.mxchange.pizzaapplication.database.frontend.category; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; import java.sql.SQLException; import java.util.Iterator; import org.mxchange.jcore.database.frontend.DatabaseFrontend; @@ -49,8 +50,11 @@ public interface CategoryFrontend extends DatabaseFrontend { * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-) * @throws java.sql.SQLException If any SQL error occurs * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged + * @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 Iterator getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException; + public Iterator getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException; /** * Checks if given category title is already used @@ -61,6 +65,9 @@ public interface CategoryFrontend extends DatabaseFrontend { * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-) * @throws java.sql.SQLException If any SQL error occurs * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged + * @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 boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException; + public boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException; } diff --git a/src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java b/src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java index aa376c77..3a670fb8 100644 --- a/src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java +++ b/src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java @@ -143,7 +143,7 @@ public class PizzaCategoryDatabaseFrontend extends BaseDatabaseFrontend implemen @Override @SuppressWarnings ("unchecked") - public Iterator getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException { + public Iterator getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace("CALLED!"); //NOI18N @@ -218,7 +218,7 @@ public class PizzaCategoryDatabaseFrontend extends BaseDatabaseFrontend implemen * @return Whether the title has been used */ @Override - public boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException { + public boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace(MessageFormat.format("title={0} - CALLED!", title)); diff --git a/src/java/org/mxchange/pizzaapplication/database/frontend/product/PizzaProductDatabaseFrontend.java b/src/java/org/mxchange/pizzaapplication/database/frontend/product/PizzaProductDatabaseFrontend.java index 4eabce6b..1e6a1e0c 100644 --- a/src/java/org/mxchange/pizzaapplication/database/frontend/product/PizzaProductDatabaseFrontend.java +++ b/src/java/org/mxchange/pizzaapplication/database/frontend/product/PizzaProductDatabaseFrontend.java @@ -17,6 +17,7 @@ package org.mxchange.pizzaapplication.database.frontend.product; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; import java.sql.ResultSet; import java.sql.SQLException; import java.text.MessageFormat; @@ -32,8 +33,8 @@ import org.mxchange.jcore.exceptions.BadTokenException; import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException; import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException; import org.mxchange.pizzaapplication.database.product.PizzaProductDatabaseConstants; -import org.mxchange.pizzaapplication.product.pizza.PizzaProduct; import org.mxchange.pizzaapplication.product.Product; +import org.mxchange.pizzaapplication.product.pizza.PizzaProduct; /** * Stores and retrieves Contact instances @@ -107,7 +108,7 @@ public class PizzaProductDatabaseFrontend extends BaseDatabaseFrontend implement @Override @SuppressWarnings ("unchecked") - public Iterator getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException { + public Iterator getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace("CALLED!"); //NOI18N @@ -143,7 +144,7 @@ public class PizzaProductDatabaseFrontend extends BaseDatabaseFrontend implement */ @Override @SuppressWarnings ("unchecked") - public Iterator getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException { + public Iterator getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace("CALLED!"); //NOI18N @@ -223,7 +224,7 @@ public class PizzaProductDatabaseFrontend extends BaseDatabaseFrontend implement * @throws java.sql.SQLException If any SQL errors occur */ @Override - public boolean isProductTitleUsed (String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException { + public boolean isProductTitleUsed (String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace(MessageFormat.format("title={0} - CALLED!", title)); diff --git a/src/java/org/mxchange/pizzaapplication/database/frontend/product/ProductFrontend.java b/src/java/org/mxchange/pizzaapplication/database/frontend/product/ProductFrontend.java index 431201e2..cb4146a3 100644 --- a/src/java/org/mxchange/pizzaapplication/database/frontend/product/ProductFrontend.java +++ b/src/java/org/mxchange/pizzaapplication/database/frontend/product/ProductFrontend.java @@ -17,6 +17,7 @@ package org.mxchange.pizzaapplication.database.frontend.product; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; import java.sql.SQLException; import java.util.Iterator; import org.mxchange.jcore.database.frontend.DatabaseFrontend; @@ -50,8 +51,11 @@ public interface ProductFrontend extends DatabaseFrontend { * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-) * @throws java.sql.SQLException If any SQL errors occur * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged + * @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 Iterator getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException; + public Iterator getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException; /** * An iterator on all products @@ -61,8 +65,11 @@ public interface ProductFrontend extends DatabaseFrontend { * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-) * @throws java.sql.SQLException If any SQL errors occur * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged + * @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 Iterator getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException; + public Iterator getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException; /** * Checks wether the given product title is already used. @@ -73,6 +80,9 @@ public interface ProductFrontend extends DatabaseFrontend { * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-) * @throws java.sql.SQLException If any SQL errors occur * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged + * @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 boolean isProductTitleUsed (String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException; + public boolean isProductTitleUsed (String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException; }