Update db process part
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / db / bean / VnfmJobExecutionInfo.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16  
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.db.bean;
18
19 import java.io.Serializable;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import javax.persistence.Table;
27
28
29 @Entity
30 @Table(name = "vnfm_job_execution_info")
31 public class VnfmJobExecutionInfo implements Serializable {
32         private static final long serialVersionUID = -288015953900428312L;
33
34         @Id
35         @GeneratedValue(strategy=GenerationType.AUTO)
36         @Column(name = "job_id")
37         private long jobId;
38         
39         @Column(name = "vnfm_execution_id")
40         private String vnfmExecutionId;
41         
42         @Column(name = "vnf_instance_id")
43         private String vnfInstanceId;
44         
45         @Column(name = "vnfm_interface_name")
46         private String vnfmInterfceName;
47         
48         @Column(name = "status")
49         private String status;
50
51         public long getJobId() {
52                 return jobId;
53         }
54
55         public void setJobId(long jobId) {
56                 this.jobId = jobId;
57         }
58
59         public String getVnfmExecutionId() {
60                 return vnfmExecutionId;
61         }
62
63         public void setVnfmExecutionId(String vnfmExecutionId) {
64                 this.vnfmExecutionId = vnfmExecutionId;
65         }
66
67         public String getVnfInstanceId() {
68                 return vnfInstanceId;
69         }
70
71         public void setVnfInstanceId(String vnfInstanceId) {
72                 this.vnfInstanceId = vnfInstanceId;
73         }
74
75         public String getVnfmInterfceName() {
76                 return vnfmInterfceName;
77         }
78
79         public void setVnfmInterfceName(String vnfmInterfceName) {
80                 this.vnfmInterfceName = vnfmInterfceName;
81         }
82
83         public String getStatus() {
84                 return status;
85         }
86
87         public void setStatus(String status) {
88                 this.status = status;
89         }
90         
91         @Override
92         public String toString()
93         {
94                 return " VnfmJobRecord: [ "
95                                 + super.toString()      
96                                 + ", jobId = " + jobId      
97                                 + ", vnfInstanceId = " + vnfInstanceId       
98                                 + ", vnfmExecutionId = " + vnfmExecutionId        
99                                 + ", vnfmInterfceName = " + vnfmInterfceName  
100                                 + ", status = " + status   
101                                 + "]";
102         
103         }
104         
105         
106 }