package com.miraclefruit.ajaxform.business; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.miraclefruit.ajaxform.data.dao.StoreProductDAO; import com.miraclefruit.ajaxform.data.model.StoreProduct; public class StoreProductManager implements StoreProductManagerInterface { private StoreProductDAO dao = new StoreProductDAO(); private Log log = LogFactory.getLog(StoreProductManager.class); public StoreProductManager(){ log.info("StoreProductManager service initialized..."); } public List findAll() { return dao.findAll(); } public List findAll(String orderBy) { // TODO Auto-generated method stub return null; } public StoreProduct findBySKU(String sku) { return dao.findByManufacturerSku(sku).get(0); } public StoreProduct findByStoreProductId(Long id) { return dao.findById(id); } }