Added oparent to sdc main
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / resources / data / MigrationTaskEntry.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.be.resources.data;
22
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;
27
28 import java.util.Date;
29
30 @Table(keyspace = "sdcrepository", name = "migrationTasks")
31 public class MigrationTaskEntry {
32
33     @PartitionKey(0)
34     @Column(name = "major_version")
35     private Long majorVersion;
36
37     @ClusteringColumn
38     @Column(name = "minor_version")
39     private Long minorVersion;
40
41     @Column(name = "timestamp")
42     private Date timestamp;
43
44     @Column(name = "task_name")
45     private String taskName;
46
47     @Column(name = "execution_time")
48     private double executionTime;
49
50     @Column(name = "task_status")
51     private String taskStatus;
52
53     @Column(name = "msg")
54     private String message;
55
56     @Column(name = "description")
57     private String description;
58
59     public void setMajorVersion(Long majorVersion) {
60         this.majorVersion = majorVersion;
61     }
62
63     public void setMinorVersion(Long minorVersion) {
64         this.minorVersion = minorVersion;
65     }
66
67     public void setTimestamp(Date timestamp) {
68         this.timestamp = timestamp;
69     }
70
71     public void setTaskName(String taskName) {
72         this.taskName = taskName;
73     }
74
75     public void setTaskStatus(String taskStatus) {
76         this.taskStatus = taskStatus;
77     }
78
79     public void setMessage(String message) {
80         this.message = message;
81     }
82
83     public void setExecutionTime(double executionTime) {
84         this.executionTime = executionTime;
85     }
86
87     public Long getMajorVersion() {
88         return majorVersion;
89     }
90
91     public Long getMinorVersion() {
92         return minorVersion;
93     }
94
95     public Date getTimestamp() {
96         return timestamp;
97     }
98
99     public String getTaskName() {
100         return taskName;
101     }
102
103     public String getTaskStatus() {
104         return taskStatus;
105     }
106
107     public String getMessage() {
108         return message;
109     }
110
111     public double getExecutionTime() {
112         return executionTime;
113     }
114
115     public String getDescription() {
116         return description;
117     }
118
119     public void setDescription(String description) {
120         this.description = description;
121     }
122 }