1 package net.sf.appstatus.batch.jdbc; 2 3 import java.util.Date; 4 5 public class BdBatch { 6 7 private String currentItem; 8 9 private String currentTask; 10 11 private Date endDate; 12 13 private String group; 14 15 private long itemCount; 16 17 private String lastMessage; 18 19 private Date lastUpdate; 20 21 private String name; 22 23 private Float progress; 24 25 private String reject; 26 27 private Date startDate; 28 29 private String status; 30 31 private Boolean success; 32 33 private String uuid; 34 35 public String getCurrentItem() { 36 return currentItem; 37 } 38 39 public String getCurrentTask() { 40 return currentTask; 41 } 42 43 public Date getEndDate() { 44 return endDate; 45 } 46 47 public String getGroup() { 48 return group; 49 } 50 51 public long getItemCount() { 52 return itemCount; 53 } 54 55 public String getLastMessage() { 56 return lastMessage; 57 } 58 59 public Date getLastUpdate() { 60 return lastUpdate; 61 } 62 63 public String getName() { 64 return name; 65 } 66 67 public Float getProgress() { 68 return progress; 69 } 70 71 public String getReject() { 72 return reject; 73 } 74 75 public Date getStartDate() { 76 return startDate; 77 } 78 79 public String getStatus() { 80 return status; 81 } 82 83 public Boolean getSuccess() { 84 return success; 85 } 86 87 public String getUuid() { 88 return uuid; 89 } 90 91 public void setCurrentItem(String currentItem) { 92 this.currentItem = currentItem; 93 } 94 95 public void setCurrentTask(String currentTask) { 96 this.currentTask = currentTask; 97 } 98 99 public void setEndDate(Date endDate) { 100 this.endDate = endDate; 101 } 102 103 public void setGroup(String group) { 104 this.group = group; 105 } 106 107 public void setItemCount(long itemCount) { 108 this.itemCount = itemCount; 109 } 110 111 public void setLastMessage(String lastMessage) { 112 this.lastMessage = lastMessage; 113 } 114 115 public void setLastUpdate(Date lastUpdate) { 116 this.lastUpdate = lastUpdate; 117 } 118 119 public void setName(String name) { 120 this.name = name; 121 } 122 123 public void setProgress(Float progress) { 124 this.progress = progress; 125 } 126 127 public void setReject(String reject) { 128 this.reject = reject; 129 } 130 131 public void setStartDate(Date startDate) { 132 this.startDate = startDate; 133 } 134 135 public void setStatus(String status) { 136 this.status = status; 137 } 138 139 public void setSuccess(Boolean success) { 140 this.success = success; 141 } 142 143 public void setUuid(String id) { 144 this.uuid = id; 145 } 146 147 @Override 148 public int hashCode() { 149 final int prime = 31; 150 int result = 1; 151 result = prime * result + ((uuid == null) ? 0 : uuid.hashCode()); 152 return result; 153 } 154 155 @Override 156 public boolean equals(Object obj) { 157 if (this == obj) { 158 return true; 159 } 160 if (obj == null) { 161 return false; 162 } 163 if (getClass() != obj.getClass()) { 164 return false; 165 } 166 BdBatch other = (BdBatch) obj; 167 if (uuid == null) { 168 if (other.uuid != null) { 169 return false; 170 } 171 } else if (!uuid.equals(other.uuid)) { 172 return false; 173 } 174 return true; 175 } 176 177 178 179 }