KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > odmg > shared > Master


1 package org.apache.ojb.odmg.shared;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.Vector JavaDoc;
5
6 /**
7  * the facade to all TestCases in this package.
8  * @author Thomas Mahler
9  */

10 public class Master implements Serializable JavaDoc
11 {
12     public Integer JavaDoc masterId;
13     public String JavaDoc masterText;
14     public Vector JavaDoc collDetailFKinPK = new Vector JavaDoc();
15     public Vector JavaDoc collDetailFKnoPK = new Vector JavaDoc();
16
17     public Master(Integer JavaDoc id, String JavaDoc text)
18     {
19         masterId = id;
20         masterText = text;
21     }
22
23     public Master()
24     {
25         super();
26     }
27
28
29     public String JavaDoc toString()
30     {
31         StringBuffer JavaDoc strBuf = new StringBuffer JavaDoc("Master: masterId = " + masterId);
32         strBuf.append(" collDetailFKinPK + [ ");
33         if (collDetailFKinPK != null)
34         {
35             java.util.Iterator JavaDoc 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 JavaDoc it = collDetailFKnoPK.iterator();
43             while (it.hasNext())
44                 strBuf.append(it.next().toString() + " ");
45             strBuf.append("]");
46         }
47         return strBuf.toString();
48     }
49     /**
50      * Gets the collDetailFKinPK.
51      * @return Returns a java.util.Vector
52      */

53     public Vector JavaDoc getCollDetailFKinPK()
54     {
55         return collDetailFKinPK;
56     }
57
58     /**
59      * Sets the collDetailFKinPK.
60      * @param collDetailFKinPK The collDetailFKinPK to set
61      */

62     public void setCollDetailFKinPK(java.util.Vector JavaDoc collDetailFKinPK)
63     {
64         this.collDetailFKinPK = collDetailFKinPK;
65     }
66
67     /**
68      * Gets the collDetailFKnoPK.
69      * @return Returns a java.util.Vector
70      */

71     public Vector JavaDoc getCollDetailFKnoPK()
72     {
73         return collDetailFKnoPK;
74     }
75
76     /**
77      * Sets the collDetailFKnoPK.
78      * @param collDetailFKnoPK The collDetailFKnoPK to set
79      */

80     public void setCollDetailFKnoPK(java.util.Vector JavaDoc collDetailFKnoPK)
81     {
82         this.collDetailFKnoPK = collDetailFKnoPK;
83     }
84
85     /**
86      * Gets the masterId.
87      * @return Returns a Integer
88      */

89     public Integer JavaDoc getMasterId()
90     {
91         return masterId;
92     }
93
94     /**
95      * Sets the masterId.
96      * @param masterId The masterId to set
97      */

98     public void setMasterId(Integer JavaDoc masterId)
99     {
100         this.masterId = masterId;
101     }
102
103     /**
104      * Gets the masterText.
105      * @return Returns a String
106      */

107     public String JavaDoc getMasterText()
108     {
109         return masterText;
110     }
111
112     /**
113      * Sets the masterText.
114      * @param masterText The masterText to set
115      */

116     public void setMasterText(String JavaDoc masterText)
117     {
118         this.masterText = masterText;
119     }
120
121 }
122
Popular Tags