1 2 package org.objectweb.jonas.jtests.beans.relation.tier; 3 4 7 8 public class TiephyValue extends java.lang.Object implements java.io.Serializable { 9 10 private java.lang.Integer numinttie; 13 14 private boolean numinttieHasBeenSet = false; 15 16 private java.lang.String nomusatie; 18 19 private boolean nomusatieHasBeenSet = false; 20 21 private java.lang.Integer __pk; 23 24 public TiephyValue() { 26 } 27 28 public TiephyValue(TiephyValue otherValue) { 31 this.numinttie = otherValue.numinttie; 32 numinttieHasBeenSet = true; 33 34 this.nomusatie = otherValue.nomusatie; 35 nomusatieHasBeenSet = true; 36 37 } 40 41 44 public java.lang.String getNomusatie() { 46 return this.nomusatie; 47 } 48 49 public void setNomusatie(java.lang.String nomusatie) { 50 this.nomusatie = nomusatie; 51 this.nomusatieHasBeenSet = true; 52 } 53 54 public boolean nomusatieHasBeenSet() { 55 return nomusatieHasBeenSet; 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 getTierPK() { 88 return getNuminttie(); 89 } 90 91 95 public String toString() { 96 97 StringBuffer str = new StringBuffer ("{"); 98 99 str.append("{[Tiephy], "); 100 101 str.append("numinttie" + getNuminttie() + ", "); str.append("nomusatie" + getNomusatie() + ", "); str.append("{[Tiephy]"); 108 return (str.toString()); 109 } 110 111 114 public String toXML() { 115 116 StringBuffer str = new StringBuffer ("{"); 117 str.append("<docTiephy>"); 118 str.append("<numinttie>" + getNuminttie() + "</numinttie>"); 119 str.append("<nomusatie>" + getNomusatie() + "</nomusatie>"); 120 121 str.append("</docTiephy>"); 122 return (str.toString()); 123 } 124 125 public boolean hasIdentity() { 126 return numinttieHasBeenSet(); 127 } 128 129 public void validateData() throws Exception { 130 if (numinttie == null) throw new Exception ("the field : 'numinttie' must not be null !"); 132 if (nomusatie == null) throw new Exception ("the field : 'nomusatie' must not be null !"); 133 } 134 } | Popular Tags |