001: package org.apache.ojb.odmg.shared;
002:
003: import java.io.Serializable;
004: import java.util.Vector;
005:
006: /**
007: * the facade to all TestCases in this package.
008: * @author Thomas Mahler
009: */
010: public class Master implements Serializable {
011: public Integer masterId;
012: public String masterText;
013: public Vector collDetailFKinPK = new Vector();
014: public Vector collDetailFKnoPK = new Vector();
015:
016: public Master(Integer id, String text) {
017: masterId = id;
018: masterText = text;
019: }
020:
021: public Master() {
022: super ();
023: }
024:
025: public String toString() {
026: StringBuffer strBuf = new StringBuffer("Master: masterId = "
027: + masterId);
028: strBuf.append(" collDetailFKinPK + [ ");
029: if (collDetailFKinPK != null) {
030: java.util.Iterator it = collDetailFKinPK.iterator();
031: while (it.hasNext())
032: strBuf.append(it.next().toString() + " ");
033: }
034: strBuf.append("] collDetailFKnoPK [");
035: if (collDetailFKnoPK != null) {
036: java.util.Iterator it = collDetailFKnoPK.iterator();
037: while (it.hasNext())
038: strBuf.append(it.next().toString() + " ");
039: strBuf.append("]");
040: }
041: return strBuf.toString();
042: }
043:
044: /**
045: * Gets the collDetailFKinPK.
046: * @return Returns a java.util.Vector
047: */
048: public Vector getCollDetailFKinPK() {
049: return collDetailFKinPK;
050: }
051:
052: /**
053: * Sets the collDetailFKinPK.
054: * @param collDetailFKinPK The collDetailFKinPK to set
055: */
056: public void setCollDetailFKinPK(java.util.Vector collDetailFKinPK) {
057: this .collDetailFKinPK = collDetailFKinPK;
058: }
059:
060: /**
061: * Gets the collDetailFKnoPK.
062: * @return Returns a java.util.Vector
063: */
064: public Vector getCollDetailFKnoPK() {
065: return collDetailFKnoPK;
066: }
067:
068: /**
069: * Sets the collDetailFKnoPK.
070: * @param collDetailFKnoPK The collDetailFKnoPK to set
071: */
072: public void setCollDetailFKnoPK(java.util.Vector collDetailFKnoPK) {
073: this .collDetailFKnoPK = collDetailFKnoPK;
074: }
075:
076: /**
077: * Gets the masterId.
078: * @return Returns a Integer
079: */
080: public Integer getMasterId() {
081: return masterId;
082: }
083:
084: /**
085: * Sets the masterId.
086: * @param masterId The masterId to set
087: */
088: public void setMasterId(Integer masterId) {
089: this .masterId = masterId;
090: }
091:
092: /**
093: * Gets the masterText.
094: * @return Returns a String
095: */
096: public String getMasterText() {
097: return masterText;
098: }
099:
100: /**
101: * Sets the masterText.
102: * @param masterText The masterText to set
103: */
104: public void setMasterText(String masterText) {
105: this.masterText = masterText;
106: }
107:
108: }
|