KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.ojb.broker;
2
3 /**
4  * This class is used to test extent aware path expressions
5  * @author <a HREF="leandro@ibnetwork.com.br">Leandro Rodrigo Saad Cruz</a>
6  */

7 public abstract class BaseQualifierImpl
8     implements Qualifier
9 {
10     private int id;
11     
12     private String JavaDoc name;
13
14     public BaseQualifierImpl()
15     {
16     }
17     
18     /**
19      * @param id
20      */

21     public BaseQualifierImpl(int id)
22     {
23         this.id = id;
24     }
25
26     
27     /**
28      * @see org.apache.ojb.broker.Qualifier#getId()
29      */

30     public int getId()
31     {
32         return id;
33     }
34
35     /**
36      * @see org.apache.ojb.broker.Qualifier#setId(int)
37      */

38     public void setId(int id)
39     {
40         this.id = id;
41     }
42
43     /**
44      * @see org.apache.ojb.broker.Qualifier#getName()
45      */

46     public String JavaDoc getName()
47     {
48         return name;
49     }
50
51     /**
52      * @see org.apache.ojb.broker.Qualifier#setName(java.lang.String)
53      */

54     public void setName(String JavaDoc name)
55     {
56         this.name = name;
57     }
58     
59     public String JavaDoc toString()
60     {
61         return getClass().getName() + "("+id+")";
62     }
63
64 }
65
Popular Tags