Changeset 542 for geisa/service
- Timestamp:
- 07/30/12 18:23:29 (12 years ago)
- Location:
- geisa/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
geisa/service/implementation/com/ether/GeisaServiceImpl.java
r541 r542 51 51 } 52 52 53 @NotNull 54 @Transactional(readOnly = true) 55 public List<Pair> getTransitionsLU( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) 56 throws ServiceException 57 { 58 try 59 { 60 return _isotopeG03DAO.getTransitionsLU( isotopeNameArray, spectralRangeLower, spectralRangeUpper ); 61 } 62 catch( PersistenceException e ) 63 { 64 throw new ServiceException( ServiceException.ServiceCode.ISOTOPE_NOT_FOUND, e ); 65 } 66 } 53 67 54 68 55 @NotNull … … 89 76 } 90 77 } 78 79 @NotNull 80 @Transactional(readOnly = true) 81 public Set<String> getTransitionsUpperByTransitionUpper( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionUpper) 82 throws ServiceException 83 { 84 try 85 { 86 if(geisaSelectedDatabase.equals( IsotopeG03.class.toString() )) 87 return _isotopeG03DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 88 else if(geisaSelectedDatabase.equals( IsotopeG09.class.toString() )) 89 return _isotopeG09DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 90 else if(geisaSelectedDatabase.equals( IsotopeIasiG03.class.toString() )) 91 return _isotopeIasiG03DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 92 else 93 return _isotopeIasiG09DAO.getTransitionsUpperByTransitionUpper( isotopesSelectedNameList, spectralRangeLower, spectralRangeUpper, transitionUpper ); 94 95 96 } 97 catch( PersistenceException e ) 98 { 99 throw new ServiceException( ServiceException.ServiceCode.ISOTOPE_NOT_FOUND, e ); 100 } 101 } 102 103 91 104 92 105 @NotNull -
geisa/service/interface/com/ether/GeisaService.java
r541 r542 21 21 List<IsotopeG03> getTransitionsByIsotopeG03Name( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) throws ServiceException; 22 22 23 @NotNull24 List<Pair> getTransitionsLU( final List<String> isotopeNameArray, final Float spectralRangeLower, final Float spectralRangeUpper ) throws ServiceException;25 23 26 24 @NotNull 27 25 Set<String> getTransitionsUpperByTransitionLower( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower ) 28 26 throws ServiceException; 27 28 @NotNull 29 Set<String> getTransitionsUpperByTransitionUpper( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionUpper ) 30 throws ServiceException; 31 29 32 @NotNull 30 33 Set<String> getTransitionsLower( final Object geisaSelectedDatabase, final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper )
Note: See TracChangeset
for help on using the changeset viewer.