KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.ojb.broker;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  *
7  * @author <a HREF="mailto:armin@codeAuLait.de">Armin Waibel</a>
8  * @version $Id: FarAwayClass.java,v 1.4 2003/05/22 19:39:42 arminw Exp $
9  */

10 public class FarAwayClass implements Serializable JavaDoc
11 {
12     private String JavaDoc name;
13     private int id;
14     private String JavaDoc description;
15     private Integer JavaDoc referenceId;
16     private FarAwayReferenceIF reference;
17
18     public int getId()
19     {
20         return id;
21     }
22
23     public void setId(int id)
24     {
25         this.id = id;
26     }
27
28     public FarAwayReferenceIF getReference()
29     {
30         return reference;
31     }
32
33     public void setReference(FarAwayReferenceIF reference)
34     {
35         this.reference = reference;
36     }
37
38     public Integer JavaDoc getReferenceId()
39     {
40         return referenceId;
41     }
42
43     public void setReferenceId(Integer JavaDoc referenceId)
44     {
45         this.referenceId = referenceId;
46     }
47
48     public String JavaDoc getName()
49     {
50         return name;
51     }
52
53     public void setName(String JavaDoc name)
54     {
55         this.name = name;
56     }
57
58     public String JavaDoc getDescription()
59     {
60         return description;
61     }
62
63     public void setDescription(String JavaDoc description)
64     {
65         this.description = description;
66     }
67
68     public String JavaDoc toString()
69     {
70         return this.getClass().getName()+" [ "+"id: "+id+", name: "+name+", description: "+description+
71                         ", reference: "+reference+"]";
72     }
73 }
74
Popular Tags