Changeset 667 for ether_statistics/service
- Timestamp:
- 11/15/12 11:01:02 (12 years ago)
- Location:
- ether_statistics/service
- Files:
-
- 3 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 } -
ether_statistics/service/implementation/service-context.xml
r575 r667 4 4 <beans> 5 5 <bean id="etherServiceTarget" class="com.ether.EtherServiceImpl"> 6 < !--<property name="simulationDAO" ref="refSimulationDAO"/>-->6 <property name="accountDAO" ref="refAccountDAO"/> 7 7 </bean> 8 8 <bean id="etherService" parent="transactionProxy"> -
ether_statistics/service/interface/com/ether/EtherService.java
r572 r667 1 1 package com.ether; 2 3 import com.ether.account.Account; 4 import org.jetbrains.annotations.NotNull; 5 import org.jetbrains.annotations.Nullable; 2 6 3 7 /** 4 8 * @author vmipsl 5 * @date 07 mar 20119 * @date 12 nov. 2012 6 10 */ 7 11 public interface EtherService 8 12 extends Service 9 13 { 10 //@Nullable11 // List<Plateforme> getAllPlateforms()12 //throws ServiceException;14 @Nullable 15 Account getAccountByLogin( @NotNull final String login ) 16 throws ServiceException; 13 17 }
Note: See TracChangeset
for help on using the changeset viewer.