Changeset 541 for geisa/persistence


Ignore:
Timestamp:
07/27/12 17:42:03 (12 years ago)
Author:
npipsl
Message:

Début raffraichissement menu transition quand on clique dessus

Location:
geisa/persistence
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • geisa/persistence/implementation/com/ether/dao/IsotopeG03DAOImpl.java

    r536 r541  
    4747 
    4848    @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) 
    5050            throws PersistenceException 
    5151    { 
    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 ); 
    5862    } 
    5963 
  • geisa/persistence/implementation/com/ether/dao/IsotopeG09DAOImpl.java

    r536 r541  
    2626    } 
    2727 
     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    } 
    2843 
    2944    @NotNull 
  • geisa/persistence/implementation/com/ether/dao/IsotopeIasiG03DAOImpl.java

    r536 r541  
    11package com.ether.dao; 
    22 
     3import com.ether.IsotopeG09; 
    34import com.ether.IsotopeIasiG03; 
    45 
     
    2526    { 
    2627        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 ); 
    2744    } 
    2845 
  • geisa/persistence/implementation/com/ether/dao/IsotopeIasiG09DAOImpl.java

    r536 r541  
    2525        super( IsotopeIasiG09.class ); 
    2626    } 
     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 
    2745 
    2846    @NotNull 
  • geisa/persistence/interface/com/ether/dao/IsotopeG03DAO.java

    r536 r541  
    2828 
    2929    @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) 
    3131            throws PersistenceException; 
    3232 
  • geisa/persistence/interface/com/ether/dao/IsotopeG09DAO.java

    r536 r541  
    1818{ 
    1919    @NotNull 
     20        Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 
     21                throws PersistenceException; 
     22 
     23    @NotNull 
    2024    Set<String> getTransitionsLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 
    2125            throws PersistenceException; 
  • geisa/persistence/interface/com/ether/dao/IsotopeIasiG03DAO.java

    r536 r541  
    1818//    @Nullable 
    1919//    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; 
    2023 
    2124 
  • geisa/persistence/interface/com/ether/dao/IsotopeIasiG09DAO.java

    r536 r541  
    1717        extends DomainAccessObject<IsotopeIasiG09, Integer> 
    1818{ 
     19    @NotNull 
     20    Set<String> getTransitionsUpperByTransitionLower( final List<String> isotopeNameArray,final Float spectralRangeLower, final Float spectralRangeUpper, final String transitionLower) 
     21            throws PersistenceException; 
     22 
     23 
    1924   @NotNull 
    2025    Set<String> getTransitionsLower( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 
    2126            throws PersistenceException; 
    2227 
    23     @NotNull 
     28   @NotNull 
    2429    Set<String> getTransitionsUpper( final List<String> isotopesSelectedNameList, final Float spectralRangeLower, final Float spectralRangeUpper ) 
    2530            throws PersistenceException; 
Note: See TracChangeset for help on using the changeset viewer.