Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.BrandDAO


public class BrandService implements RepositoryService<Brand> {

  @Override
  public Brand store(Brand brand) {
   
    BrandDAO repository = new BrandDAO();
    return repository.save(brand);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Brand brand) {

    BrandDAO repository = new BrandDAO();
    repository.delete(brand);
  }
View Full Code Here

  }

  @Override
  public Collection<Brand> getAll() {

    BrandDAO repository = new BrandDAO();
    return repository.getAll();
   
  }
View Full Code Here

   
  }

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

TOP

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

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.