View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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 }