01: package com.triactive.jdo.test;
02:
03: import java.util.Collection;
04:
05: import java.util.Collection;
06: import java.util.HashSet;
07: import java.util.Set;
08:
09: public class CollectionFieldTester {
10: private Set personSet;
11: private Collection personCollection;
12: private Collection primitiveCollection;
13: private Collection inversePrimitiveCollection;
14: private Collection objectCollection;
15: private Collection interfaceCollection;
16:
17: public CollectionFieldTester() {
18: personSet = new HashSet();
19: personCollection = new HashSet();
20: primitiveCollection = new HashSet();
21: inversePrimitiveCollection = new HashSet();
22: objectCollection = new HashSet();
23: interfaceCollection = new HashSet();
24: }
25:
26: public Set getPersonSet() {
27: return this .personSet;
28: }
29:
30: public void setPersonSet(Set s) {
31: this .personSet = s;
32: }
33:
34: public Collection getPersonCollection() {
35: return this .personCollection;
36: }
37:
38: public void setPersonCollection(Collection c) {
39: this .personCollection = c;
40: }
41:
42: public Collection getPrimitiveCollection() {
43: return this .primitiveCollection;
44: }
45:
46: public void setPrimitiveCollection(Collection c) {
47: this .primitiveCollection = c;
48: }
49:
50: public Collection getInversePrimitiveCollection() {
51: return this .inversePrimitiveCollection;
52: }
53:
54: public void setInversePrimitiveCollection(Collection c) {
55: this .inversePrimitiveCollection = c;
56: }
57:
58: public Collection getObjectCollection() {
59: return this .objectCollection;
60: }
61:
62: public void setObjectCollection(Collection c) {
63: this .objectCollection = c;
64: }
65:
66: public Collection getInterfaceCollection() {
67: return this .interfaceCollection;
68: }
69:
70: public void setInterfaceCollection(Collection c) {
71: this .interfaceCollection = c;
72: }
73:
74: /*
75: public void addPerson(Person p)
76: {
77: persons.add(p);
78: }
79: */
80: }
|