01: // OrderHome.java
02:
03: package org.objectweb.jonas.stests.appli;
04:
05: import java.rmi.RemoteException;
06: import java.util.Vector;
07:
08: import javax.ejb.CreateException;
09: import javax.ejb.EJBHome;
10: import javax.ejb.FinderException;
11:
12: /**
13: * Home interface for the bean Order
14: */
15: public interface OrderHome extends EJBHome {
16:
17: /**
18: * Create a new Order.
19: * <p>
20: * @param String warehouseId The id of the warehouse
21: * @param int districtId The id of the district
22: * @param float orderId The order id
23: * @param Vector orderDetails The orderDetails for the order
24: * @return Order
25: * @exception javax.ejb.CreateException Creation Exception
26: * @exception java.rmi.RemoteException Remote Exception
27: */
28:
29: public Order create(String warehouseId, int districtId,
30: Integer customerId, float orderId, Vector orderDetails)
31: throws CreateException, RemoteException;
32:
33: /**
34: * Retrieve an individual order by the OrderID.
35: * <p>
36: * @param OrderID primaryKey
37: * @return Order
38: * @exception javax.ejb.FinderException Find Exception
39: * @exception java.rmi.RemoteException Remote Exception
40: */
41:
42: public Order findByPrimaryKey(OrderID primaryKey)
43: throws FinderException, RemoteException;
44:
45: /**
46: * Retrieve an individual order given the warehouse, district and
47: * order ids as Strings
48: * <p>
49: * @param String wID warehouse id
50: * @param String dID warehouse id
51: * @param String oID warehouse id
52: * @return Order
53: * @exception javax.ejb.FinderException Find Exception
54: * @exception java.rmi.RemoteException Remote Exception
55: */
56:
57: public Order findByID(String wID, String dID, String oID)
58: throws FinderException, RemoteException;
59:
60: }
|