3ae6ad3dab9afcfa32aa9813874ae6768b1c59d0
[ccsdk/features.git] /
1 /*\r
2  * Copyright © 2017-2018 AT&T Intellectual Property.\r
3  * \r
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\r
5  * in compliance with the License. You may obtain a copy of the License at\r
6  * \r
7  * http://www.apache.org/licenses/LICENSE-2.0\r
8  * \r
9  * Unless required by applicable law or agreed to in writing, software distributed under the License\r
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\r
11  * or implied. See the License for the specific language governing permissions and limitations under\r
12  * the License.\r
13  */\r
14 \r
15 package org.onap.ccsdk.config.data.adaptor.domain;\r
16 \r
17 import java.io.Serializable;\r
18 import java.util.Date;\r
19 import java.util.UUID;\r
20 \r
21 public class TransactionLog implements Serializable {\r
22     private static final long serialVersionUID = 1L;\r
23     \r
24     private String transactionLogId;\r
25     private String requestId;\r
26     private String messageType;\r
27     private Date creationDate;\r
28     private String message;\r
29     \r
30     public TransactionLog() {\r
31         \r
32     }\r
33     \r
34     public TransactionLog(String requestId, String messageType, String message) {\r
35         this.requestId = requestId;\r
36         this.messageType = messageType;\r
37         this.message = message;\r
38     }\r
39     \r
40     @Override\r
41     public String toString() {\r
42         StringBuilder buffer = new StringBuilder("[");\r
43         buffer.append("transactionLogId =" + transactionLogId);\r
44         buffer.append(", requestId =" + requestId);\r
45         buffer.append(", messageType =" + messageType);\r
46         buffer.append(", creationDate =" + creationDate);\r
47         buffer.append("]");\r
48         return buffer.toString();\r
49     }\r
50     \r
51     public String getTransactionLogId() {\r
52         return transactionLogId;\r
53     }\r
54     \r
55     public void setTransactionLogId(String transactionLogId) {\r
56         this.transactionLogId = transactionLogId;\r
57     }\r
58     \r
59     public String getRequestId() {\r
60         return requestId;\r
61     }\r
62     \r
63     public void setRequestId(String requestId) {\r
64         this.requestId = requestId;\r
65     }\r
66     \r
67     public String getMessageType() {\r
68         return messageType;\r
69     }\r
70     \r
71     public void setMessageType(String messageType) {\r
72         this.messageType = messageType;\r
73     }\r
74     \r
75     public Date getCreationDate() {\r
76         return creationDate;\r
77     }\r
78     \r
79     public void setCreationDate(Date creationDate) {\r
80         this.creationDate = creationDate;\r
81     }\r
82     \r
83     public String getMessage() {\r
84         return message;\r
85     }\r
86     \r
87     public void setMessage(String message) {\r
88         this.message = message;\r
89     }\r
90     \r
91     public String getUniqueId() {\r
92         return UUID.randomUUID().toString();\r
93     }\r
94     \r
95 }\r