001: // Stock.java
002:
003: package org.objectweb.jonas.stests.appli;
004:
005: import java.rmi.RemoteException;
006: import javax.ejb.EJBObject;
007:
008: /**
009: * Stock remote interface
010: */
011: public interface Stock extends EJBObject {
012: /**
013: * Get the warehouse id.
014: * <p>
015: * @return String
016: * @exception java.rmi.RemoteException Remote exception
017: */
018:
019: public String getWarehouseID() throws RemoteException;
020:
021: public Integer getItemID() throws RemoteException;
022:
023: /**
024: * Get the Stock Quantity
025: * <p>
026: * @return integer
027: * @exception java.rmi.RemoteException Remote exception
028: */
029:
030: public int getStockQuantity() throws RemoteException;
031:
032: /**
033: * Increase the stock quantity by a quantity
034: * <p>
035: * @param integer quantity <i>(Mandatory)</i>
036: * @return void
037: * @exception java.rmi.RemoteException Remote exception
038: */
039: public void increaseStockQuantity(int stockQty)
040: throws RemoteException;
041:
042: /**
043: * Decrease the stock quantity by a quantity
044: * <p>
045: * @param integer quantity <i>(Mandatory)</i>
046: * @return void
047: * @exception java.rmi.RemoteException Remote exception
048: */
049: public void decreaseStockQuantity(int stockQty)
050: throws RemoteException;
051:
052: /**
053: * Get the Year to Date Quantity
054: * <p>
055: * @param none <i>(Mandatory)</i>
056: * @return integer
057: * @exception java.rmi.RemoteException Remote exception
058: */
059:
060: public int getYearToDate() throws RemoteException;
061:
062: /**
063: * Increase the Year to date quantity by a quantity
064: * <p>
065: * @param integer quantity <i>(Mandatory)</i>
066: * @return void
067: * @exception java.rmi.RemoteException Remote exception
068: */
069: public void increaseYearToDate(int qty) throws RemoteException;
070:
071: /**
072: * Decrease the Year to date quantity by a quantity
073: * <p>
074: * @param integer quantity <i>(Mandatory)</i>
075: * @return void
076: * @exception java.rmi.RemoteException Remote exception
077: */
078:
079: public void decreaseYearToDate(int qty) throws RemoteException;
080:
081: /**
082: * Get the Order Quantity
083: * <p>
084: * @param none <i>(Mandatory)</i>
085: * @return integer
086: * @exception java.rmi.RemoteException Remote exception
087: */
088:
089: public int getOrderQuantity() throws RemoteException;
090:
091: /**
092: * Increase the Order Quantity by a quantity
093: * <p>
094: * @param integer quantity <i>(Mandatory)</i>
095: * @return void
096: * @exception java.rmi.RemoteException Remote exception
097: */
098:
099: public void increaseOrderQuantity(int qty) throws RemoteException;
100:
101: /**
102: * Decrease the Order Quantity by a quantity
103: * <p>
104: * @param integer quantity <i>(Mandatory)</i>
105: * @return void
106: * @exception java.rmi.RemoteException Remote exception
107: */
108:
109: public void decreaseOrderQuantity(int qty) throws RemoteException;
110:
111: /**
112: * Get the Remote Order Quantity
113: * <p>
114: * @param none <i>(Mandatory)</i>
115: * @return integer
116: * @exception java.rmi.RemoteException Remote exception
117: */
118:
119: public int getRemOrderQuantity() throws RemoteException;
120:
121: /** Increase the Remote Order Quantity by a quantity
122: * <p>
123: * @param integer quantity <i>(Mandatory)</i>
124: * @return void
125: * @exception java.rmi.RemoteException Remote exception
126: */
127:
128: public void increaseRemOrderQuantity(int qty)
129: throws RemoteException;
130:
131: /**
132: * Decrease the Remote Order Quantity by a quantity
133: * <p>
134: * @param integer quantity <i>(Mandatory)</i>
135: * @return void
136: * @exception java.rmi.RemoteException Remote exception
137: */
138:
139: public void decreaseRemOrderQuantity(int qty)
140: throws RemoteException;
141:
142: }
|