Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.ProductsInCartDAO


public class ProductsInCartService implements RepositoryService<ProductsInCart> {

  @Override
  public ProductsInCart store(ProductsInCart productsInCart) {
   
    ProductsInCartDAO repository = new ProductsInCartDAO();
    return repository.save(productsInCart);
  }
View Full Code Here


  }

  @Override
  public void remove(ProductsInCart productsInCart) {
   
    ProductsInCartDAO repository = new ProductsInCartDAO();
    repository.delete(productsInCart);
   
  }
View Full Code Here

  }

  @Override
  public Collection<ProductsInCart> getAll() {

    ProductsInCartDAO repository = new ProductsInCartDAO();
    return repository.getAll();
  }
View Full Code Here

    return repository.getAll();
  }

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

TOP

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

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.