public int compareTo(Object obj, boolean caseInsensitive) { if (obj == null) { return -1; } if (caseInsensitive) ; // this is to avoid eclipse warning only. if (!(ComplementaryTherapyTreatmentVo.class.isAssignableFrom(obj.getClass()))) { throw new ClassCastException( "A ComplementaryTherapyTreatmentVo object cannot be compared an Object of type " + obj.getClass().getName()); } ComplementaryTherapyTreatmentVo compareObj = (ComplementaryTherapyTreatmentVo) obj; int retVal = 0; if (retVal == 0) { if (this.getID_ComplementaryTherapyTreatment() == null && compareObj.getID_ComplementaryTherapyTreatment() != null) return -1; if (this.getID_ComplementaryTherapyTreatment() != null && compareObj.getID_ComplementaryTherapyTreatment() == null) return 1; if (this.getID_ComplementaryTherapyTreatment() != null && compareObj.getID_ComplementaryTherapyTreatment() != null) retVal = this.getID_ComplementaryTherapyTreatment() .compareTo(compareObj.getID_ComplementaryTherapyTreatment()); } return retVal; }
public Object clone() { if (this.isBusy) return this; this.isBusy = true; ComplementaryTherapyTreatmentVo clone = new ComplementaryTherapyTreatmentVo(this.id, this.version); if (this.clinicalcontact == null) clone.clinicalcontact = null; else clone.clinicalcontact = (ims.core.vo.ClinicalContactShortVo) this.clinicalcontact.clone(); if (this.authoringdatetime == null) clone.authoringdatetime = null; else clone.authoringdatetime = (ims.framework.utils.DateTime) this.authoringdatetime.clone(); if (this.authoringcp == null) clone.authoringcp = null; else clone.authoringcp = (ims.core.vo.Hcp) this.authoringcp.clone(); if (this.complementarytherapy == null) clone.complementarytherapy = null; else clone.complementarytherapy = (ims.therapies.vo.ComplementaryTherapyDetailsVoCollection) this.complementarytherapy.clone(); clone.isValidated = this.isValidated; this.isBusy = false; return clone; }