1 27 28 package dataregistry; 29 30 import java.math.BigDecimal ; 31 import java.sql.Timestamp ; 32 import java.util.Collection ; 33 import javax.ejb.CreateException ; 34 import javax.ejb.EJBLocalHome ; 35 import javax.ejb.FinderException ; 36 37 38 41 public interface OrderLocalHome extends EJBLocalHome { 42 43 OrderLocal findByPrimaryKey(Integer key) throws FinderException ; 44 45 public OrderLocal create(Integer orderId, String status, Timestamp lastUpdate, BigDecimal discount, String shipmentInfo) throws CreateException ; 46 47 Collection findByOrderId(Integer orderId) throws FinderException ; 48 49 Collection findByStatus(String status) throws FinderException ; 50 51 Collection findByDiscount(BigDecimal discount) throws FinderException ; 52 53 Collection findByShipmentInfo(String shipmentInfo) throws FinderException ; 54 55 OrderLocal create(Integer orderId, String status, BigDecimal discount, String shipmentInfo) throws CreateException ; 56 57 void adjustDiscount(int adjustment); 58 59 60 } 61 | Popular Tags |