1 package org.apache.ojb.odmg.shared; 2 3 import java.io.Serializable ; 4 import java.util.Vector ; 5 6 10 public class Master implements Serializable 11 { 12 public Integer masterId; 13 public String masterText; 14 public Vector collDetailFKinPK = new Vector (); 15 public Vector collDetailFKnoPK = new Vector (); 16 17 public Master(Integer id, String text) 18 { 19 masterId = id; 20 masterText = text; 21 } 22 23 public Master() 24 { 25 super(); 26 } 27 28 29 public String toString() 30 { 31 StringBuffer strBuf = new StringBuffer ("Master: masterId = " + masterId); 32 strBuf.append(" collDetailFKinPK + [ "); 33 if (collDetailFKinPK != null) 34 { 35 java.util.Iterator it = collDetailFKinPK.iterator(); 36 while (it.hasNext()) 37 strBuf.append(it.next().toString() + " "); 38 } 39 strBuf.append("] collDetailFKnoPK ["); 40 if (collDetailFKnoPK != null) 41 { 42 java.util.Iterator it = collDetailFKnoPK.iterator(); 43 while (it.hasNext()) 44 strBuf.append(it.next().toString() + " "); 45 strBuf.append("]"); 46 } 47 return strBuf.toString(); 48 } 49 53 public Vector getCollDetailFKinPK() 54 { 55 return collDetailFKinPK; 56 } 57 58 62 public void setCollDetailFKinPK(java.util.Vector collDetailFKinPK) 63 { 64 this.collDetailFKinPK = collDetailFKinPK; 65 } 66 67 71 public Vector getCollDetailFKnoPK() 72 { 73 return collDetailFKnoPK; 74 } 75 76 80 public void setCollDetailFKnoPK(java.util.Vector collDetailFKnoPK) 81 { 82 this.collDetailFKnoPK = collDetailFKnoPK; 83 } 84 85 89 public Integer getMasterId() 90 { 91 return masterId; 92 } 93 94 98 public void setMasterId(Integer masterId) 99 { 100 this.masterId = masterId; 101 } 102 103 107 public String getMasterText() 108 { 109 return masterText; 110 } 111 112 116 public void setMasterText(String masterText) 117 { 118 this.masterText = masterText; 119 } 120 121 } 122 | Popular Tags |