/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java
ViewVC logotype

Diff of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1114 by torben, Thu Sep 23 12:56:11 2010 UTC revision 1115 by torben, Thu Sep 23 15:08:39 2010 UTC
# Line 90  public class StationDAO { Line 90  public class StationDAO {
90                                          }                                          }
91                                  }                                  }
92                          }                          }
93                            
94                            Collections.sort(stationBean.entries, new Comparator<StationEntry>() {
95                                    @Override
96                                    public int compare(StationEntry arg0, StationEntry arg1) {
97                                            return arg0.getName().compareTo( arg1.getName() );
98                                    }                              
99                            });
100    
101                          return stationBean;                                              return stationBean;                    
102                  } finally {                  } finally {
# Line 270  public class StationDAO { Line 277  public class StationDAO {
277                                                    
278                          for(JdoStationBean bean : beanList) {                          for(JdoStationBean bean : beanList) {
279                                  stationBean.entries.add( bean.toStationEntry() );                                  stationBean.entries.add( bean.toStationEntry() );
280                          }                          }                      
281                            
282                                                    
283                  } finally {                  } finally {
284                          pm.close();                          pm.close();

Legend:
Removed from v.1114  
changed lines
  Added in v.1115

  ViewVC Help
Powered by ViewVC 1.1.20