KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Holder.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.util.List JavaDoc;
5 import java.util.Set JavaDoc;
6
7 public class Holder implements Named {
8     private String JavaDoc id;
9     private List JavaDoc ones;
10     private Foo[] fooArray;
11     private Set JavaDoc foos;
12     private String JavaDoc name;
13     private Holder otherHolder;
14     
15     public Holder() {
16     }
17     public Holder(String JavaDoc name) {
18         this.name=name;
19     }
20     
21     /**
22      * Returns the fooArray.
23      * @return Foo[]
24      */

25     public Foo[] getFooArray() {
26         return fooArray;
27     }
28     
29     /**
30      * Returns the foos.
31      * @return Set
32      */

33     public Set JavaDoc getFoos() {
34         return foos;
35     }
36     
37     /**
38      * Sets the fooArray.
39      * @param fooArray The fooArray to set
40      */

41     public void setFooArray(Foo[] fooArray) {
42         this.fooArray = fooArray;
43     }
44     
45     /**
46      * Sets the foos.
47      * @param foos The foos to set
48      */

49     public void setFoos(Set JavaDoc foos) {
50         this.foos = foos;
51     }
52     
53     /**
54      * Returns the id.
55      * @return String
56      */

57     public String JavaDoc getId() {
58         return id;
59     }
60     
61     /**
62      * Sets the id.
63      * @param id The id to set
64      */

65     public void setId(String JavaDoc id) {
66         this.id = id;
67     }
68     
69     /**
70      * Returns the name.
71      * @return String
72      */

73     public String JavaDoc getName() {
74         return name;
75     }
76     
77     /**
78      * Sets the name.
79      * @param name The name to set
80      */

81     public void setName(String JavaDoc name) {
82         this.name = name;
83     }
84     
85     /**
86      * Returns the ones.
87      * @return List
88      */

89     public List JavaDoc getOnes() {
90         return ones;
91     }
92     
93     /**
94      * Sets the ones.
95      * @param ones The ones to set
96      */

97     public void setOnes(List JavaDoc ones) {
98         this.ones = ones;
99     }
100     
101     public Holder getOtherHolder() {
102         return otherHolder;
103     }
104
105     public void setOtherHolder(Holder holder) {
106         otherHolder = holder;
107     }
108
109 }
110
111
112
113
114
115
116
Popular Tags