Esempio n. 1
0
 /* Creates and returns a copy of this object. */
 public Object clone() {
   Tasks bean = new Tasks();
   bean.taskId = this.taskId;
   bean.storyFk = this.storyFk;
   int taskCommentLength = -1;
   if (this.taskComment != null) taskCommentLength = this.taskComment.length;
   if (taskCommentLength > 0) {
     byte[] taskCommentArray = new byte[taskCommentLength];
     bean.taskComment = taskCommentArray;
     System.arraycopy(this.taskComment, 0, taskCommentArray, 0, taskCommentLength);
   }
   bean.taskStatusFk = this.taskStatusFk;
   bean.taskType = this.taskType;
   if (this.tDateCreation != null)
     bean.tDateCreation = (java.util.Date) this.tDateCreation.clone();
   if (this.tDateInprogress != null)
     bean.tDateInprogress = (java.util.Date) this.tDateInprogress.clone();
   if (this.tDateValidation != null)
     bean.tDateValidation = (java.util.Date) this.tDateValidation.clone();
   if (this.tDateDone != null) bean.tDateDone = (java.util.Date) this.tDateDone.clone();
   bean.onairTime = this.onairTime;
   bean.estimatedTime = this.estimatedTime;
   bean.doneTime = this.doneTime;
   bean.personFk = this.personFk;
   bean.visible = this.visible;
   return bean;
 }