CustomerControlTest.jws Sample

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

Sample Source Code


01 package automaticPK;
02 
03 /**
04  */
05 public class CustomerControlTest implements com.bea.jws.WebService
06 {
07     static final long serialVersionUID = 1L;
08 
09     /** @common:control */
10     public automaticPK.CustomerControl customerControl;
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     // The return type of this method was not supported in Web Service operations
23     /**
24      * @common:operation
25      * @jws:conversation phase="continue"
26      */
27     public void findByPrimaryKey(java.lang.Integer arg0throws Exception
28     customerControl.findByPrimaryKey(arg0)}
29 
30     // The return type of this method was not supported in Web Service operations
31     /** 
32      <font face="Geneva, Arial, Helvetica, sans-serif">
33      * Enter the last name of an existing customer.
34      </font> 
35      * @common:operation
36      * @jws:conversation phase="continue"
37      */
38     public void findByLastName(java.lang.String arg0throws Exception
39     customerControl.findByLastName(arg0)}
40 
41     // The return type of this method was not supported in Web Service operations
42     /** 
43      <font face="Geneva, Arial, Helvetica, sans-serif">
44      * Enter a first name and last name to create a new customer. A unique
45      * value generated by the table MyNamedSequence is used as primary key
46      </font> 
47      * @common:operation
48      * @jws:conversation phase="continue"
49      */
50     public void create(java.lang.String arg0, java.lang.String arg1throws Exception
51     customerControl.create(arg0, arg1)}
52 
53     /** @common:operation
54      * @jws:conversation phase="continue"
55      */
56     public void setLastName(java.lang.String arg0)
57     customerControl.setLastName(arg0)}
58 
59     /** @common:operation
60      * @jws:conversation phase="continue"
61      */
62     public void setCustomer_ID(java.lang.Integer arg0)
63     customerControl.setCustomer_ID(arg0)}
64 
65     /** @common:operation
66      * @jws:conversation phase="continue"
67      */
68     public java.lang.String getLastName()
69     return customerControl.getLastName()}
70 
71     /** 
72      <font face="Geneva, Arial, Helvetica, sans-serif">
73      * After creating a new customer or finding a customer by last name,
74      * you can check the Customer ID (the primary key) for the record.
75      </font> 
76      * @common:operation
77      * @jws:conversation phase="continue"
78      */
79     public java.lang.Integer getCustomer_ID()
80     return customerControl.getCustomer_ID()}
81 
82     /** @common:operation
83      * @jws:conversation phase="continue"
84      */
85     public java.lang.String getFirstName()
86     return customerControl.getFirstName()}
87 
88     /** @common:operation
89      * @jws:conversation phase="continue"
90      */
91     public void setFirstName(java.lang.String arg0)
92     customerControl.setFirstName(arg0)}
93 
94 }