KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > FarAwayReference


1 package org.apache.ojb.broker;
2
3
4 /**
5  *
6  * @author <a HREF="mailto:armin@codeAuLait.de">Armin Waibel</a>
7  * @version $Id: FarAwayReference.java,v 1.4 2003/06/02 12:52:28 thma Exp $
8  */

9 public class FarAwayReference
10         implements FarAwayReferenceIF
11 {
12     private String JavaDoc name;
13     private int id;
14
15     public int getId()
16     {
17         return id;
18     }
19
20     public void setId(int id)
21     {
22         this.id = id;
23     }
24
25     public String JavaDoc getName()
26     {
27         return name;
28     }
29
30     public void setName(String JavaDoc name)
31     {
32         this.name = name;
33     }
34
35     public String JavaDoc toString()
36     {
37         return this.getClass().getName()+" [ "+"id: "+id+", name: "+name+"]";
38     }
39 }
40
Popular Tags