Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.ReviewDAO


public class ReviewService implements RepositoryService<Review> {

  @Override
  public Review store(Review review) {
   
    ReviewDAO repository = new ReviewDAO();
    return repository.save(review);
  }
View Full Code Here


  }

  @Override
  public void remove(Review review) {

    ReviewDAO repository = new ReviewDAO();
    repository.delete(review);
   
  }
View Full Code Here

  }

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

    return repository.getAll();
  }

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

TOP

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

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.