@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
@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