Changeset 541 for geisa/persistence
- Timestamp:
- 07/27/12 17:42:03 (12 years ago)
- Location:
- geisa/persistence
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
geisa/persistence/implementation/com/ether/dao/IsotopeG03DAOImpl.java
r536 r541 47 47 48 48 @NotNull 49 public List<IsotopeG03> getTransitionsByIsotopeG03NameByTransitionLower( final String isotopeName, final Float spectralRangeLower, final Float spectralRangeUpper , final String transitionLower)49 public Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper , final String transitionLower) 50 50 throws PersistenceException 51 51 { 52 final DetachedCriteria criteria = DetachedCriteria.forClass( IsotopeG03.class ); 53 criteria.add( Restrictions.eq( "chMoleIsot", isotopeName ) ); 54 criteria.add( Restrictions.ge( "wavenbMax", spectralRangeLower) ); 55 criteria.add( Restrictions.le( "wavenbMin", spectralRangeUpper) ); 56 criteria.add( Restrictions.eq( "codeQuantLower",transitionLower ) ); 57 return selectAllByCriteria( IsotopeG03.class, criteria ); 52 53 final DetachedCriteria criteria = DetachedCriteria.forClass( IsotopeG03.class ) 54 .add( Restrictions.in( "chMoleIsot", isotopesSelectedNameList ) ) 55 .add( Restrictions.ge( "wavenbMax", spectralRangeLower ) ) 56 .add( Restrictions.le( "wavenbMin", spectralRangeUpper ) ) 57 .add( Restrictions.eq( "codeQuantLower",transitionLower ) ); 58 criteria.setProjection( Projections.distinct( Projections.property( "codeQuantUpper" ) )); 59 60 final List<String> transitions = selectAllByCriteria( String.class, criteria ); 61 return new HashSet<String>( transitions ); 58 62 } 59 63 -
geisa/persistence/implementation/com/ether/dao/IsotopeG09DAOImpl.java
r536 r541 26 26 } 27 27 28 @NotNull 29 public Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper , final String transitionLower) 30 throws PersistenceException 31 { 32 33 final DetachedCriteria criteria = DetachedCriteria.forClass( IsotopeG09.class ) 34 .add( Restrictions.in( "chMoleIsot", isotopesSelectedNameList ) ) 35 .add( Restrictions.ge( "wavenbMax", spectralRangeLower ) ) 36 .add( Restrictions.le( "wavenbMin", spectralRangeUpper ) ) 37 .add( Restrictions.eq( "codeQuantLower",transitionLower ) ); 38 criteria.setProjection( Projections.distinct( Projections.property( "codeQuantUpper" ) )); 39 40 final List<String> transitions = selectAllByCriteria( String.class, criteria ); 41 return new HashSet<String>( transitions ); 42 } 28 43 29 44 @NotNull -
geisa/persistence/implementation/com/ether/dao/IsotopeIasiG03DAOImpl.java
r536 r541 1 1 package com.ether.dao; 2 2 3 import com.ether.IsotopeG09; 3 4 import com.ether.IsotopeIasiG03; 4 5 … … 25 26 { 26 27 super( IsotopeIasiG03.class ); 28 } 29 30 @NotNull 31 public Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper , final String transitionLower) 32 throws PersistenceException 33 { 34 35 final DetachedCriteria criteria = DetachedCriteria.forClass( IsotopeIasiG03.class ) 36 .add( Restrictions.in( "chMoleIsot", isotopesSelectedNameList ) ) 37 .add( Restrictions.ge( "wavenbMax", spectralRangeLower ) ) 38 .add( Restrictions.le( "wavenbMin", spectralRangeUpper ) ) 39 .add( Restrictions.eq( "codeQuantLower",transitionLower ) ); 40 criteria.setProjection( Projections.distinct( Projections.property( "codeQuantUpper" ) )); 41 42 final List<String> transitions = selectAllByCriteria( String.class, criteria ); 43 return new HashSet<String>( transitions ); 27 44 } 28 45 -
geisa/persistence/implementation/com/ether/dao/IsotopeIasiG09DAOImpl.java
r536 r541 25 25 super( IsotopeIasiG09.class ); 26 26 } 27 28 @NotNull 29 public Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper , final String transitionLower) 30 throws PersistenceException 31 { 32 33 final DetachedCriteria criteria = DetachedCriteria.forClass( IsotopeIasiG09.class ) 34 .add( Restrictions.in( "chMoleIsot", isotopesSelectedNameList ) ) 35 .add( Restrictions.ge( "wavenbMax", spectralRangeLower ) ) 36 .add( Restrictions.le( "wavenbMin", spectralRangeUpper ) ) 37 .add( Restrictions.eq( "codeQuantLower",transitionLower ) ); 38 criteria.setProjection( Projections.distinct( Projections.property( "codeQuantUpper" ) )); 39 40 final List<String> transitions = selectAllByCriteria( String.class, criteria ); 41 return new HashSet<String>( transitions ); 42 } 43 44 27 45 28 46 @NotNull -
geisa/persistence/interface/com/ether/dao/IsotopeG03DAO.java
r536 r541 28 28 29 29 @NotNull 30 List<IsotopeG03> getTransitionsByIsotopeG03NameByTransitionLower( final String isotopeName,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower)30 Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 31 31 throws PersistenceException; 32 32 -
geisa/persistence/interface/com/ether/dao/IsotopeG09DAO.java
r536 r541 18 18 { 19 19 @NotNull 20 Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 21 throws PersistenceException; 22 23 @NotNull 20 24 Set<String> getTransitionsLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 21 25 throws PersistenceException; -
geisa/persistence/interface/com/ether/dao/IsotopeIasiG03DAO.java
r536 r541 18 18 // @Nullable 19 19 // Plateform getPlateformById( @NotNull final Integer plateformId ) throws PersistenceException; 20 @NotNull 21 Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 22 throws PersistenceException; 20 23 21 24 -
geisa/persistence/interface/com/ether/dao/IsotopeIasiG09DAO.java
r536 r541 17 17 extends DomainAccessObject<IsotopeIasiG09, Integer> 18 18 { 19 @NotNull 20 Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 21 throws PersistenceException; 22 23 19 24 @NotNull 20 25 Set<String> getTransitionsLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 21 26 throws PersistenceException; 22 27 23 28 @NotNull 24 29 Set<String> getTransitionsUpper( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 25 30 throws PersistenceException;
Note: See TracChangeset
for help on using the changeset viewer.