KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > store > kahadaptor > ReferenceRecord


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
4  * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
5  * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
6  * License. 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 distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  */

14
15 package org.apache.activemq.store.kahadaptor;
16
17 import org.apache.activemq.store.ReferenceStore.ReferenceData;
18
19 public class ReferenceRecord{
20
21     private String JavaDoc messageId;
22     private ReferenceData data;
23
24     public ReferenceRecord(){
25     }
26
27     public ReferenceRecord(String JavaDoc messageId,ReferenceData data){
28         this.messageId=messageId;
29         this.data=data;
30     }
31
32     
33     /**
34      * @return the data
35      */

36     public ReferenceData getData(){
37         return this.data;
38     }
39
40     
41     /**
42      * @param data the data to set
43      */

44     public void setData(ReferenceData data){
45         this.data=data;
46     }
47
48     
49     /**
50      * @return the messageId
51      */

52     public String JavaDoc getMessageId(){
53         return this.messageId;
54     }
55
56     
57     /**
58      * @param messageId the messageId to set
59      */

60     public void setMessageId(String JavaDoc messageId){
61         this.messageId=messageId;
62     }
63     
64     public String JavaDoc toString() {
65         return "ReferenceRecord(id=" + messageId + ",data=" + data +")";
66     }
67 }
68
Popular Tags