Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.ProductDAO


  }

  @Override
  public Product store(Product product) {
   
    ProductDAO repository = new ProductDAO();
    return repository.save(product);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Product product) {
   
    ProductDAO repository = new ProductDAO();
    repository.delete(product);
   
  }
View Full Code Here

  }

  @Override
  public Collection<Product> getAll() {
   
    ProductDAO repository = new ProductDAO();
    return repository.getAll();
   
  }
View Full Code Here

   
  }

  public Collection<Product> getProductByName(String name) {
   
    ProductDAO repository = new ProductDAO();
    return repository.getProductByName(name);
  }
View Full Code Here

    return repository.getProductByName(name);
  }

  @Override
  public Product getById(Serializable id) {
    ProductDAO repository = new ProductDAO();
    return repository.get(id);
  }
View Full Code Here

    ProductDAO repository = new ProductDAO();
    return repository.get(id);
  }

  public Collection<Product> getFeaturedProducts() {
    ProductDAO repository = new ProductDAO();
   
    return repository.getFeaturedProducts();
  }
View Full Code Here

    SubCategory subCategory = subCategoryService.getById(subCategoryId);
    return subCategory.getProducts();
  }
 
  public Collection<ProductListing> getProductsByCategory(Serializable categoryId) {
    ProductDAO repository = new ProductDAO();
    return repository.getProductsByCategory(categoryId);
  }
View Full Code Here

    ProductDAO repository = new ProductDAO();
    return repository.getProductsByCategory(categoryId);
  }
 
  public Collection<ProductListing> searchProductsByNameOrDescription(String searchTerm) {
    ProductDAO repository = new ProductDAO();
    return repository.searchProductsByNameOrDescription(searchTerm);
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.dao.ProductDAO

Copyright © 2018 www.massapicom. 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.