Package com.ateam.webstore.service.impl

Source Code of com.ateam.webstore.service.impl.SalesTaxService

/**
*
*/
package com.ateam.webstore.service.impl;

import java.io.Serializable;
import java.util.Collection;

import com.ateam.webstore.dao.SalesTaxDAO;
import com.ateam.webstore.model.SalesTax;
import com.ateam.webstore.service.RepositoryService;

/**
* @author Hendrix Tavarez
*
*/
public class SalesTaxService implements RepositoryService<SalesTax> {

  @Override
  public SalesTax store(SalesTax salesTax) {

    SalesTaxDAO repository = new SalesTaxDAO();
    return repository.save(salesTax);
   
  }

  @Override
  public void remove(SalesTax salesTax) {
   
    SalesTaxDAO repository = new SalesTaxDAO();
    repository.delete(salesTax);
   
  }

  @Override
  public Collection<SalesTax> getAll() {

    SalesTaxDAO repository = new SalesTaxDAO();
    return repository.getAll();
   
  }

  @Override
  public SalesTax getById(Serializable id) {
    SalesTaxDAO repository = new SalesTaxDAO();
    return repository.get(id);
  }

}
TOP

Related Classes of com.ateam.webstore.service.impl.SalesTaxService

TOP
Copyright © 2018 www.massapi.com. 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.