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

src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java
src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java
src/java/org/mxchange/pizzaapplication/database/frontend/product/PizzaProductDatabaseFrontend.java
src/java/org/mxchange/pizzaapplication/database/frontend/product/ProductFrontend.java

index 57a158b7d7e904d8887fed57c9c0710a5d06d381..39007b7c32dcc73a2da0f3cb555eb99952934795 100644 (file)
@@ -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<Category> getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException;
+       public Iterator<Category> 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;
 }
index aa376c77f0b81b14dac138f568076f9dc1af0153..3a670fb80ae0b39a708b79e93ce77f4b02001492 100644 (file)
@@ -143,7 +143,7 @@ public class PizzaCategoryDatabaseFrontend extends BaseDatabaseFrontend implemen
 
        @Override
        @SuppressWarnings ("unchecked")
-       public Iterator<Category> getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException {
+       public Iterator<Category> 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));
 
index 4eabce6bb5625b764c5712bbe7f4f0d1b2135437..1e6a1e0c3015812011fa3facd94e42fb1819ef7a 100644 (file)
@@ -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<Product> getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException {
+       public Iterator<Product> 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<Product> getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException {
+       public Iterator<Product> 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));
                
index 431201e2c9003a92e663c7c5c5262cb0aad6bb4e..cb4146a3e54ffd89f3e3286ec6609731ad2ad304 100644 (file)
@@ -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<Product> getAllProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException;
+       public Iterator<Product> 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<Product> getAvailableProducts () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException;
+       public Iterator<Product> 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;
 }