KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > odmg > shared > TestClassAWithBProxy


1 package org.apache.ojb.odmg.shared;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.apache.ojb.odmg.shared.TestClassA;
6
7 /**
8  * This class is used in the TestCase for testing correct foreign-key assignment
9  * 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 Serializable JavaDoc
15 {
16
17     private transient TestClassBProxyI bp;
18
19     public TestClassAWithBProxy()
20     {
21     }
22     
23     /**
24      * Gets the bp.
25      * @return Returns a TestClassBProxy
26      */

27     public TestClassBProxyI getBProxy()
28     {
29         return bp;
30     }
31
32     /**
33      * Sets the bp.
34      * @param bp The bp to set
35      */

36     public void setBProxy(TestClassBProxyI bp)
37     {
38         this.bp = bp;
39     }
40     
41     /**
42      * Returns the bp.
43      * @return TestClassBProxyI
44      */

45     public TestClassBProxyI getBp()
46     {
47         return bp;
48     }
49
50     /**
51      * Sets the bp.
52      * @param bp The bp to set
53      */

54     public void setBp(TestClassBProxyI bp)
55     {
56         this.bp = bp;
57     }
58
59 }
60
Popular Tags