01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package org.objectweb.speedo.pobjects.relations;
18:
19: import java.util.Collection;
20: import java.util.ArrayList;
21:
22: /**
23: *
24: * @author S.Chassande-Barrioz
25: */
26: public class D {
27:
28: private Long ident;
29:
30: private String name;
31:
32: private C c; // one one relation, reverse = d
33:
34: private Collection cs; // many many relation, reverse = ds
35:
36: private C nc; // one many relation, reverse = nds
37:
38: public D() {
39: }
40:
41: public D(String name) {
42: this .name = name;
43: this .cs = new ArrayList();
44: }
45:
46: public Long getIdent() {
47: return ident;
48: }
49:
50: public void setIdent(Long ident) {
51: this .ident = ident;
52: }
53:
54: public String getName() {
55: return name;
56: }
57:
58: public void setName(String name) {
59: this .name = name;
60: }
61:
62: public C getC() {
63: return c;
64: }
65:
66: public void setC(C c) {
67: this .c = c;
68: }
69:
70: public Collection getCs() {
71: return cs;
72: }
73:
74: public void setCs(Collection cs) {
75: this .cs = cs;
76: }
77:
78: public C getNc() {
79: return nc;
80: }
81:
82: public void setNc(C nc) {
83: this.nc = nc;
84: }
85: }
|