Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.WishListDAO


public class WishListService implements RepositoryService<WishList> {

  @Override
  public WishList store(WishList wishList) {

    WishListDAO repository = new WishListDAO();
    return repository.save(wishList);
   
  }
View Full Code Here


  }

  @Override
  public void remove(WishList wishList) {
   
    WishListDAO repository = new WishListDAO();
    repository.delete(wishList);
   
  }
View Full Code Here

  }

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

   
  }

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

  }
 
  public WishList getByCustomerId(Serializable customerID) {
   
    Customer customer = new CustomerService().getById(customerID);   
    WishListDAO repository = new WishListDAO();
    return repository.getByCustomer(customer);
 
View Full Code Here

TOP

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

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.