1 // license-header java merge-point 2 // 3 // Generated by SessionBeanImpl.vsl in andromda-ejb3-cartridge on 08/05/2014 14:24:56. 4 // Modify as necessary. If deleted it will be regenerated. 5 // 6 package org.andromda.timetracker.service; 7 8 import java.util.List; 9 import org.andromda.timetracker.vo.TimecardSearchCriteriaVO; 10 import org.andromda.timetracker.vo.TimecardSummaryVO; 11 12 /** 13 * @see TimeTrackingServiceBase 14 * 15 * Remember to manually configure the local business interface this bean implements if originally you only 16 * defined the remote business interface. However, this change is automatically reflected in the ejb-jar.xml. 17 * 18 * Do not specify the javax.ejb.Stateless annotation 19 * Instead, define the session bean in the ejb-jar.xml descriptor 20 * @javax.ejb.Stateless 21 */ 22 // Uncomment to enable webservices for TimeTrackingServiceBean 23 // @javax.jws.WebService(endpointInterface = "org.andromda.timetracker.service.TimeTrackingServiceWSInterface", serviceName = "TimeTrackingService") 24 public class TimeTrackingServiceBean 25 extends TimeTrackingServiceBase 26 implements TimeTrackingServiceRemote 27 { 28 // --------------- Constructors --------------- 29 30 /** 31 * Default constructor extending base class default constructor 32 */ 33 public TimeTrackingServiceBean() 34 { 35 super(); 36 } 37 38 // -------- Business Methods Impl -------------- 39 40 /** 41 * @see TimeTrackingServiceBase#findTimecards(TimecardSearchCriteriaVO) 42 */ 43 @Override 44 protected TimecardSummaryVO[] handleFindTimecards(TimecardSearchCriteriaVO criteria) 45 throws Exception 46 { 47 List<?> timecards = this.getTimecardDao().findByCriteria(criteria); 48 this.getTimecardDao().toTimecardSummaryVOCollection(timecards); 49 return timecards.toArray(new TimecardSummaryVO[0]); 50 } 51 52 // -------- Lifecycle Callback Implementation -------------- 53 }