Development of NETCONF RPCs for tr-069 adapter to
[oam/tr069-adapter.git] / acs / requestprocessor / src / main / java / org / commscope / tr069adapter / acs / requestprocessor / entity / TR069DeviceEntity.java
1 /*
2  * ============LICENSE_START========================================================================
3  * ONAP : tr-069-adapter
4  * =================================================================================================
5  * Copyright (C) 2020 CommScope Inc Intellectual Property.
6  * =================================================================================================
7  * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
8  * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
9  * may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ===============LICENSE_END=======================================================================
17  */
18
19 package org.commscope.tr069adapter.acs.requestprocessor.entity;
20
21 import java.io.Serializable;
22 import java.util.Date;
23
24 import javax.persistence.Column;
25 import javax.persistence.Entity;
26 import javax.persistence.GeneratedValue;
27 import javax.persistence.GenerationType;
28 import javax.persistence.Id;
29 import javax.persistence.Table;
30 import javax.persistence.UniqueConstraint;
31
32 /**
33  * The persistent class for the TR069_DEVICE_ database table.
34  * 
35  */
36 @Entity
37 @Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"}))
38 public class TR069DeviceEntity implements Serializable {
39
40   private static final long serialVersionUID = -2696584252283707720L;
41
42   @Id
43   @GeneratedValue(strategy = GenerationType.AUTO)
44   @Column(name = "ID")
45   private Long id;
46
47   @Column(name = "DEVICE_ID", length = 30)
48   private String deviceId;
49
50   @Column(name = "USER_NAME", length = 256)
51   private String userName;
52
53   @Column(name = "PASSWORD", length = 256)
54   private String password;
55
56   @Column(name = "HW_VERSION", length = 20)
57   private String hwVersion;
58
59   @Column(name = "SW_VERSION", length = 20)
60   private String swVersion;
61
62   @Column(name = "CONNECTION_REQUEST_URL", length = 1024)
63   private String connectionReqURL;
64
65   @Column(name = "LAST_UPDATED_TIME")
66   private Date lastUpdatedTime;
67
68   @Column(name = "LAST_FAILED_ATTEMPT_TIME")
69   private Date lastFailedAttemptTime;
70
71   @Column(name = "CONN_STATUS")
72   private boolean connStatus;
73
74   @Column(name = "ERROR_MESSGAE")
75   private String errorMsg;
76
77   public TR069DeviceEntity() {
78     super();
79   }
80
81   public Long getId() {
82     return id;
83   }
84
85   public void setId(Long id) {
86     this.id = id;
87   }
88
89   public String getDeviceId() {
90     return deviceId;
91   }
92
93   public void setDeviceId(String deviceID) {
94     this.deviceId = deviceID;
95   }
96
97   public String getUserName() {
98     return userName;
99   }
100
101   public void setUserName(String userName) {
102     this.userName = userName;
103   }
104
105   public String getPassword() {
106     return password;
107   }
108
109   public void setPassword(String password) {
110     this.password = password;
111   }
112
113   public String getHwVersion() {
114     return hwVersion;
115   }
116
117   public void setHwVersion(String hwVersion) {
118     this.hwVersion = hwVersion;
119   }
120
121   public String getSwVersion() {
122     return swVersion;
123   }
124
125   public void setSwVersion(String swVersion) {
126     this.swVersion = swVersion;
127   }
128
129   public String getConnectionReqURL() {
130     return connectionReqURL;
131   }
132
133   public void setConnectionReqURL(String connectionReqURL) {
134     this.connectionReqURL = connectionReqURL;
135   }
136
137   public Date getLastUpdatedTime() {
138     return lastUpdatedTime;
139   }
140
141   public void setLastUpdatedTime(Date rowUpdatedTime) {
142     this.lastUpdatedTime = rowUpdatedTime;
143   }
144
145   public Date getLastFailedAttemptTime() {
146     return lastFailedAttemptTime;
147   }
148
149   public void setLastFailedAttemptTime(Date lastFailedAttemptTime) {
150     this.lastFailedAttemptTime = lastFailedAttemptTime;
151   }
152
153   public boolean isConnStatus() {
154     return connStatus;
155   }
156
157   public void setConnStatus(boolean connStatus) {
158     this.connStatus = connStatus;
159   }
160
161   public String getErrorMsg() {
162     return errorMsg;
163   }
164
165   public void setErrorMsg(String errorMsg) {
166     this.errorMsg = errorMsg;
167   }
168
169 }