01: package org.apache.ojb.broker;
02:
03: /**
04: * This class is used to test extent aware path expressions
05: * @author <a href="leandro@ibnetwork.com.br">Leandro Rodrigo Saad Cruz</a>
06: */
07: public abstract class BaseQualifierImpl implements Qualifier {
08: private int id;
09:
10: private String name;
11:
12: public BaseQualifierImpl() {
13: }
14:
15: /**
16: * @param id
17: */
18: public BaseQualifierImpl(int id) {
19: this .id = id;
20: }
21:
22: /**
23: * @see org.apache.ojb.broker.Qualifier#getId()
24: */
25: public int getId() {
26: return id;
27: }
28:
29: /**
30: * @see org.apache.ojb.broker.Qualifier#setId(int)
31: */
32: public void setId(int id) {
33: this .id = id;
34: }
35:
36: /**
37: * @see org.apache.ojb.broker.Qualifier#getName()
38: */
39: public String getName() {
40: return name;
41: }
42:
43: /**
44: * @see org.apache.ojb.broker.Qualifier#setName(java.lang.String)
45: */
46: public void setName(String name) {
47: this .name = name;
48: }
49:
50: public String toString() {
51: return getClass().getName() + "(" + id + ")";
52: }
53:
54: }
|