KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > stests > appli > OrderHome


1 // OrderHome.java
2

3 package org.objectweb.jonas.stests.appli;
4
5 import java.rmi.RemoteException JavaDoc;
6 import java.util.Vector JavaDoc;
7
8 import javax.ejb.CreateException JavaDoc;
9 import javax.ejb.EJBHome JavaDoc;
10 import javax.ejb.FinderException JavaDoc;
11
12 /**
13  * Home interface for the bean Order
14  */

15 public interface OrderHome extends EJBHome JavaDoc {
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 JavaDoc warehouseId,
30                         int districtId,
31                         Integer JavaDoc customerId,
32                         float orderId, Vector JavaDoc orderDetails)
33         throws CreateException JavaDoc, RemoteException JavaDoc;
34
35
36     /**
37      * Retrieve an individual order by the OrderID.
38      * <p>
39      * @param OrderID primaryKey
40      * @return Order
41      * @exception javax.ejb.FinderException Find Exception
42      * @exception java.rmi.RemoteException Remote Exception
43      */

44
45     public Order findByPrimaryKey(OrderID primaryKey)
46         throws FinderException JavaDoc, RemoteException JavaDoc;
47     
48
49     /**
50      * Retrieve an individual order given the warehouse, district and
51      * order ids as Strings
52      * <p>
53      * @param String wID warehouse id
54      * @param String dID warehouse id
55      * @param String oID warehouse id
56      * @return Order
57      * @exception javax.ejb.FinderException Find Exception
58      * @exception java.rmi.RemoteException Remote Exception
59      */

60
61     public Order findByID(String JavaDoc wID, String JavaDoc dID, String JavaDoc oID)
62         throws FinderException JavaDoc, RemoteException JavaDoc;
63
64 }
65
Popular Tags