View Javadoc
1   // license-header java merge-point
2   /**
3    * This is only generated once! It will never be overwritten.
4    * You can (and have to!) safely modify it by hand.
5    */
6   package org.andromda.timetracker.service;
7   
8   import java.util.Collection;
9   import org.andromda.timetracker.domain.UserDao;
10  import org.andromda.timetracker.vo.UserVO;
11  
12  /**
13   * @see org.andromda.timetracker.service.UserService
14   */
15  public class UserServiceImpl
16      extends UserServiceBase
17  {
18      /**
19       * @return userVOs
20       * @throws Exception
21       * @see org.andromda.timetracker.service.UserService#getAllUsers()
22       */
23      // Use this implementation for UML2 model with returnParameter * multiplicity
24      /*@SuppressWarnings("unchecked")
25      protected Collection<UserVO> handleGetAllUsers()
26          throws Exception
27      {
28          return (Collection<UserVO>) getUserDao().loadAll(UserDao.TRANSFORM_USERVO);
29      */
30      @Override
31      protected UserVO[] handleGetAllUsers()
32          throws Exception
33      {
34          Collection<?> userVOs = getUserDao().loadAll(UserDao.TRANSFORM_USERVO);
35          return userVOs.toArray(new UserVO[userVOs.size()]);
36      }
37  }