ItemsBeanControlTest.jws Sample

This topic inludes the source code for the ItemsBeanControlTest.jws Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/EJBs_ClientApps/homeMethods/

Sample Source Code


001 package homeMethods;
002 
003 /**
004  */
005 public class ItemsBeanControlTest implements com.bea.jws.WebService
006 {
007     static final long serialVersionUID = 1L;
008 
009     /** @common:control */
010     public homeMethods.ItemsBeanControl itemsBeanControl;
011 
012     /** @common:operation
013      * @jws:conversation phase="start"
014      */
015     public void startTestDrive() {}
016 
017     /** @common:operation
018      * @jws:conversation phase="finish"
019      */
020     public void finishTestDrive() {}
021 
022     // The return type of this method was not supported in Web Service operations
023     /** @common:operation
024      * @jws:conversation phase="continue"
025      */
026     public void findByPrimaryKey(java.lang.Integer arg0throws Exception
027     itemsBeanControl.findByPrimaryKey(arg0)}
028 
029 
030     /**
031      <font face="Geneva, Arial, Helvetica, sans-serif">
032      * Enter a valid price as a double (e.g., 44.99) to obtain the average
033      * price of the items that are more expensive than the entered price, 
034      * returned as a String. If there are no expensive items, 0.00 is returned.
035      </font>
036      
037      * @common:operation
038      * @jws:conversation phase="continue"
039      */
040     public java.lang.String getAverageExpensiveItems(double arg0)
041     return itemsBeanControl.getAverageExpensiveItems(arg0)}
042 
043     /** 
044      <font face="Geneva, Arial, Helvetica, sans-serif">
045      * Enter a valid price as a double (e.g., 44.99) to find out if there are
046      * any items in stock that are more expensive than the entered price, 
047      * returned as a boolean. If there are no expensive items, false is returned.
048      </font>
049      
050      * @common:operation
051      * @jws:conversation phase="continue"
052      */
053     public boolean getExpensiveItemsInStock(double arg0)
054     return itemsBeanControl.getExpensiveItemsInStock(arg0)}
055 
056     /** 
057      <font face="Geneva, Arial, Helvetica, sans-serif">
058      * Enter a valid price as a double (e.g., 44.99) to obtain the number
059      * of items that are more expensive than the entered price, returned as an int. 
060      </font> 
061      
062      * @common:operation
063      * @jws:conversation phase="continue"
064      */
065     public int getNumberOfExpensiveItems(double arg0)
066     return itemsBeanControl.getNumberOfExpensiveItems(arg0)}
067 
068     /** @common:operation
069      * @jws:conversation phase="continue"
070      */
071     public java.lang.String getItemname()
072     return itemsBeanControl.getItemname()}
073 
074     /** @common:operation
075      * @jws:conversation phase="continue"
076      */
077     public java.lang.Integer getItemnumber()
078     return itemsBeanControl.getItemnumber()}
079 
080     // The return type of this method was not supported in Web Service operations
081 
082     /** @common:operation
083      * @jws:conversation phase="continue"
084      */
085     public double getPrice()
086     return itemsBeanControl.getPrice()}
087 
088     /** @common:operation
089      * @jws:conversation phase="continue"
090      */
091     public int getQuantityavailable()
092     return itemsBeanControl.getQuantityavailable()}
093 
094     /** @common:operation
095      * @jws:conversation phase="continue"
096      */
097     public void setItemname(java.lang.String arg0)
098     itemsBeanControl.setItemname(arg0)}
099 
100     /** @common:operation
101      * @jws:conversation phase="continue"
102      */
103     public void setItemnumber(java.lang.Integer arg0)
104     itemsBeanControl.setItemnumber(arg0)}
105 
106     // This method includes types that are not supported in Web Service operations
107 //    /** @common:operation
108 //     * @jws:conversation phase="continue"
109 //     */
110 //    public void setManufacturer(ManufacturerClass.Manufacturer arg0)
111 //    { itemsBeanControl.setManufacturer(arg0); }
112 
113     /** @common:operation
114      * @jws:conversation phase="continue"
115      */
116     public void setPrice(double arg0)
117     itemsBeanControl.setPrice(arg0)}
118 
119     /** @common:operation
120      * @jws:conversation phase="continue"
121      */
122     public void setQuantityavailable(int arg0)
123     itemsBeanControl.setQuantityavailable(arg0)}
124 
125 }