1
2
3
4
5
6 package org.andromda.timetracker.service;
7
8 import java.util.List;
9 import org.andromda.timetracker.domain.Timecard;
10 import org.andromda.timetracker.vo.TimecardSearchCriteriaVO;
11 import org.andromda.timetracker.vo.TimecardSummaryVO;
12
13
14
15
16 public class TimeTrackingServiceImpl
17 extends TimeTrackingServiceBase
18 {
19
20
21
22
23
24
25 @Override
26 protected TimecardSummaryVO[] handleFindTimecards(TimecardSearchCriteriaVO criteria)
27 throws Exception
28 {
29 List<Timecard> timecards = getTimecardDao().findByCriteria(criteria);
30 getTimecardDao().toTimecardSummaryVOCollection(timecards);
31 return timecards.toArray(new TimecardSummaryVO[timecards.size()]);
32 }
33 }