public int compareTo(Object obj, boolean caseInsensitive) { if (obj == null) { return -1; } if (caseInsensitive) ; // this is to avoid eclipse warning only. if (!(SleepFindingsVo.class.isAssignableFrom(obj.getClass()))) { throw new ClassCastException( "A SleepFindingsVo object cannot be compared an Object of type " + obj.getClass().getName()); } SleepFindingsVo compareObj = (SleepFindingsVo) obj; int retVal = 0; if (retVal == 0) { if (this.getID_SleepFindings() == null && compareObj.getID_SleepFindings() != null) return -1; if (this.getID_SleepFindings() != null && compareObj.getID_SleepFindings() == null) return 1; if (this.getID_SleepFindings() != null && compareObj.getID_SleepFindings() != null) retVal = this.getID_SleepFindings().compareTo(compareObj.getID_SleepFindings()); } return retVal; }
public Object clone() { if (this.isBusy) return this; this.isBusy = true; SleepFindingsVo clone = new SleepFindingsVo(this.id, this.version); if (this.finding == null) clone.finding = null; else clone.finding = (ims.spinalinjuries.vo.lookups.SleepFindings) this.finding.clone(); if (this.answer == null) clone.answer = null; else clone.answer = (ims.core.vo.lookups.YesNoUnknown) this.answer.clone(); clone.isValidated = this.isValidated; this.isBusy = false; return clone; }