示例#1
0
  public Object clone() {
    if (this.isBusy) return this;
    this.isBusy = true;

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

    clone.bpsittingsys = this.bpsittingsys;
    clone.bpsittingdias = this.bpsittingdias;
    clone.bpstandingsys = this.bpstandingsys;
    clone.bpstandingdias = this.bpstandingdias;
    clone.timeinterval = this.timeinterval;
    clone.bplyingsys = this.bplyingsys;
    clone.bplyingdias = this.bplyingdias;
    clone.comment = this.comment;
    clone.isValidated = this.isValidated;

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