- Timestamp:
- 11/15/12 11:01:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_statistics/service/implementation/com/ether/EtherServiceImpl.java
r572 r667 1 1 package com.ether; 2 2 3 import com.ether.account.Account; 4 import com.ether.dao.AccountDAO; 3 5 import org.apache.commons.logging.Log; 4 6 import org.apache.commons.logging.LogFactory; 7 import org.jetbrains.annotations.NotNull; 8 import org.jetbrains.annotations.Nullable; 9 import org.springframework.beans.factory.annotation.Required; 10 import org.springframework.transaction.annotation.Transactional; 5 11 6 12 /** … … 11 17 implements EtherService 12 18 { 13 //@Nullable14 //@Transactional(readOnly = true)15 // public List<Plateforme> getAllPlateforms()16 //throws ServiceException17 //{18 //try19 //{20 // return _plateformDAO.getAllPlateforms();21 //}22 //catch( PersistenceException e )23 //{24 //throw new ServiceException( ServiceException.ServiceCode.PLATEFORM_NOT_FOUND, e );25 //}26 //}27 // 19 @Nullable 20 @Transactional(readOnly = true) 21 public Account getAccountByLogin( @NotNull final String login ) 22 throws ServiceException 23 { 24 try 25 { 26 return _accountDAO.getAccountByLogin( login ); 27 } 28 catch( PersistenceException e ) 29 { 30 throw new ServiceException( ServiceException.ServiceCode.PLATEFORM_NOT_FOUND, e ); 31 } 32 } 33 28 34 // @NotNull 29 35 // @Transactional(rollbackFor = Exception.class) … … 41 47 // } 42 48 49 @Required 50 public void setAccountDAO( final AccountDAO accountDAO ) 51 { 52 _accountDAO = accountDAO; 53 } 54 43 55 private static final Log LOGGER = LogFactory.getLog( EtherServiceImpl.class ); 56 57 private AccountDAO _accountDAO; 44 58 }
Note: See TracChangeset
for help on using the changeset viewer.