public void setCreatedOn(String createdOn) { this.createdOn = createdOn; try { product.setCreatedOn(CustomDateFormatter.getDateTimeFromString(createdOn)); } catch (ParseException ex) { ex.printStackTrace(); product.setCreatedOn(null); } }
public Date getCreatedDate() { return product.getCreatedDate(); }
public Date getLastUpdated() { return product.getLastUpdated(); }
public CollectedSample getCollectedSample() { return product.getCollectedSample(); }
public void setCreatedDate(Date createdDate) { product.setCreatedDate(createdDate); }
public void setCollectedSample(CollectedSample collectedSample) { product.setCollectedSample(collectedSample); }
public int hashCode() { return product.hashCode(); }
public String getNotes() { return product.getNotes(); }
public String getCollectionNumber() { if (product == null || product.getCollectedSample() == null || product.getCollectedSample().getCollectionNumber() == null) return ""; return product.getCollectedSample().getCollectionNumber(); }
public String toString() { return product.toString(); }
public void setIsDeleted(Boolean isDeleted) { product.setIsDeleted(isDeleted); }
public void setNotes(String notes) { product.setNotes(notes); }
public void setLastUpdatedBy(User lastUpdatedBy) { product.setLastUpdatedBy(lastUpdatedBy); }
public void setCreatedBy(User createdBy) { product.setCreatedBy(createdBy); }
public User getCreatedBy() { return product.getCreatedBy(); }
public void setCollectionNumber(String collectionNumber) { CollectedSample collectedSample = new CollectedSample(); collectedSample.setCollectionNumber(collectionNumber); product.setCollectedSample(collectedSample); }
public User getLastUpdatedBy() { return product.getLastUpdatedBy(); }
public String getStatus() { ProductStatus status = product.getStatus(); if (status == null) return ""; else return product.getStatus().toString(); }
public Boolean getIsDeleted() { return product.getIsDeleted(); }
public void setStatus(String status) { product.setStatus(ProductStatus.valueOf(status)); }
public void setId(Long id) { product.setId(id); }
public Long getId() { return product.getId(); }
public String getCreatedOn() { if (createdOn != null) return createdOn; if (getProduct() == null) return ""; return CustomDateFormatter.getDateTimeString(product.getCreatedOn()); }
public void setLastUpdated(Date lastUpdated) { product.setLastUpdated(lastUpdated); }