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
index 2193f5a..a7ae38d 100644 (file)
-/*\r
- * ============LICENSE_START========================================================================\r
- * ONAP : tr-069-adapter\r
- * =================================================================================================\r
- * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
- * =================================================================================================\r
- * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
- * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
- * may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
- * either express or implied. See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ===============LICENSE_END=======================================================================\r
- */\r
-\r
-package org.commscope.tr069adapter.acs.requestprocessor.entity;\r
-\r
-import java.io.Serializable;\r
-import java.util.Date;\r
-\r
-import javax.persistence.Column;\r
-import javax.persistence.Entity;\r
-import javax.persistence.GeneratedValue;\r
-import javax.persistence.GenerationType;\r
-import javax.persistence.Id;\r
-import javax.persistence.Table;\r
-import javax.persistence.UniqueConstraint;\r
-\r
-/**\r
- * The persistent class for the TR069_DEVICE_ database table.\r
- * \r
- */\r
-@Entity\r
-@Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"}))\r
-public class TR069DeviceEntity implements Serializable {\r
-\r
-  private static final long serialVersionUID = -2696584252283707720L;\r
-\r
-  @Id\r
-  @GeneratedValue(strategy = GenerationType.AUTO)\r
-  @Column(name = "ID")\r
-  private Long id;\r
-\r
-  @Column(name = "DEVICE_ID", length = 30)\r
-  private String deviceId;\r
-\r
-  @Column(name = "USER_NAME", length = 256)\r
-  private String userName;\r
-\r
-  @Column(name = "PASSWORD", length = 256)\r
-  private String password;\r
-\r
-  @Column(name = "HW_VERSION", length = 20)\r
-  private String hwVersion;\r
-\r
-  @Column(name = "SW_VERSION", length = 20)\r
-  private String swVersion;\r
-\r
-  @Column(name = "CONNECTION_REQUEST_URL", length = 1024)\r
-  private String connectionReqURL;\r
-\r
-  @Column(name = "LAST_UPDATED_TIME")\r
-  private Date lastUpdatedTime;\r
-\r
-  public TR069DeviceEntity() {\r
-    super();\r
-  }\r
-\r
-  public Long getId() {\r
-    return id;\r
-  }\r
-\r
-  public void setId(Long id) {\r
-    this.id = id;\r
-  }\r
-\r
-  public String getDeviceId() {\r
-    return deviceId;\r
-  }\r
-\r
-  public void setDeviceId(String deviceID) {\r
-    this.deviceId = deviceID;\r
-  }\r
-\r
-  public String getUserName() {\r
-    return userName;\r
-  }\r
-\r
-  public void setUserName(String userName) {\r
-    this.userName = userName;\r
-  }\r
-\r
-  public String getPassword() {\r
-    return password;\r
-  }\r
-\r
-  public void setPassword(String password) {\r
-    this.password = password;\r
-  }\r
-\r
-  public String getHwVersion() {\r
-    return hwVersion;\r
-  }\r
-\r
-  public void setHwVersion(String hwVersion) {\r
-    this.hwVersion = hwVersion;\r
-  }\r
-\r
-  public String getSwVersion() {\r
-    return swVersion;\r
-  }\r
-\r
-  public void setSwVersion(String swVersion) {\r
-    this.swVersion = swVersion;\r
-  }\r
-\r
-  public String getConnectionReqURL() {\r
-    return connectionReqURL;\r
-  }\r
-\r
-  public void setConnectionReqURL(String connectionReqURL) {\r
-    this.connectionReqURL = connectionReqURL;\r
-  }\r
-\r
-  public Date getLastUpdatedTime() {\r
-    return lastUpdatedTime;\r
-  }\r
-\r
-  public void setLastUpdatedTime(Date rowUpdatedTime) {\r
-    this.lastUpdatedTime = rowUpdatedTime;\r
-  }\r
-\r
-}\r
+/*
+ * ============LICENSE_START========================================================================
+ * ONAP : tr-069-adapter
+ * =================================================================================================
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.
+ * =================================================================================================
+ * This tr-069-adapter software file is distributed by CommScope Inc 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
+ *
+ * This file 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.
+ * ===============LICENSE_END=======================================================================
+ */
+
+package org.commscope.tr069adapter.acs.requestprocessor.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import javax.persistence.UniqueConstraint;
+
+/**
+ * The persistent class for the TR069_DEVICE_ database table.
+ * 
+ */
+@Entity
+@Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"}))
+public class TR069DeviceEntity implements Serializable {
+
+  private static final long serialVersionUID = -2696584252283707720L;
+
+  @Id
+  @GeneratedValue(strategy = GenerationType.AUTO)
+  @Column(name = "ID")
+  private Long id;
+
+  @Column(name = "DEVICE_ID", length = 30)
+  private String deviceId;
+
+  @Column(name = "USER_NAME", length = 256)
+  private String userName;
+
+  @Column(name = "PASSWORD", length = 256)
+  private String password;
+
+  @Column(name = "HW_VERSION", length = 20)
+  private String hwVersion;
+
+  @Column(name = "SW_VERSION", length = 20)
+  private String swVersion;
+
+  @Column(name = "CONNECTION_REQUEST_URL", length = 1024)
+  private String connectionReqURL;
+
+  @Column(name = "LAST_UPDATED_TIME")
+  private Date lastUpdatedTime;
+
+  @Column(name = "LAST_FAILED_ATTEMPT_TIME")
+  private Date lastFailedAttemptTime;
+
+  @Column(name = "CONN_STATUS")
+  private boolean connStatus;
+
+  @Column(name = "ERROR_MESSGAE")
+  private String errorMsg;
+
+  public TR069DeviceEntity() {
+    super();
+  }
+
+  public Long getId() {
+    return id;
+  }
+
+  public void setId(Long id) {
+    this.id = id;
+  }
+
+  public String getDeviceId() {
+    return deviceId;
+  }
+
+  public void setDeviceId(String deviceID) {
+    this.deviceId = deviceID;
+  }
+
+  public String getUserName() {
+    return userName;
+  }
+
+  public void setUserName(String userName) {
+    this.userName = userName;
+  }
+
+  public String getPassword() {
+    return password;
+  }
+
+  public void setPassword(String password) {
+    this.password = password;
+  }
+
+  public String getHwVersion() {
+    return hwVersion;
+  }
+
+  public void setHwVersion(String hwVersion) {
+    this.hwVersion = hwVersion;
+  }
+
+  public String getSwVersion() {
+    return swVersion;
+  }
+
+  public void setSwVersion(String swVersion) {
+    this.swVersion = swVersion;
+  }
+
+  public String getConnectionReqURL() {
+    return connectionReqURL;
+  }
+
+  public void setConnectionReqURL(String connectionReqURL) {
+    this.connectionReqURL = connectionReqURL;
+  }
+
+  public Date getLastUpdatedTime() {
+    return lastUpdatedTime;
+  }
+
+  public void setLastUpdatedTime(Date rowUpdatedTime) {
+    this.lastUpdatedTime = rowUpdatedTime;
+  }
+
+  public Date getLastFailedAttemptTime() {
+    return lastFailedAttemptTime;
+  }
+
+  public void setLastFailedAttemptTime(Date lastFailedAttemptTime) {
+    this.lastFailedAttemptTime = lastFailedAttemptTime;
+  }
+
+  public boolean isConnStatus() {
+    return connStatus;
+  }
+
+  public void setConnStatus(boolean connStatus) {
+    this.connStatus = connStatus;
+  }
+
+  public String getErrorMsg() {
+    return errorMsg;
+  }
+
+  public void setErrorMsg(String errorMsg) {
+    this.errorMsg = errorMsg;
+  }
+
+}