KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > bea > cmr > SubscriberData


1 /*
2  * Generated by XDoclet - Do not edit!
3  */

4 package test.bea.cmr;
5
6 /**
7  * Data object for Subscriber.
8  * @xdoclet-generated at 16-04-05
9  * @copyright The XDoclet Team
10  * @author XDoclet
11  * @version 1.2.3
12  */

13 public class SubscriberData
14    extends java.lang.Object JavaDoc
15    implements java.io.Serializable JavaDoc
16 {
17    private java.lang.String JavaDoc boid;
18
19   /* begin value object */
20
21   /* end value object */
22
23    public SubscriberData()
24    {
25    }
26
27    public SubscriberData( java.lang.String JavaDoc boid )
28    {
29       setBoid(boid);
30    }
31
32    public SubscriberData( SubscriberData otherData )
33    {
34       setBoid(otherData.getBoid());
35
36    }
37
38    public java.lang.String JavaDoc getPrimaryKey() {
39      return getBoid();
40    }
41
42    public java.lang.String JavaDoc getBoid()
43    {
44       return this.boid;
45    }
46    public void setBoid( java.lang.String JavaDoc boid )
47    {
48       this.boid = boid;
49    }
50
51    public String JavaDoc toString()
52    {
53       StringBuffer JavaDoc str = new StringBuffer JavaDoc("{");
54
55       str.append("boid=" + getBoid());
56       str.append('}');
57
58       return(str.toString());
59    }
60
61    public boolean equals( Object JavaDoc pOther )
62    {
63       if( pOther instanceof SubscriberData )
64       {
65          SubscriberData lTest = (SubscriberData) pOther;
66          boolean lEquals = true;
67
68          if( this.boid == null )
69          {
70             lEquals = lEquals && ( lTest.boid == null );
71          }
72          else
73          {
74             lEquals = lEquals && this.boid.equals( lTest.boid );
75          }
76
77          return lEquals;
78       }
79       else
80       {
81          return false;
82       }
83    }
84
85    public int hashCode()
86    {
87       int result = 17;
88
89       result = 37*result + ((this.boid != null) ? this.boid.hashCode() : 0);
90
91       return result;
92    }
93
94 }
95
Popular Tags