Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/utils/DBService.java @ 43:9dbbbfd474f4
new: 1.existing topic in search result. 2.difference-set of book for topic
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 23 Dec 2015 16:03:32 +0100 |
parents | ba9515f22897 |
children | a00efd5d9e77 |
comparison
equal
deleted
inserted
replaced
42:815cd86bb9ec | 43:9dbbbfd474f4 |
---|---|
143 | 143 |
144 public DBBook getBook(String id){ | 144 public DBBook getBook(String id){ |
145 return getBookMap().get(id); | 145 return getBookMap().get(id); |
146 } | 146 } |
147 | 147 |
148 private Map<String, DBBook> getBookMap(){ | 148 public Map<String, DBBook> getBookMap(){ |
149 if(bookMap == null){ | 149 if(bookMap == null){ |
150 try { | 150 try { |
151 this.loadBookMap(); | 151 this.loadBookMap(); |
152 } catch (Exception e) { | 152 } catch (Exception e) { |
153 e.printStackTrace(); | 153 e.printStackTrace(); |
540 | 540 |
541 | 541 |
542 | 542 |
543 return list; | 543 return list; |
544 } | 544 } |
545 | |
545 | 546 |
546 public static DBSection getSectionWithContent(Long sectionId) throws SQLException { | 547 public static DBSection getSectionWithContent(Long sectionId) throws SQLException { |
547 | 548 |
548 Connection conn = null; | 549 Connection conn = null; |
549 Statement stmt = null; | 550 Statement stmt = null; |