KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > test > CollectionFieldTester


1 package com.triactive.jdo.test;
2
3 import java.util.Collection JavaDoc;
4
5 import java.util.Collection JavaDoc;
6 import java.util.HashSet JavaDoc;
7 import java.util.Set JavaDoc;
8
9 public class CollectionFieldTester
10 {
11   private Set JavaDoc personSet;
12   private Collection JavaDoc personCollection;
13   private Collection JavaDoc primitiveCollection;
14   private Collection JavaDoc inversePrimitiveCollection;
15   private Collection JavaDoc objectCollection;
16   private Collection JavaDoc interfaceCollection;
17
18
19   public CollectionFieldTester()
20   {
21       personSet = new HashSet JavaDoc();
22       personCollection = new HashSet JavaDoc();
23       primitiveCollection = new HashSet JavaDoc();
24       inversePrimitiveCollection = new HashSet JavaDoc();
25       objectCollection = new HashSet JavaDoc();
26       interfaceCollection = new HashSet JavaDoc();
27   }
28
29
30   public Set JavaDoc getPersonSet()
31   {
32       return this.personSet;
33   }
34
35   public void setPersonSet(Set JavaDoc s)
36   {
37       this.personSet = s;
38   }
39
40   public Collection JavaDoc getPersonCollection()
41   {
42       return this.personCollection;
43   }
44
45   public void setPersonCollection(Collection JavaDoc c)
46   {
47       this.personCollection = c;
48   }
49
50
51   public Collection JavaDoc getPrimitiveCollection()
52   {
53       return this.primitiveCollection;
54   }
55
56   public void setPrimitiveCollection(Collection JavaDoc c)
57   {
58       this.primitiveCollection = c;
59   }
60
61   public Collection JavaDoc getInversePrimitiveCollection()
62   {
63       return this.inversePrimitiveCollection;
64   }
65
66   public void setInversePrimitiveCollection(Collection JavaDoc c)
67   {
68       this.inversePrimitiveCollection = c;
69   }
70
71   public Collection JavaDoc getObjectCollection()
72   {
73       return this.objectCollection;
74   }
75
76   public void setObjectCollection(Collection JavaDoc c)
77   {
78       this.objectCollection = c;
79   }
80
81   public Collection JavaDoc getInterfaceCollection()
82   {
83       return this.interfaceCollection;
84   }
85
86   public void setInterfaceCollection(Collection JavaDoc c)
87   {
88       this.interfaceCollection = c;
89   }
90
91 /*
92   public void addPerson(Person p)
93   {
94     persons.add(p);
95   }
96 */

97 }
98
Popular Tags