]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Also renamed this method for better understanding of its purpose
authorRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 09:52:42 +0000 (11:52 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 09:52:55 +0000 (11:52 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java
src/java/org/mxchange/pizzaapplication/database/frontend/category/CategoryFrontend.java
src/java/org/mxchange/pizzaapplication/database/frontend/category/PizzaCategoryDatabaseFrontend.java

index 7ca4f5e78de0274d707e450bae483fe0379b0d0e..7d27ca191ac46762dc1fc6b42939d7ced015e7d4 100644 (file)
@@ -554,7 +554,7 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P
 
                try {
                        // Ask frontend for a list of categories
-                       return this.categoryFrontend.getCategories();
+                       return this.categoryFrontend.getAllCategories();
                } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
                        throw new ServletException(ex);
                }
index 82c65396084e6d5c0086a15ad0e7522b69826c5a..43a2cdcb23bafad3058e521a73d918f32ff942fb 100644 (file)
@@ -68,7 +68,7 @@ public interface CategoryFrontend extends DatabaseFrontend {
         * @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, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
+       public Iterator<Category> getAllCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
 
        /**
         * Checks if given category title is already used
index 081484f5c2b15b8ec97e31e284100ab5b9e9e7a2..b0f84d49623eaa48b515e30c247de779c4790798 100644 (file)
@@ -148,7 +148,7 @@ public class PizzaCategoryDatabaseFrontend extends BaseDatabaseFrontend implemen
 
        @Override
        @SuppressWarnings ("unchecked")
-       public Iterator<Category> getCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
+       public Iterator<Category> getAllCategories () throws IOException, BadTokenException, SQLException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                // Trace message
                this.getLogger().trace("CALLED!"); //NOI18N