2 * Copyright © 2017-2018 AT&T Intellectual Property.
\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
7 * http://www.apache.org/licenses/LICENSE-2.0
\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
15 package org.onap.ccsdk.config.data.adaptor.domain;
\r
17 import java.io.Serializable;
\r
18 import java.util.Date;
\r
19 import java.util.UUID;
\r
21 public class TransactionLog implements Serializable {
\r
22 private static final long serialVersionUID = 1L;
\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
30 public TransactionLog() {
\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
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
48 return buffer.toString();
\r
51 public String getTransactionLogId() {
\r
52 return transactionLogId;
\r
55 public void setTransactionLogId(String transactionLogId) {
\r
56 this.transactionLogId = transactionLogId;
\r
59 public String getRequestId() {
\r
63 public void setRequestId(String requestId) {
\r
64 this.requestId = requestId;
\r
67 public String getMessageType() {
\r
71 public void setMessageType(String messageType) {
\r
72 this.messageType = messageType;
\r
75 public Date getCreationDate() {
\r
76 return creationDate;
\r
79 public void setCreationDate(Date creationDate) {
\r
80 this.creationDate = creationDate;
\r
83 public String getMessage() {
\r
87 public void setMessage(String message) {
\r
88 this.message = message;
\r
91 public String getUniqueId() {
\r
92 return UUID.randomUUID().toString();
\r