Package com.ateam.webstore.service.impl

Source Code of com.ateam.webstore.service.impl.ProductsInWishListService

/**
*
*/
package com.ateam.webstore.service.impl;

import java.io.Serializable;
import java.util.Collection;

import com.ateam.webstore.dao.ProductsInWishListDAO;
import com.ateam.webstore.model.ProductsInWishList;
import com.ateam.webstore.service.RepositoryService;

/**
* @author Hendrix Tavarez
*
*/
public class ProductsInWishListService implements
    RepositoryService<ProductsInWishList> {

  @Override
  public ProductsInWishList store(ProductsInWishList productsInWishList) {
   
    ProductsInWishListDAO repository = new ProductsInWishListDAO();
    return repository.save(productsInWishList);
  }

  @Override
  public void remove(ProductsInWishList productsInWishList) {
   
    ProductsInWishListDAO repository = new ProductsInWishListDAO();
    repository.delete(productsInWishList);
   
  }

  @Override
  public Collection<ProductsInWishList> getAll() {

    ProductsInWishListDAO repository = new ProductsInWishListDAO();
    return repository.getAll();
  }

  @Override
  public ProductsInWishList getById(Serializable id) {
    ProductsInWishListDAO repository = new ProductsInWishListDAO();
    return repository.get(id);
  }

}
TOP

Related Classes of com.ateam.webstore.service.impl.ProductsInWishListService

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.