BMPItemBeanCtrlTest.jws Sample

This topic inludes the source code for the BMPItemBeanCtrlTest.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/beanManagedPersistence/

Sample Source Code


01 package beanManagedPersistence;
02 
03 /**
04  */
05 public class BMPItemBeanCtrlTest implements com.bea.jws.WebService
06 {
07     static final long serialVersionUID = 1L;
08 
09     /** @common:control */
10     public beanManagedPersistence.BMPItemBeanCtrl bMPItemBeanCtrl;
11 
12     /** @common:operation
13      * @jws:conversation phase="start"
14      */
15     public void startTestDrive() {}
16 
17     /** @common:operation
18      * @jws:conversation phase="finish"
19      */
20     public void finishTestDrive() {}
21 
22     /** 
23      <font face="Geneva, Arial, Helvetica, sans-serif">
24      * Enter a price to find the items matching that price.
25      </font> 
26      
27      * @common:operation
28      * @jws:conversation phase="continue"
29      */
30     public void findByPrice(double pricethrows Exception
31     { }
32 
33     // The return type of this method was not supported in Web Service operations
34     /** 
35      <font face="Geneva, Arial, Helvetica, sans-serif">
36      * Enter the number of a previously entered item. The number is the primary key.
37      </font> 
38      
39      * @common:operation
40      * @jws:conversation phase="continue"
41      */
42     public void findByPrimaryKey(java.lang.Integer numberthrows Exception
43     bMPItemBeanCtrl.findByPrimaryKey(number)}
44 
45     // The return type of this method was not supported in Web Service operations
46     /**
47      <font face="Geneva, Arial, Helvetica, sans-serif">
48      * Enter a number, name, and price of an item. The number functions as the unique
49      * index, that is, the primary key.
50      </font> 
51      
52      * @common:operation
53      * @jws:conversation phase="continue"
54      */
55     public void create(java.lang.Integer number, java.lang.String name, double pricethrows Exception
56     bMPItemBeanCtrl.create(number, name, price)}
57 
58     /** @common:operation
59      * @jws:conversation phase="continue"
60      */
61     public java.lang.String getItemName()
62     return bMPItemBeanCtrl.getItemName()}
63 
64     /** @common:operation
65      * @jws:conversation phase="continue"
66      */
67     public java.lang.Integer getItemNumber()
68     return bMPItemBeanCtrl.getItemNumber()}
69 
70     /** @common:operation
71      * @jws:conversation phase="continue"
72      */
73     public double getPrice()
74     return bMPItemBeanCtrl.getPrice()}
75 
76     /** @common:operation
77      * @jws:conversation phase="continue"
78      */
79     public void setItemName(java.lang.String name)
80     bMPItemBeanCtrl.setItemName(name)}
81 
82     /** @common:operation
83      * @jws:conversation phase="continue"
84      */
85     public void setItemNumber(java.lang.Integer number)
86     bMPItemBeanCtrl.setItemNumber(number)}
87 
88     /** @common:operation
89      * @jws:conversation phase="continue"
90      */
91     public void setPrice(double price)
92     bMPItemBeanCtrl.setPrice(price)}
93 
94 }