Examples of CategoryDAO


Examples of com.openbravo.pos.pda.dao.CategoryDAO

        return list;
    }

    public List<CategoryInfo> findAllCategories() {
        category = new CategoryDAO();

        return category.findAllCategories();
    }
View Full Code Here

Examples of com.openbravo.pos.pda.dao.CategoryDAO

    }

    public void addLineToTicket(String ticketId, String productId) {
        ticket = new TicketDAO();
        product = new ProductDAO();
        category = new CategoryDAO();
        tax = new TaxDAO();
        taxesLogic = new TaxesLogic(tax.getTaxList());

        TicketInfo obj = ticket.getTicket(ticketId);
        ProductInfo productObj = product.findProductById(productId);
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

    }

    // load categories
    try {
      DAOFactory factory = DAOFactory.getConfiguredFactory();
      CategoryDAO dao = factory.getCategoryDAO();
      rootCategory = dao.getCategories(this);
    } catch (PersistenceException pe) {
      pe.printStackTrace();
    }

    refererFilterManager = new RefererFilterManager(this);
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

    }

    // load categories
    try {
      DAOFactory factory = DAOFactory.getConfiguredFactory();
      CategoryDAO dao = factory.getCategoryDAO();
      rootCategory = dao.getCategories(this);
    } catch (PersistenceException pe) {
      pe.printStackTrace();
    }

    refererFilterManager = new RefererFilterManager(this);
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

          category = new Category(id, name);
        }

        blog.addCategory(category);
        DAOFactory factory = DAOFactory.getConfiguredFactory();
        CategoryDAO dao = factory.getCategoryDAO();
        dao.addCategory(category, blog);
      }
    } catch (Exception e) {
      log.error("Exception encountered", e);
    }
  }
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

    for (String categoryStr : categories) {
      if(categoryStr != null && categoryStr.trim().length() > 0) {
        Category category = new Category(categoryStr.trim(), categoryStr.trim());
        DAOFactory factory = DAOFactory.getConfiguredFactory();
        CategoryDAO dao = factory.getCategoryDAO();
        dao.addCategory(category, blog);
        blog.addCategory(category);
        entry.addCategory(category);
      }
    }
    entry.setPublished("Publish".equals(status));
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

        blog.addCategory(category);
        category.setTags(tags);
        try {
          // add it to the persistent store
          DAOFactory factory = DAOFactory.getConfiguredFactory();
          CategoryDAO dao = factory.getCategoryDAO();
          dao.addCategory(category, blog);
        } catch (PersistenceException pe) {
          pe.printStackTrace();
        }
      } else {
        // updating an existing category
        category.setName(name);
        category.setTags(tags);
        try {
          // add it to the persistent store
          DAOFactory factory = DAOFactory.getConfiguredFactory();
          CategoryDAO dao = factory.getCategoryDAO();
          dao.updateCategory(category, blog);
        } catch (PersistenceException pe) {
          pe.printStackTrace();
        }
      }
    }
View Full Code Here

Examples of net.sourceforge.pebble.dao.CategoryDAO

          if (category != null) {
            blog.removeCategory(category);
            try {
              // remove it from the persistent store
              DAOFactory factory = DAOFactory.getConfiguredFactory();
              CategoryDAO dao = factory.getCategoryDAO();
              dao.deleteCategory(category, blog);
            } catch (PersistenceException pe) {
              pe.printStackTrace();
            }
          }
        }
View Full Code Here

Examples of org.broadleafcommerce.core.catalog.dao.CategoryDao

        categories.add(c1);
        categories.add(c2);
        categories.add(c3);
        categories.add(c4);

        CategoryDao categoryDao = EasyMock.createMock(CategoryDao.class);
        EasyMock.expect(categoryDao.readActiveSubCategoriesByCategory(rootCategory, 5, 0)).andReturn(categories)
                .atLeastOnce();
        EasyMock.replay(categoryDao);

        CategorySiteMapGenerator csmg = new CategorySiteMapGenerator();
        csmg.setCategoryDao(categoryDao);
View Full Code Here

Examples of org.opencustomer.db.dao.crm.CategoryDAO

        attributes.put("legalFormGroups", new LegalFormGroupDAO().getAll());
       
        attributes.put("sectors", new SectorDAO().getAll());
        attributes.put("companyTypes", new CompanyTypeDAO().getAll());
        attributes.put("companyStates", new CompanyStateDAO().getAll());
        attributes.put("categories", new CategoryDAO().getAll());
        attributes.put("ratings", new RatingDAO().getAll());

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.