KickJava   Java API By Example, From Geeks To Geeks.

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


1 // Stock.java
2

3 package org.objectweb.jonas.stests.appli;
4
5 import java.rmi.RemoteException JavaDoc;
6 import javax.ejb.EJBObject JavaDoc;
7
8 /**
9  * Stock remote interface
10  */

11 public interface Stock extends EJBObject JavaDoc {
12     /**
13      * Get the warehouse id.
14      * <p>
15      * @return String
16      * @exception java.rmi.RemoteException Remote exception
17      */

18
19     public String JavaDoc getWarehouseID() throws RemoteException JavaDoc;
20     public Integer JavaDoc getItemID() throws RemoteException JavaDoc;
21  
22     /**
23      * Get the Stock Quantity
24      * <p>
25      * @return integer
26      * @exception java.rmi.RemoteException Remote exception
27      */

28  
29     public int getStockQuantity() throws RemoteException JavaDoc;
30  
31     /**
32      * Increase the stock quantity by a quantity
33      * <p>
34      * @param integer quantity <i>(Mandatory)</i>
35      * @return void
36      * @exception java.rmi.RemoteException Remote exception
37      */

38     public void increaseStockQuantity(int stockQty) throws RemoteException JavaDoc;
39     /**
40      * Decrease the stock quantity by a quantity
41      * <p>
42      * @param integer quantity <i>(Mandatory)</i>
43      * @return void
44      * @exception java.rmi.RemoteException Remote exception
45      */

46     public void decreaseStockQuantity(int stockQty) throws RemoteException JavaDoc;
47
48  
49     /**
50      * Get the Year to Date Quantity
51      * <p>
52      * @param none <i>(Mandatory)</i>
53      * @return integer
54      * @exception java.rmi.RemoteException Remote exception
55      */

56  
57     public int getYearToDate() throws RemoteException JavaDoc;
58
59     /**
60      * Increase the Year to date quantity by a quantity
61      * <p>
62      * @param integer quantity <i>(Mandatory)</i>
63      * @return void
64      * @exception java.rmi.RemoteException Remote exception
65      */

66     public void increaseYearToDate(int qty) throws RemoteException JavaDoc;
67  
68     /**
69      * Decrease the Year to date quantity by a quantity
70      * <p>
71      * @param integer quantity <i>(Mandatory)</i>
72      * @return void
73      * @exception java.rmi.RemoteException Remote exception
74      */

75  
76     public void decreaseYearToDate(int qty) throws RemoteException JavaDoc;
77
78     /**
79      * Get the Order Quantity
80      * <p>
81      * @param none <i>(Mandatory)</i>
82      * @return integer
83      * @exception java.rmi.RemoteException Remote exception
84      */

85  
86     public int getOrderQuantity() throws RemoteException JavaDoc;
87  
88     /**
89      * Increase the Order Quantity by a quantity
90      * <p>
91      * @param integer quantity <i>(Mandatory)</i>
92      * @return void
93      * @exception java.rmi.RemoteException Remote exception
94      */

95  
96     public void increaseOrderQuantity(int qty) throws RemoteException JavaDoc;
97  
98     /**
99      * Decrease the Order Quantity by a quantity
100      * <p>
101      * @param integer quantity <i>(Mandatory)</i>
102      * @return void
103      * @exception java.rmi.RemoteException Remote exception
104      */

105
106     public void decreaseOrderQuantity(int qty) throws RemoteException JavaDoc;
107
108     /**
109      * Get the Remote Order Quantity
110      * <p>
111      * @param none <i>(Mandatory)</i>
112      * @return integer
113      * @exception java.rmi.RemoteException Remote exception
114      */

115  
116     public int getRemOrderQuantity() throws RemoteException JavaDoc;
117
118     /** Increase the Remote Order Quantity by a quantity
119         * <p>
120         * @param integer quantity <i>(Mandatory)</i>
121         * @return void
122         * @exception java.rmi.RemoteException Remote exception
123         */

124  
125         public void increaseRemOrderQuantity(int qty) throws RemoteException JavaDoc;
126
127     /**
128      * Decrease the Remote Order Quantity by a quantity
129      * <p>
130      * @param integer quantity <i>(Mandatory)</i>
131      * @return void
132      * @exception java.rmi.RemoteException Remote exception
133      */

134
135     public void decreaseRemOrderQuantity(int qty) throws RemoteException JavaDoc;
136  
137 }
138
Popular Tags