Ejemplo n.º 1
0
 /** All field constructor */
 public Task(
     Integer id,
     Integer userId,
     String title,
     String content,
     java.math.BigDecimal goalMoney,
     String startTime,
     String endTime,
     Integer minSupporter,
     String place,
     Timestamp createdTime,
     Integer visibleType,
     Integer joinType,
     Integer type,
     Integer status) {
   // primary keys
   setId(id);
   // attributes
   setTitle(title);
   setContent(content);
   setGoalMoney(goalMoney);
   setStartTime(startTime);
   setEndTime(endTime);
   setMinSupporter(minSupporter);
   setPlace(place);
   setCreatedTime(createdTime);
   setVisibleType(visibleType);
   setJoinType(joinType);
   setType(type);
   setStatus(status);
   // parents
   this.userId = new User();
   this.userId.setId(userId);
   setUserId_(userId);
 }
Ejemplo n.º 2
0
 /** @param info */
 public void updateTask(
     String taskID,
     String name,
     String description,
     int duration,
     int startTime,
     int endTime,
     double percentCompleted,
     HashMap<String, Resource> requiredResources,
     HashMap<String, Task> predecessors,
     Task parent) {
   // TODO implement here
   setID(taskID);
   setName(name);
   setDescription(description);
   setDuration(duration);
   setStartTime(startTime);
   setEndTime(endTime);
   setPercentCompleted(percentCompleted);
   // setDeliverables(deliverables);
   setRequiredResources(requiredResources);
   setPredecessors(predecessors);
   setParent(parent);
 }