1 2 package ent; 3 4 import java.math.BigDecimal ; 5 import java.sql.Date ; 6 import java.util.Collection ; 7 import javax.ejb.CreateException ; 8 import javax.ejb.EJBLocalHome ; 9 import javax.ejb.FinderException ; 10 11 12 15 public interface OrdersLocalHome extends EJBLocalHome { 16 17 OrdersLocal findByPrimaryKey(Integer key) throws FinderException ; 18 19 public OrdersLocal create(Integer orderNum, Integer quantity, BigDecimal shippingCost, Date salesDate, Date shippingDate, String freightCompany, ent.CustomerLocal customerId, ProductLocal productId) throws CreateException ; 20 21 Collection findByOrderNum(Integer orderNum) throws FinderException ; 22 23 Collection findByQuantity(Integer quantity) throws FinderException ; 24 25 Collection findByShippingCost(BigDecimal shippingCost) throws FinderException ; 26 27 Collection findByFreightCompany(String freightCompany) throws FinderException ; 28 29 30 } 31 | Popular Tags |