コード例 #1
0
 public int compareTo(Object obj, boolean caseInsensitive) {
   if (obj == null) {
     return -1;
   }
   if (caseInsensitive) ; // this is to avoid eclipse warning only.
   if (!(ClinicalNotesFilterVo.class.isAssignableFrom(obj.getClass()))) {
     throw new ClassCastException(
         "A ClinicalNotesFilterVo object cannot be compared an Object of type "
             + obj.getClass().getName());
   }
   ClinicalNotesFilterVo compareObj = (ClinicalNotesFilterVo) obj;
   int retVal = 0;
   if (retVal == 0) {
     if (this.getDiscipline() == null && compareObj.getDiscipline() != null) return -1;
     if (this.getDiscipline() != null && compareObj.getDiscipline() == null) return 1;
     if (this.getDiscipline() != null && compareObj.getDiscipline() != null)
       retVal = this.getDiscipline().compareTo(compareObj.getDiscipline());
   }
   return retVal;
 }
コード例 #2
0
  public Object clone() {
    if (this.isBusy) return this;
    this.isBusy = true;

    ClinicalNotesFilterVo clone = new ClinicalNotesFilterVo(this.id, this.version);

    if (this.discipline == null) clone.discipline = null;
    else clone.discipline = (ims.core.vo.lookups.HcpDisType) this.discipline.clone();
    if (this.datefrom == null) clone.datefrom = null;
    else clone.datefrom = (ims.framework.utils.DateTime) this.datefrom.clone();
    if (this.dateto == null) clone.dateto = null;
    else clone.dateto = (ims.framework.utils.DateTime) this.dateto.clone();
    if (this.recordinguser == null) clone.recordinguser = null;
    else clone.recordinguser = (ims.core.vo.MemberOfStaffShortVo) this.recordinguser.clone();
    if (this.status == null) clone.status = null;
    else clone.status = (ims.core.vo.lookups.ClinicalNotesStatus) this.status.clone();
    if (this.patient == null) clone.patient = null;
    else clone.patient = (ims.core.vo.PatientShort) this.patient.clone();
    clone.episodeofcare = this.episodeofcare;
    clone.carecontext = this.carecontext;
    if (this.notetype == null) clone.notetype = null;
    else clone.notetype = (ims.core.vo.lookups.ClinicalNoteType) this.notetype.clone();
    clone.forreview = this.forreview;
    if (this.forreviewdiscipline == null) clone.forreviewdiscipline = null;
    else
      clone.forreviewdiscipline = (ims.core.vo.lookups.HcpDisType) this.forreviewdiscipline.clone();
    if (this.authoringhcp == null) clone.authoringhcp = null;
    else clone.authoringhcp = (ims.core.vo.Hcp) this.authoringhcp.clone();
    clone.isValidated = this.isValidated;

    this.isBusy = false;
    return clone;
  }