01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: */package org.objectweb.speedo.pobjects.collection;
04:
05: import java.util.List;
06:
07: /**
08: *
09: * @author chassase
10: */
11: public class AutoRef {
12: /**
13: * The identifier of the persistent class
14: */
15: private String identifier;
16:
17: /**
18: * A reference an AutoRef instance.
19: */
20: private AutoRef myRef;
21:
22: /**
23: * A collection of AutoRef instances.
24: */
25: private List myRefs;
26:
27: /**
28: * @param identifier
29: */
30: public AutoRef(String identifier) {
31: this .identifier = identifier;
32: }
33:
34: /**
35: * @return Returns the myRef.
36: */
37: public AutoRef getMyRef() {
38: return myRef;
39: }
40:
41: /**
42: * @param myRef The myRef to set.
43: */
44: public void setMyRef(AutoRef myRef) {
45: this .myRef = myRef;
46: }
47:
48: /**
49: * @return Returns the myRefs.
50: */
51: public List getMyRefs() {
52: return myRefs;
53: }
54:
55: /**
56: * @param myRefs The myRefs to set.
57: */
58: public void setMyRefs(List myRefs) {
59: this .myRefs = myRefs;
60: }
61:
62: /**
63: * @return Returns the identifier.
64: */
65: public String getIdentifier() {
66: return identifier;
67: }
68: }
|