Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.OrdersDAO


public class OrdersService implements RepositoryService<Orders> {

  @Override
  public Orders store(Orders orders) {
   
    OrdersDAO repository = new OrdersDAO();
    return repository.save(orders);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Orders orders) {
   
    OrdersDAO repository = new OrdersDAO();
    repository.delete(orders);
   
  }
View Full Code Here

  }

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

    return repository.getAll();
  }

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

    OrdersDAO repository = new OrdersDAO();
    return repository.get(id);
  }
 
  public Collection<Orders> getOrdersInProgress() {
    OrdersDAO repository = new OrdersDAO();
    return repository.getOrdersInProgress();
  }
View Full Code Here

    OrdersDAO repository = new OrdersDAO();
    return repository.getOrdersInProgress();
  }
 
  public Collection<Orders> getOrdersInCompleted() {
    OrdersDAO repository = new OrdersDAO();
    return repository.getOrdersInCompleted();
  }
View Full Code Here

    OrdersDAO repository = new OrdersDAO();
    return repository.getOrdersInCompleted();
  }

  public Collection<Orders> getByCustomerId(Serializable id) {
    OrdersDAO repository = new OrdersDAO();
    Customer customer = new CustomerService().getById(id);
    return repository.getByCustomer(customer);
  }
View Full Code Here

TOP

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

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.