01: package org.apache.ojb.odmg.shared;
02:
03: import java.io.Serializable;
04:
05: import org.apache.ojb.odmg.shared.TestClassA;
06:
07: /**
08: * This class is used in the TestCase for testing correct foreign-key assignment
09: * when the referenced object happens to be a proxy (i.e. it was loaded before as
10: * a proxy and is now being assigned to another object)
11: * @author <a href="mailto:schneider@mendel.imp.univie.ac.at">Georg Schneider</a>
12: *
13: */
14: public class TestClassAWithBProxy extends TestClassA implements
15: Serializable {
16:
17: private transient TestClassBProxyI bp;
18:
19: public TestClassAWithBProxy() {
20: }
21:
22: /**
23: * Gets the bp.
24: * @return Returns a TestClassBProxy
25: */
26: public TestClassBProxyI getBProxy() {
27: return bp;
28: }
29:
30: /**
31: * Sets the bp.
32: * @param bp The bp to set
33: */
34: public void setBProxy(TestClassBProxyI bp) {
35: this .bp = bp;
36: }
37:
38: /**
39: * Returns the bp.
40: * @return TestClassBProxyI
41: */
42: public TestClassBProxyI getBp() {
43: return bp;
44: }
45:
46: /**
47: * Sets the bp.
48: * @param bp The bp to set
49: */
50: public void setBp(TestClassBProxyI bp) {
51: this.bp = bp;
52: }
53:
54: }
|