2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.resources.data;
23 import com.datastax.driver.mapping.annotations.ClusteringColumn;
24 import com.datastax.driver.mapping.annotations.Column;
25 import com.datastax.driver.mapping.annotations.PartitionKey;
26 import com.datastax.driver.mapping.annotations.Table;
28 import java.util.Date;
30 @Table(keyspace = "sdcrepository", name = "migrationTasks")
31 public class MigrationTaskEntry {
34 @Column(name = "major_version")
35 private Long majorVersion;
38 @Column(name = "minor_version")
39 private Long minorVersion;
41 @Column(name = "timestamp")
42 private Date timestamp;
44 @Column(name = "task_name")
45 private String taskName;
47 @Column(name = "execution_time")
48 private double executionTime;
50 @Column(name = "task_status")
51 private String taskStatus;
54 private String message;
56 @Column(name = "description")
57 private String description;
59 public void setMajorVersion(Long majorVersion) {
60 this.majorVersion = majorVersion;
63 public void setMinorVersion(Long minorVersion) {
64 this.minorVersion = minorVersion;
67 public void setTimestamp(Date timestamp) {
68 this.timestamp = timestamp;
71 public void setTaskName(String taskName) {
72 this.taskName = taskName;
75 public void setTaskStatus(String taskStatus) {
76 this.taskStatus = taskStatus;
79 public void setMessage(String message) {
80 this.message = message;
83 public void setExecutionTime(double executionTime) {
84 this.executionTime = executionTime;
87 public Long getMajorVersion() {
91 public Long getMinorVersion() {
95 public Date getTimestamp() {
99 public String getTaskName() {
103 public String getTaskStatus() {
107 public String getMessage() {
111 public double getExecutionTime() {
112 return executionTime;
115 public String getDescription() {
119 public void setDescription(String description) {
120 this.description = description;