2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
3 * Modifications Copyright © 2018 IBM.
\r
5 * Licensed under the Apache License, Version 2.0 (the "License");
\r
6 * you may not use this file except in compliance with the License.
\r
7 * You may obtain a copy of the License at
\r
9 * http://www.apache.org/licenses/LICENSE-2.0
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an "AS IS" BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
18 package org.onap.ccsdk.features.data.adaptor.domain;
\r
20 import java.io.Serializable;
\r
21 import java.util.Date;
\r
22 import java.util.UUID;
\r
24 public class TransactionLog implements Serializable {
\r
25 private static final long serialVersionUID = 1L;
\r
27 private String transactionLogId;
\r
28 private String requestId;
\r
29 private String messageType;
\r
30 private Date creationDate;
\r
31 private String message;
\r
33 public TransactionLog() {
\r
37 public TransactionLog(String requestId, String messageType, String message) {
\r
38 this.requestId = requestId;
\r
39 this.messageType = messageType;
\r
40 this.message = message;
\r
44 public String toString() {
\r
45 StringBuilder buffer = new StringBuilder("[");
\r
46 buffer.append("transactionLogId =" + transactionLogId);
\r
47 buffer.append(", requestId =" + requestId);
\r
48 buffer.append(", messageType =" + messageType);
\r
49 buffer.append(", creationDate =" + creationDate);
\r
51 return buffer.toString();
\r
54 public String getTransactionLogId() {
\r
55 return transactionLogId;
\r
58 public void setTransactionLogId(String transactionLogId) {
\r
59 this.transactionLogId = transactionLogId;
\r
62 public String getRequestId() {
\r
66 public void setRequestId(String requestId) {
\r
67 this.requestId = requestId;
\r
70 public String getMessageType() {
\r
74 public void setMessageType(String messageType) {
\r
75 this.messageType = messageType;
\r
78 public Date getCreationDate() {
\r
79 return creationDate;
\r
82 public void setCreationDate(Date creationDate) {
\r
83 this.creationDate = creationDate;
\r
86 public String getMessage() {
\r
90 public void setMessage(String message) {
\r
91 this.message = message;
\r
94 public String getUniqueId() {
\r
95 return UUID.randomUUID().toString();
\r