Пример #1
0
 public boolean equals(Object obj) {
   if (obj == null) return false;
   if (!(obj instanceof ReadAuditVo)) return false;
   ReadAuditVo compareObj = (ReadAuditVo) obj;
   if (this.getAuditDateTime() == null && compareObj.getAuditDateTime() != null) return false;
   if (this.getAuditDateTime() != null && compareObj.getAuditDateTime() == null) return false;
   if (this.getAuditDateTime() != null && compareObj.getAuditDateTime() != null)
     return this.getAuditDateTime().equals(compareObj.getAuditDateTime());
   return super.equals(obj);
 }
Пример #2
0
 public int compareTo(Object obj, boolean caseInsensitive) {
   if (obj == null) {
     return -1;
   }
   if (caseInsensitive) ; // this is to avoid eclipse warning only.
   if (!(ReadAuditVo.class.isAssignableFrom(obj.getClass()))) {
     throw new ClassCastException(
         "A ReadAuditVo object cannot be compared an Object of type " + obj.getClass().getName());
   }
   ReadAuditVo compareObj = (ReadAuditVo) obj;
   int retVal = 0;
   if (retVal == 0) {
     if (this.getAuditDateTime() == null && compareObj.getAuditDateTime() != null) return -1;
     if (this.getAuditDateTime() != null && compareObj.getAuditDateTime() == null) return 1;
     if (this.getAuditDateTime() != null && compareObj.getAuditDateTime() != null)
       retVal = this.getAuditDateTime().compareTo(compareObj.getAuditDateTime());
   }
   return retVal;
 }
Пример #3
0
  public Object clone() {
    if (this.isBusy) return this;
    this.isBusy = true;

    ReadAuditVo clone = new ReadAuditVo();

    if (this.auditdatetime == null) clone.auditdatetime = null;
    else clone.auditdatetime = (ims.framework.utils.DateTime) this.auditdatetime.clone();
    clone.audituser = this.audituser;
    clone.action = this.action;
    if (this.patient == null) clone.patient = null;
    else clone.patient = (ims.core.vo.PatientShort) this.patient.clone();
    clone.hostname = this.hostname;
    clone.location = this.location;
    clone.isValidated = this.isValidated;

    this.isBusy = false;
    return clone;
  }