KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > Master


1 //$Id: Master.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.io.Serializable JavaDoc;
5 import java.math.BigDecimal JavaDoc;
6 import java.util.Collection JavaDoc;
7 import java.util.Date JavaDoc;
8 import java.util.HashSet JavaDoc;
9 import java.util.Set JavaDoc;
10
11 public class Master implements Serializable JavaDoc, Named {
12     private Master otherMaster;
13     private Set JavaDoc details = new HashSet JavaDoc();
14     private Set JavaDoc moreDetails = new HashSet JavaDoc();
15     private Set JavaDoc incoming = new HashSet JavaDoc();
16     private Set JavaDoc outgoing = new HashSet JavaDoc();
17     private String JavaDoc name="master";
18     private Date JavaDoc stamp;
19     private int version;
20     private BigDecimal JavaDoc bigDecimal = new BigDecimal JavaDoc("1234.123");
21     private int x;
22     private Collection JavaDoc allDetails;
23     
24     public int getX() {
25         return x;
26     }
27     public void setX(int x) {
28         this.x = x;
29     }
30     
31     public Set JavaDoc getDetails() {
32         return details;
33     }
34     
35     private void setDetails(Set JavaDoc details) {
36         this.details = details;
37     }
38     
39     public void addDetail(Detail d) {
40         details.add(d);
41     }
42     
43     public void removeDetail(Detail d) {
44         details.remove(d);
45     }
46     
47     public void addIncoming(Master m) {
48         incoming.add(m);
49     }
50     
51     public void removeIncoming(Master m) {
52         incoming.remove(m);
53     }
54     
55     public void addOutgoing(Master m) {
56         outgoing.add(m);
57     }
58     
59     public void removeOutgoing(Master m) {
60         outgoing.remove(m);
61     }
62     
63     public Set JavaDoc getIncoming() {
64         return incoming;
65     }
66     
67     public void setIncoming(Set JavaDoc incoming) {
68         this.incoming = incoming;
69     }
70     
71     public Set JavaDoc getOutgoing() {
72         return outgoing;
73     }
74     
75     public void setOutgoing(Set JavaDoc outgoing) {
76         this.outgoing = outgoing;
77     }
78     
79     public Set JavaDoc getMoreDetails() {
80         return moreDetails;
81     }
82     
83     public void setMoreDetails(Set JavaDoc moreDetails) {
84         this.moreDetails = moreDetails;
85     }
86     
87     public String JavaDoc getName() {
88         return name;
89     }
90     
91     public void setName(String JavaDoc name) {
92         this.name = name;
93     }
94     
95     public Date JavaDoc getStamp() {
96         return stamp;
97     }
98     
99     public void setStamp(Date JavaDoc stamp) {
100         this.stamp = stamp;
101     }
102     
103     public BigDecimal JavaDoc getBigDecimal() {
104         return bigDecimal;
105     }
106     
107     public void setBigDecimal(BigDecimal JavaDoc bigDecimal) {
108         this.bigDecimal = bigDecimal;
109     }
110     
111     /**
112      * @return
113      */

114     public Master getOtherMaster() {
115         return otherMaster;
116     }
117
118     /**
119      * @param master
120      */

121     public void setOtherMaster(Master master) {
122         otherMaster = master;
123     }
124
125     /**
126      * @return Returns the allDetails.
127      */

128     public Collection JavaDoc getAllDetails() {
129         return allDetails;
130     }
131     /**
132      * @param allDetails The allDetails to set.
133      */

134     public void setAllDetails(Collection JavaDoc allDetails) {
135         this.allDetails = allDetails;
136     }
137 }
138
139
140
141
142
143
144
Popular Tags