Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. /**
  2. * @author RMehdi, GLeao Class that represents a table from the database.
  3. */
  4. @Entity
  5. @Table(name = "v_logp_nav_01")
  6. public class VStockCorrection implements Serializable {
  7.  
  8. /**
  9. * Serial ID that manage the beans.
  10. */
  11. private static final long serialVersionUID = 1L;
  12.  
  13. /**
  14. * ATRIBUTES
  15. */
  16. @Column(name = "WAREHOUSE")
  17. private String warehouse;
  18.  
  19. @Column(name = "OWNER")
  20. private String owner;
  21.  
  22. @Column(name = "status")
  23. private String status;
  24.  
  25. @Column(name = "ARTICLE")
  26. private String article;
  27.  
  28. @Column(name = "QTY")
  29. private Long qty;
  30.  
  31. @Column(name = "BATCHES")
  32. private String batches;
  33.  
  34. @Column(name = "RECEPTION_DATE")
  35. private Date dtReception;
  36.  
  37. @Column(name = "EXPIRATION_DATE")
  38. private Date dtExpiration;
  39.  
  40. @Column(name = "DELIVERY_NUMBER")
  41. private String deliveryNum;
  42.  
  43. @Column(name = "BILL_NUMBER")
  44. private String billNum;
  45.  
  46. /**
  47. * Constructor without arguments
  48. */
  49. public VStockCorrection() {
  50. }
  51.  
  52. /**
  53. * Constructor with arguments when a object from this class is generated.
  54. *
  55. * @param warehouse Represents a warehouse code in the system
  56. * @param owner Represents a owner code in the system
  57. * @param status Represent the status of the process in the system.
  58. * @param article Represents an article code in the system.
  59. * @param qty Represents the quantity of products in the stock.
  60. * @param batches Represents the number of batches in the stock.
  61. * @param dtReception Reception date of products by the client.
  62. * @param dtExpiration Expiration date of the products in the stock.
  63. * @param deliveryNum Represents a delivery code on the system.
  64. * @param billNum Represents a bill code on the system.
  65. */
  66. public VStockCorrection(String warehouse, String owner, String status, String article, Long qty, String batches,
  67. Date dtReception, Date dtExpiration, String deliveryNum, String billNum) {
  68.  
  69. this.warehouse = warehouse;
  70. this.owner = owner;
  71. this.status = status;
  72. this.article = article;
  73. this.qty = qty;
  74. this.batches = batches;
  75. this.dtReception = dtReception;
  76. this.dtExpiration = dtExpiration;
  77. this.deliveryNum = deliveryNum;
  78. this.billNum = billNum;
  79. }
  80.  
  81. /**
  82. * GETTER'S AND SETTER'S
  83. */
  84.  
  85. /**
  86. * @return current warehouse id.
  87. */
  88. public String getWarehouse() {
  89. return warehouse;
  90. }
  91.  
  92. /**
  93. * @param warehouse Must composed by 0 to 9 numeric values. Samples: 100
  94. */
  95. public void setWarehouse(String warehouse) {
  96. this.warehouse = warehouse;
  97. }
  98.  
  99. /**
  100. * @return current owner id.
  101. */
  102. public String getOwner() {
  103. return owner;
  104. }
  105.  
  106. /**
  107. * @param owner Must be composed by characters A to Z. Samples: MIDSID
  108. */
  109. public void setOwner(String owner) {
  110. this.owner = owner;
  111. }
  112.  
  113. /**
  114. * @return current status value.
  115. */
  116. public String getStatus() {
  117. return status;
  118. }
  119.  
  120. /**
  121. * @param status Must composed by 0 to 9 numeric values. Samples: 90, 100, 45
  122. */
  123. public void setStatus(String status) {
  124. this.status = status;
  125. }
  126.  
  127. /**
  128. * @return current article id value
  129. */
  130. public String getArticle() {
  131. return article;
  132. }
  133.  
  134. /**
  135. * @param article Must composed by 0 to 9 numeric values. Samples: 01, 024, 010001
  136. */
  137. public void setArticle(String article) {
  138. this.article = article;
  139. }
  140.  
  141. /**
  142. * @return current quantity of products in the systems.
  143. */
  144. public Long getQty() {
  145. return qty;
  146. }
  147.  
  148. /**
  149. * @param qty Must composed by 0 to 9 numeric values. Samples: 5, 2535, 150.5
  150. */
  151. public void setQty(Long qty) {
  152. this.qty = qty;
  153. }
  154.  
  155. /**
  156. * @return current number of batches in the system.
  157. */
  158. public String getBatches() {
  159. return batches;
  160. }
  161.  
  162. /**
  163. * @param batches Must composed by 0 to 9 numeric values. Samples: 01, 140620190920, 063
  164. */
  165. public void setBatches(String batches) {
  166. this.batches = batches;
  167. }
  168.  
  169. /**
  170. * @return current reception date from the client.
  171. */
  172. public Date getDtReception() {
  173. return dtReception;
  174. }
  175.  
  176. /**
  177. * @param dtReception Must be a valid Date value and can't be in a future only past and current dates. Samples: 22/01/2018, 2019-01-22
  178. */
  179. public void setDtReception(Date dtReception) {
  180. this.dtReception = dtReception;
  181. }
  182.  
  183. /**
  184. * @return current expiration date from the stored product.
  185. */
  186. public Date getDtExpired() {
  187. return dtExpiration;
  188. }
  189.  
  190. /**
  191. * @param dtExpiration Must be a valid Date value and can be in future date values. Samples: 22/01/2019, 2021-01-22
  192. */
  193. public void setDtExpired(Date dtExpiration) {
  194. this.dtExpiration = dtExpiration;
  195. }
  196.  
  197. /**
  198. * @return current delivery number from the order in the system.
  199. */
  200. public String getDeliveryNum() {
  201. return deliveryNum;
  202. }
  203.  
  204. /**
  205. * @param deliveryNum Must composed by 0 to 9 numeric values. Samples:
  206. */
  207. public void setDeliveryNum(String deliveryNum) {
  208. this.deliveryNum = deliveryNum;
  209. }
  210.  
  211. /**
  212. * @return current bill number from the order in the system.
  213. */
  214. public String getBillNum() {
  215. return billNum;
  216. }
  217.  
  218. /**
  219. * @param billNum Must composed by 0 to 9 numeric values. Samples:
  220. */
  221. public void setBillNum(String billNum) {
  222. this.billNum = billNum;
  223. }
  224.  
  225. /**
  226. * A String return method that generate a inside log for the developers or other internal checks.
  227. */
  228. @Override
  229. public String toString() {
  230. return String.format(
  231. "VUnplannedInboundStockConfirmation [warehouse=%s, owner=%s, status=%s, article=%s, qty=%s, batches=%s, dtEeception=%s, dtExpired=%s, deliveryNum=%s, billNum=%s]",
  232. warehouse, owner, status, article, qty, batches, dtReception, dtExpiration, deliveryNum, billNum);
  233. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement