1 4 package test.bea.cmr; 5 6 13 public class SubscriberData 14 extends java.lang.Object 15 implements java.io.Serializable 16 { 17 private java.lang.String boid; 18 19 20 21 22 23 public SubscriberData() 24 { 25 } 26 27 public SubscriberData( java.lang.String 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 getPrimaryKey() { 39 return getBoid(); 40 } 41 42 public java.lang.String getBoid() 43 { 44 return this.boid; 45 } 46 public void setBoid( java.lang.String boid ) 47 { 48 this.boid = boid; 49 } 50 51 public String toString() 52 { 53 StringBuffer str = new StringBuffer ("{"); 54 55 str.append("boid=" + getBoid()); 56 str.append('}'); 57 58 return(str.toString()); 59 } 60 61 public boolean equals( Object 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 |