Initial source code
[oam/tr069-adapter.git] / acs / requestprocessor / src / main / java / org / commscope / tr069adapter / acs / requestprocessor / entity / TR069DeviceRPCRequestEntity.java
1 /*\r
2  * ============LICENSE_START========================================================================\r
3  * ONAP : tr-069-adapter\r
4  * =================================================================================================\r
5  * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
6  * =================================================================================================\r
7  * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
8  * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
9  * may obtain a copy of the License at\r
10  *\r
11  * http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
14  * either express or implied. See the License for the specific language governing permissions and\r
15  * limitations under the License.\r
16  * ===============LICENSE_END=======================================================================\r
17  */\r
18 \r
19 package org.commscope.tr069adapter.acs.requestprocessor.entity;\r
20 \r
21 import java.io.Serializable;\r
22 import java.util.Date;\r
23 \r
24 import javax.persistence.Column;\r
25 import javax.persistence.Entity;\r
26 import javax.persistence.GeneratedValue;\r
27 import javax.persistence.GenerationType;\r
28 import javax.persistence.Id;\r
29 import javax.persistence.Table;\r
30 \r
31 @Entity\r
32 @Table(name = "TR069_NBI_REQUEST")\r
33 public class TR069DeviceRPCRequestEntity implements Serializable {\r
34 \r
35   private static final long serialVersionUID = 1L;\r
36 \r
37   @Id\r
38   @GeneratedValue(strategy = GenerationType.AUTO)\r
39   private Long id;\r
40 \r
41   @Column(name = "DEVICE_ID", length = 30)\r
42   private String deviceId;\r
43 \r
44   @Column(name = "OPERATION_ID", length = 30)\r
45   private Long operationId;\r
46 \r
47   @Column(name = "OPERATION_CODE", length = 3)\r
48   private Integer opCode;\r
49 \r
50   @Column(name = "ATTRIBUTE_JSON1", length = 4000)\r
51   private String attributeJson1;\r
52 \r
53   @Column(name = "ATTRIBUTE_JSON2", length = 4000)\r
54   private String attributeJson2;\r
55 \r
56   @Column(name = "ATTRIBUTE_JSON3", length = 4000)\r
57   private String attributeJson3;\r
58 \r
59   @Column(name = "REQUEST_TIME_OUT", length = 5)\r
60   private Long requestTimeOut;\r
61 \r
62   @Column(name = "CREATE_TIME")\r
63   private Date createTime;\r
64 \r
65   @Column(name = "IS_PROCESSED", length = 2)\r
66   private Integer isProcessed;\r
67 \r
68   public Long getId() {\r
69     return id;\r
70   }\r
71 \r
72   public void setId(Long id) {\r
73     this.id = id;\r
74   }\r
75 \r
76   public String getDeviceId() {\r
77     return deviceId;\r
78   }\r
79 \r
80   public void setDeviceId(String deviceId) {\r
81     this.deviceId = deviceId;\r
82   }\r
83 \r
84   public Long getOperationId() {\r
85     return operationId;\r
86   }\r
87 \r
88   public void setOperationId(Long operationId) {\r
89     this.operationId = operationId;\r
90   }\r
91 \r
92   public Integer getOpCode() {\r
93     return opCode;\r
94   }\r
95 \r
96   public void setOpCode(Integer opCode) {\r
97     this.opCode = opCode;\r
98   }\r
99 \r
100   public String getAttributeJson1() {\r
101     return attributeJson1;\r
102   }\r
103 \r
104   public void setAttributeJson1(String attributeJson1) {\r
105     this.attributeJson1 = attributeJson1;\r
106   }\r
107 \r
108   public String getAttributeJson2() {\r
109     return attributeJson2;\r
110   }\r
111 \r
112   public void setAttributeJson2(String attributeJson2) {\r
113     this.attributeJson2 = attributeJson2;\r
114   }\r
115 \r
116   public String getAttributeJson3() {\r
117     return attributeJson3;\r
118   }\r
119 \r
120   public void setAttributeJson3(String attributeJson3) {\r
121     this.attributeJson3 = attributeJson3;\r
122   }\r
123 \r
124   public Long getRequestTimeOut() {\r
125     return requestTimeOut;\r
126   }\r
127 \r
128   public void setRequestTimeOut(Long requestTimeOut) {\r
129     this.requestTimeOut = requestTimeOut;\r
130   }\r
131 \r
132   public Date getCreateTime() {\r
133     return createTime;\r
134   }\r
135 \r
136   public void setCreateTime(Date createTime) {\r
137     this.createTime = createTime;\r
138   }\r
139 \r
140   public Integer getIsProcessed() {\r
141     return isProcessed;\r
142   }\r
143 \r
144   public void setIsProcessed(Integer isProcessed) {\r
145     this.isProcessed = isProcessed;\r
146   }\r
147 \r
148 }\r