summaryrefslogtreecommitdiffstats
path: root/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java
diff options
context:
space:
mode:
Diffstat (limited to 'blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java')
-rw-r--r--blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java49
1 files changed, 26 insertions, 23 deletions
diff --git a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java
index 3ae6ad3da..77235d137 100644
--- a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java
+++ b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/domain/TransactionLog.java
@@ -1,15 +1,18 @@
/*
* Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
*
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.onap.ccsdk.config.data.adaptor.domain;
@@ -20,23 +23,23 @@ import java.util.UUID;
public class TransactionLog implements Serializable {
private static final long serialVersionUID = 1L;
-
+
private String transactionLogId;
private String requestId;
private String messageType;
private Date creationDate;
private String message;
-
+
public TransactionLog() {
-
+
}
-
+
public TransactionLog(String requestId, String messageType, String message) {
this.requestId = requestId;
this.messageType = messageType;
this.message = message;
}
-
+
@Override
public String toString() {
StringBuilder buffer = new StringBuilder("[");
@@ -47,49 +50,49 @@ public class TransactionLog implements Serializable {
buffer.append("]");
return buffer.toString();
}
-
+
public String getTransactionLogId() {
return transactionLogId;
}
-
+
public void setTransactionLogId(String transactionLogId) {
this.transactionLogId = transactionLogId;
}
-
+
public String getRequestId() {
return requestId;
}
-
+
public void setRequestId(String requestId) {
this.requestId = requestId;
}
-
+
public String getMessageType() {
return messageType;
}
-
+
public void setMessageType(String messageType) {
this.messageType = messageType;
}
-
+
public Date getCreationDate() {
return creationDate;
}
-
+
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
-
+
public String getMessage() {
return message;
}
-
+
public void setMessage(String message) {
this.message = message;
}
-
+
public String getUniqueId() {
return UUID.randomUUID().toString();
}
-
+
}