Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.CustomerDAO


public class CustomerService implements RepositoryService<Customer> {

  @Override
  public Customer store(Customer customer) {
   
    CustomerDAO repository = new CustomerDAO();
    return repository.save(customer);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Customer customer) {
   
    CustomerDAO repository = new CustomerDAO();
    repository.delete(customer);
  }
View Full Code Here

  }

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

    return repository.getAll();
  }

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

TOP

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

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.