Changeset 394 for trunk/grails-app/services
- Timestamp:
- Feb 20, 2010, 2:49:40 PM (15 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateBulkDataService.groovy
r291 r394 175 175 targetStartDate: today] 176 176 177 taskResult = taskService. create(p)177 taskResult = taskService.save(p) 178 178 } 179 179 … … 198 198 durationMinute: durationMinute1] 199 199 200 entryResult = taskService. createEntry(p)200 entryResult = taskService.saveEntry(p) 201 201 202 202 } -
trunk/grails-app/services/CreateDataService.groovy
r393 r394 656 656 targetStartDate: dateUtilService.today] 657 657 658 taskResult = taskService. create(p)658 taskResult = taskService.save(p) 659 659 660 660 //Task #2 … … 668 668 parentTask: Task.get(1)] 669 669 670 taskResult = taskService. create(p)670 taskResult = taskService.save(p) 671 671 672 672 //Task #3 … … 680 680 parentTask: Task.get(1)] 681 681 682 taskResult = taskService. create(p)682 taskResult = taskService.save(p) 683 683 684 684 //Task #4 … … 692 692 parentTask: Task.get(1)] 693 693 694 taskResult = taskService. create(p)694 taskResult = taskService.save(p) 695 695 696 696 //Task #5 … … 703 703 targetStartDate: dateUtilService.today - 6] 704 704 705 taskResult = taskService. create(p)705 taskResult = taskService.save(p) 706 706 707 707 //Task #6 … … 714 714 targetStartDate: dateUtilService.today] 715 715 716 taskResult = taskService. create(p)716 taskResult = taskService.save(p) 717 717 } 718 718 … … 746 746 durationMinute: 20] 747 747 748 entryResult = taskService. createEntry(p)748 entryResult = taskService.saveEntry(p) 749 749 750 750 //Entry #2 … … 754 754 durationMinute: 30] 755 755 756 entryResult = taskService. createEntry(p)756 entryResult = taskService.saveEntry(p) 757 757 758 758 //Entry #3 … … 762 762 durationMinute: 20] 763 763 764 entryResult = taskService. createEntry(p)764 entryResult = taskService.saveEntry(p) 765 765 } 766 766 -
trunk/grails-app/services/TaskService.groovy
r291 r394 33 33 * @returns A map containing result.error=true (if any error) and result.taskInstance. 34 34 */ 35 def create(params) {35 def save(params) { 36 36 Task.withTransaction { status -> 37 37 def result = [:] … … 122 122 123 123 } //end withTransaction 124 } // end create()124 } // end save() 125 125 126 126 /** … … 170 170 171 171 // Create the sub task and return the result. 172 result = create(p)172 result = save(p) 173 173 174 174 } // end createSubTask() … … 179 179 * @returns A map containing result.error=true (if any error), result.entryInstance and result.taskId. 180 180 */ 181 def createEntry(params) {181 def saveEntry(params) { 182 182 Task.withTransaction { status -> 183 183 def result = [:] … … 244 244 245 245 } //end withTransaction 246 } // end create()246 } // end saveEntry() 247 247 248 248 /**
Note: See TracChangeset
for help on using the changeset viewer.