]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Product-only:
authorRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 18:37:02 +0000 (20:37 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 18:37:02 +0000 (20:37 +0200)
- removed no longer used business method, should be done in backing bean (web
  container)
- renamed method fetchAllProducts() to fetchAllGenericProducts()
- renamed method fetchAllCategories() to fetchAllProductCategories()

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jproduct/model/category/FinancialsAdminProductCategorySessionBean.java
src/java/org/mxchange/jproduct/model/category/FinancialsProductCategorySessionBean.java
src/java/org/mxchange/jproduct/model/product/FinancialsAdminGenericProductSessionBean.java
src/java/org/mxchange/jproduct/model/product/FinancialsGenericProductSessionBean.java

index db6e5071b07a50641cc22b6f03f58960c0f4bdb7..82da89f2290315c9e93b1d6df87e9c66431d6f35 100644 (file)
@@ -166,7 +166,7 @@ public class FinancialsAdminProductCategorySessionBean extends BaseFinancialsPro
                boolean isFound = false;
 
                // Get full list from other EJB
-               final List<Category> list = this.categoryBean.fetchAllCategories();
+               final List<Category> list = this.categoryBean.fetchAllProductCategories();
 
                // Check each entry
                for (final Category createdCategory : list) {
index cda9d7f98de0ac6da1ec32c8bf86b08b548fbf98..3b5f26d3adec1bdf778ff28c3578efa8bb1932c7 100644 (file)
@@ -45,7 +45,7 @@ public class FinancialsProductCategorySessionBean extends BaseFinancialsEnterpri
 
        @Override
        @SuppressWarnings ("unchecked")
-       public List<Category> fetchAllCategories () {
+       public List<Category> fetchAllProductCategories () {
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allCategories: CALLED!", this.getClass().getSimpleName())); //NOI18N
 
index 26aa418bc6c40d98f43661efb0971ef938bff546..1bc5a2a67de2492b795493299eafb6c0107b4fa8 100644 (file)
@@ -158,7 +158,7 @@ public class FinancialsAdminGenericProductSessionBean extends BaseFinancialsProd
                boolean isFound = false;
 
                // Get full list from other EJB
-               final List<Product> list = this.productBean.fetchAllProducts();
+               final List<Product> list = this.productBean.fetchAllGenericProducts();
 
                // Check each entry
                for (final Product createdProduct : list) {
index 66307483e598d34b0b0af7479b7843fb3a407660..8b726390fe6cfa723cda2900ac5f139264c8b4aa 100644 (file)
@@ -37,26 +37,7 @@ public class FinancialsGenericProductSessionBean extends BaseFinancialsEnterpris
 
        @Override
        @SuppressWarnings ("unchecked")
-       public List<Product> fetchAllAvailableProducts () {
-               // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allAvailableProducts: CALLED!", this.getClass().getSimpleName())); //NOI18N
-
-               // Get query
-               final Query query = this.getEntityManager().createNamedQuery("AllAvailableProducts", GenericProduct.class); //NOI18N
-
-               // Get list from it
-               final List<Product> list = query.getResultList();
-
-               // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allAvailableProducts: list.size()={1} - EXIT!", this.getClass().getSimpleName(), list.size())); //NOI18N
-
-               // Return it
-               return list;
-       }
-
-       @Override
-       @SuppressWarnings ("unchecked")
-       public List<Product> fetchAllProducts () {
+       public List<Product> fetchAllGenericProducts () {
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allProducts: CALLED!", this.getClass().getSimpleName())); //NOI18N