1 2 package cmpdb; 3 4 import java.math.BigDecimal ; 5 import java.util.Collection ; 6 import javax.ejb.CreateException ; 7 import javax.ejb.EJBLocalHome ; 8 import javax.ejb.FinderException ; 9 10 11 14 public interface ProductLocalHome extends EJBLocalHome { 15 16 ProductLocal findByPrimaryKey(Integer key) throws FinderException ; 17 18 public ProductLocal create(Integer productId, BigDecimal purchaseCost, Integer quantityOnHand, BigDecimal markup, String available, String description, cmpdb.ManufactureLocal manufactureId, cmpdb.ProductCodeLocal productCode) throws CreateException ; 19 20 Collection findByProductId(Integer productId) throws FinderException ; 21 22 Collection findByPurchaseCost(BigDecimal purchaseCost) throws FinderException ; 23 24 Collection findByQuantityOnHand(Integer quantityOnHand) throws FinderException ; 25 26 Collection findByMarkup(BigDecimal markup) throws FinderException ; 27 28 Collection findByAvailable(String available) throws FinderException ; 29 30 Collection findByDescription(String description) throws FinderException ; 31 32 33 } 34 | Popular Tags |