1 4 package test.ejb.cmr; 5 6 13 public class LanguageData 14 extends java.lang.Object 15 implements java.io.Serializable 16 { 17 private java.lang.Integer languageId; 18 private java.lang.Integer languageCodeIdFk; 19 private java.lang.String name; 20 21 22 23 24 25 public LanguageData() 26 { 27 } 28 29 public LanguageData( java.lang.Integer languageId,java.lang.Integer languageCodeIdFk,java.lang.String name ) 30 { 31 setLanguageId(languageId); 32 setLanguageCodeIdFk(languageCodeIdFk); 33 setName(name); 34 } 35 36 public LanguageData( LanguageData otherData ) 37 { 38 setLanguageId(otherData.getLanguageId()); 39 setLanguageCodeIdFk(otherData.getLanguageCodeIdFk()); 40 setName(otherData.getName()); 41 42 } 43 44 public java.lang.Integer getPrimaryKey() { 45 return getLanguageId(); 46 } 47 48 public java.lang.Integer getLanguageId() 49 { 50 return this.languageId; 51 } 52 public void setLanguageId( java.lang.Integer languageId ) 53 { 54 this.languageId = languageId; 55 } 56 57 public java.lang.Integer getLanguageCodeIdFk() 58 { 59 return this.languageCodeIdFk; 60 } 61 public void setLanguageCodeIdFk( java.lang.Integer languageCodeIdFk ) 62 { 63 this.languageCodeIdFk = languageCodeIdFk; 64 } 65 66 public java.lang.String getName() 67 { 68 return this.name; 69 } 70 public void setName( java.lang.String name ) 71 { 72 this.name = name; 73 } 74 75 public String toString() 76 { 77 StringBuffer str = new StringBuffer ("{"); 78 79 str.append("languageId=" + getLanguageId() + " " + "languageCodeIdFk=" + getLanguageCodeIdFk() + " " + "name=" + getName()); 80 str.append('}'); 81 82 return(str.toString()); 83 } 84 85 public boolean equals( Object pOther ) 86 { 87 if( pOther instanceof LanguageData ) 88 { 89 LanguageData lTest = (LanguageData) pOther; 90 boolean lEquals = true; 91 92 if( this.languageId == null ) 93 { 94 lEquals = lEquals && ( lTest.languageId == null ); 95 } 96 else 97 { 98 lEquals = lEquals && this.languageId.equals( lTest.languageId ); 99 } 100 if( this.languageCodeIdFk == null ) 101 { 102 lEquals = lEquals && ( lTest.languageCodeIdFk == null ); 103 } 104 else 105 { 106 lEquals = lEquals && this.languageCodeIdFk.equals( lTest.languageCodeIdFk ); 107 } 108 if( this.name == null ) 109 { 110 lEquals = lEquals && ( lTest.name == null ); 111 } 112 else 113 { 114 lEquals = lEquals && this.name.equals( lTest.name ); 115 } 116 117 return lEquals; 118 } 119 else 120 { 121 return false; 122 } 123 } 124 125 public int hashCode() 126 { 127 int result = 17; 128 129 result = 37*result + ((this.languageId != null) ? this.languageId.hashCode() : 0); 130 131 result = 37*result + ((this.languageCodeIdFk != null) ? this.languageCodeIdFk.hashCode() : 0); 132 133 result = 37*result + ((this.name != null) ? this.name.hashCode() : 0); 134 135 return result; 136 } 137 138 } 139 | Popular Tags |