Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/db/DBSection.java @ 40:35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 07 Dec 2015 17:06:57 +0100 |
parents | 3e62083dbcbf |
children | 9dbbbfd474f4 |
comparison
equal
deleted
inserted
replaced
39:37840afb7b80 | 40:35ed4e650a53 |
---|---|
29 public DBSection(Long id, String name, String bookId){ | 29 public DBSection(Long id, String name, String bookId){ |
30 this.id = id; | 30 this.id = id; |
31 this.name = name; | 31 this.name = name; |
32 this.bookId = bookId; | 32 this.bookId = bookId; |
33 }*/ | 33 }*/ |
34 | |
35 public DBSection() { | |
36 this.name = "-"; | |
37 this.id = null; | |
38 this.bookId = null; | |
39 this.start_page = null; | |
40 this.end_page = null; | |
41 } | |
34 | 42 |
35 public DBSection(ResultSet rs) throws SQLException{ | 43 public DBSection(ResultSet rs) throws SQLException{ |
36 this.name = rs.getString("name"); | 44 this.name = rs.getString("name"); |
37 this.id = rs.getLong("id"); | 45 this.id = rs.getLong("id"); |
38 this.bookId = rs.getString("books_id"); | 46 this.bookId = rs.getString("books_id"); |