01: package org.objectweb.speedo.pobjects.detach.groupama;
02:
03: import java.util.ArrayList;
04: import java.util.Collection;
05:
06: /**
07: * An intervenant has many conventions
08: */
09: public class IntervenantHelper {
10:
11: public IntervenantHelper() {
12: this .conventions = new ArrayList();
13: }
14:
15: /**
16: * PrimaryKey
17: */
18: private int nomep;
19: private Collection conventions;
20:
21: public Collection getConventions() {
22: return conventions;
23: }
24:
25: public int getNomep() {
26: return nomep;
27: }
28:
29: public void setConventions(Collection pConventions) {
30: conventions = pConventions;
31: }
32:
33: public void addConvention(ConventionHelper convention) {
34: if (conventions == null)
35: conventions = new ArrayList();
36: conventions.add(convention);
37: }
38:
39: public void setNomep(int pNomep) {
40: nomep = pNomep;
41: }
42: }
|