Changeset 275 for ether_megapoli/trunk/service
- Timestamp:
- 12/01/11 12:57:50 (13 years ago)
- Location:
- ether_megapoli/trunk/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/service/implementation/com/ether/EtherServiceImpl.java
r268 r275 260 260 } 261 261 262 @Transactional(rollbackFor = Exception.class) 263 public void removeUserById( @NotNull final Integer userId ) 264 throws ServiceException 265 { 266 try 267 { 268 _userDAO.deleteByPrimaryKey( userId ); 269 } 270 catch( PersistenceException e ) 271 { 272 throw new ServiceException( ServiceException.ServiceCode.PERSISTENCE, e ); 273 } 274 } 275 276 @Transactional(rollbackFor = Exception.class) 277 public void updateUser( @NotNull final User user ) 278 throws ServiceException 279 { 280 try 281 { 282 _userDAO.update( user ); 283 } 284 catch( PersistenceException e ) 285 { 286 throw new ServiceException( ServiceException.ServiceCode.PERSISTENCE, e ); 287 } 288 } 289 262 290 @Required 263 291 public void setPlateformDAO( final PlateformDAO plateformDAO ) -
ether_megapoli/trunk/service/interface/com/ether/EtherService.java
r268 r275 77 77 List<User> getUsersByState( @NotNull UserState userState ) 78 78 throws ServiceException; 79 80 void removeUserById( @NotNull final Integer userId ) 81 throws ServiceException; 82 83 void updateUser( @NotNull final User user ) 84 throws ServiceException; 79 85 }
Note: See TracChangeset
for help on using the changeset viewer.