1 package org.objectweb.jonas.jtests.beans.relation.tier; 2 3 6 7 public class TierValue extends java.lang.Object implements java.io.Serializable { 8 9 private java.lang.Integer numinttie; 12 13 private boolean numinttieHasBeenSet = false; 14 15 private java.lang.String emailtie; 17 18 private boolean emailtieHasBeenSet = false; 19 20 private java.lang.Integer __pk; 22 23 public TierValue() { 25 } 26 27 public TierValue(TierValue otherValue) { 30 this.numinttie = otherValue.numinttie; 31 numinttieHasBeenSet = true; 32 33 this.emailtie = otherValue.emailtie; 34 emailtieHasBeenSet = true; 35 36 37 } 40 41 44 public java.lang.String getEmailtie() { 46 return this.emailtie; 47 } 48 49 public void setEmailtie(java.lang.String emailtie) { 50 this.emailtie = emailtie; 51 this.emailtieHasBeenSet = true; 52 } 53 54 public boolean emailtieHasBeenSet() { 55 return emailtieHasBeenSet; 56 } 57 58 61 public java.lang.Integer getPrimaryKey() { 62 return __pk; 63 } 64 65 public java.lang.Integer getNuminttie() { 66 return this.numinttie; 67 } 68 69 public void setNuminttie(java.lang.Integer numinttie) { 70 this.numinttie = numinttie; 71 __pk = numinttie; 72 numinttieHasBeenSet = true; 73 74 } 75 76 public void setPrimaryKey(java.lang.Integer numinttie) { 77 setNuminttie(numinttie); 78 } 79 80 protected boolean numinttieHasBeenSet() { 81 return numinttieHasBeenSet; 82 } 83 84 87 public java.lang.Integer getTiephyPK() { 88 return getNuminttie(); 89 } 90 91 public java.lang.Integer getTiemorPK() { 92 return getNuminttie(); 93 } 94 95 99 public String toString() { 100 101 StringBuffer str = new StringBuffer ("{"); 102 103 str.append("{[Tier], "); 104 105 str.append("numinttie" + getNuminttie() + ", "); str.append("emailtie" + getEmailtie() + ", "); str.append("{[Tier]"); 112 return (str.toString()); 113 } 114 115 118 public String toXML() { 119 120 StringBuffer str = new StringBuffer ("{"); 121 str.append("<docTier>"); 122 str.append("<numinttie>" + getNuminttie() + "</numinttie>"); 123 str.append("<emailtie>" + getEmailtie() + "</emailtie>"); 124 str.append("</docTier>"); 125 return (str.toString()); 126 } 127 128 public boolean hasIdentity() { 129 return numinttieHasBeenSet(); 130 } 131 132 public void validateData() throws Exception { 133 if (numinttie == null) throw new Exception ("the field : 'numinttie' must not be null !"); 135 } 136 } | Popular Tags |