Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/db/DBBook.java @ 14:3387d855a194
new: toc status in books page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 29 May 2015 11:00:09 +0200 |
parents | f15b0214cc1c |
children | d81a5401b9af |
comparison
equal
deleted
inserted
replaced
13:9c6e74761f60 | 14:3387d855a194 |
---|---|
1 package de.mpiwg.gazetteer.db; | 1 package de.mpiwg.gazetteer.db; |
2 | 2 |
3 import java.sql.ResultSet; | 3 import java.sql.ResultSet; |
4 import java.sql.SQLException; | 4 import java.sql.SQLException; |
5 | |
6 import com.sun.istack.internal.logging.Logger; | |
5 | 7 |
6 public class DBBook { | 8 public class DBBook { |
7 | 9 |
8 private String id; | 10 private String id; |
9 private String name; | 11 private String name; |
21 private String in_jibengujiku; | 23 private String in_jibengujiku; |
22 | 24 |
23 private Integer start_year; | 25 private Integer start_year; |
24 private Integer end_year; | 26 private Integer end_year; |
25 private String comments; | 27 private String comments; |
26 private Integer toc_correction; | 28 private int toc_correction; |
27 | 29 |
30 | |
31 | |
28 private DBSectionVersion currentSectionVersion; | 32 private DBSectionVersion currentSectionVersion; |
29 | 33 |
30 public DBBook(ResultSet rs) throws SQLException{ | 34 public DBBook(ResultSet rs) throws SQLException{ |
31 this.name = rs.getString("name"); | 35 this.name = rs.getString("name"); |
32 this.id = rs.getString("id"); | 36 this.id = rs.getString("id"); |
48 this.comments = rs.getString("comments"); | 52 this.comments = rs.getString("comments"); |
49 this.toc_correction = rs.getInt("toc_correction"); | 53 this.toc_correction = rs.getInt("toc_correction"); |
50 | 54 |
51 } | 55 } |
52 | 56 |
53 | 57 public Integer getToc_correction() { |
58 return toc_correction; | |
59 } | |
60 | |
61 | |
62 public void setToc_correction(Integer toc_correction) { | |
63 this.toc_correction = toc_correction; | |
64 } | |
65 | |
66 | |
54 public String getId() { | 67 public String getId() { |
55 return id; | 68 return id; |
56 } | 69 } |
57 | 70 |
58 | 71 |
84 return comments; | 97 return comments; |
85 } | 98 } |
86 public void setComments(String comments){ | 99 public void setComments(String comments){ |
87 this.comments = comments; | 100 this.comments = comments; |
88 } | 101 } |
89 public Integer getTocCorrection() { | 102 |
90 return toc_correction; | 103 |
91 } | |
92 public void setTocCorrection(Integer toc_correction) { | |
93 this.toc_correction = toc_correction; | |
94 } | |
95 | |
96 | |
97 public String getPeriod() { | 104 public String getPeriod() { |
98 return period; | 105 return period; |
99 } | 106 } |
100 | 107 |
101 | 108 |