1 19 20 package za.org.coefficient.statistics.data; 21 22 26 public class ModuleStatisticsData implements java.io.Serializable { 27 29 private Long id; 30 private long carryOverCompleteCount; 31 private long carryOverCreateCount; 32 private long carryOverUpdateCount; 33 private long completeCount; 34 private long createCount; 35 private long updateCount; 36 37 39 public ModuleStatisticsData() { 40 } 41 42 44 49 public void setCarryOverCompleteCount(long argCarryOverCompleteCount) { 50 this.carryOverCompleteCount = argCarryOverCompleteCount; 51 } 52 53 60 public long getCarryOverCompleteCount() { 61 return this.carryOverCompleteCount; 62 } 63 64 69 public void setCarryOverCreateCount(long argCarryOverCreateCount) { 70 this.carryOverCreateCount = argCarryOverCreateCount; 71 } 72 73 80 public long getCarryOverCreateCount() { 81 return this.carryOverCreateCount; 82 } 83 84 89 public void setCarryOverUpdateCount(long argCarryOverUpdateCount) { 90 this.carryOverUpdateCount = argCarryOverUpdateCount; 91 } 92 93 100 public long getCarryOverUpdateCount() { 101 return this.carryOverUpdateCount; 102 } 103 104 109 public void setCompleteCount(long argCompleteCount) { 110 this.completeCount = argCompleteCount; 111 } 112 113 120 public long getCompleteCount() { 121 return this.completeCount; 122 } 123 124 129 public void setCreateCount(long argCreateCount) { 130 this.createCount = argCreateCount; 131 } 132 133 140 public long getCreateCount() { 141 return this.createCount; 142 } 143 144 149 public void setId(Long argId) { 150 this.id = argId; 151 } 152 153 160 public Long getId() { 161 return this.id; 162 } 163 164 169 public void setUpdateCount(long argUpdateCount) { 170 this.updateCount = argUpdateCount; 171 } 172 173 180 public long getUpdateCount() { 181 return this.updateCount; 182 } 183 184 public long calculateStats() { 185 long retVal = 0; 186 187 retVal = 189 carryOverCompleteCount + completeCount + carryOverCreateCount 190 + createCount + carryOverUpdateCount + updateCount; 191 192 return retVal; 193 } 194 195 public boolean equals(Object other) { 196 ModuleStatisticsData o = (ModuleStatisticsData) other; 197 198 return (this != null) && (o != null) 199 && (((id == null) && (o.id == null)) || id.equals(o.id)) 200 && (createCount == o.createCount) && (updateCount == o.updateCount) 201 && (completeCount == o.completeCount); 202 } 203 } 204 | Popular Tags |