1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * A DBGetResponseEvent is sent in response to a DBGetAction and contains the
21 * entry that was queried.<br>
22 * Available since Asterisk 1.2
23 *
24 * @see net.sf.asterisk.manager.action.DBGetAction
25 * @author srt
26 * @version $Id: DBGetResponseEvent.java,v 1.2 2005/07/16 13:44:36 srt Exp $
27 * @since 0.2
28 */
29 public class DBGetResponseEvent extends ResponseEvent
30 {
31 private String family;
32 private String key;
33 private String val;
34
35 /***
36 * Serial version identifier
37 */
38 private static final long serialVersionUID = -1177773673509373296L;
39
40 /***
41 * @param source
42 */
43 public DBGetResponseEvent(Object source)
44 {
45 super(source);
46 }
47
48 /***
49 * Returns the family of the database entry that was queried.
50 *
51 * @return the family of the database entry that was queried.
52 */
53 public String getFamily()
54 {
55 return family;
56 }
57
58 /***
59 * Sets the family of the database entry that was queried.
60 *
61 * @param family the family of the database entry that was queried.
62 */
63 public void setFamily(String family)
64 {
65 this.family = family;
66 }
67
68 /***
69 * Returns the key of the database entry that was queried.
70 *
71 * @return the key of the database entry that was queried.
72 */
73 public String getKey()
74 {
75 return key;
76 }
77
78 /***
79 * Sets the key of the database entry that was queried.
80 *
81 * @param key the key of the database entry that was queried.
82 */
83 public void setKey(String key)
84 {
85 this.key = key;
86 }
87
88 /***
89 * Returns the value of the database entry that was queried.
90 *
91 * @return the value of the database entry that was queried.
92 */
93 public String getVal()
94 {
95 return val;
96 }
97
98 /***
99 * Sets the value of the database entry that was queried.
100 *
101 * @param val the value of the database entry that was queried.
102 */
103 public void setVal(String val)
104 {
105 this.val = val;
106 }
107 }