Mercurial > hg > LGServices
diff src/main/java/de/mpiwg/gazetteer/db/DBSectionVersion.java @ 11:f15b0214cc1c
Adding query for table SectionVersion
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 26 May 2015 14:59:37 +0200 |
parents | efe0e7174139 |
children | d81a5401b9af |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/db/DBSectionVersion.java Tue May 26 14:39:34 2015 +0200 +++ b/src/main/java/de/mpiwg/gazetteer/db/DBSectionVersion.java Tue May 26 14:59:37 2015 +0200 @@ -1,12 +1,68 @@ package de.mpiwg.gazetteer.db; +import java.sql.ResultSet; +import java.sql.SQLException; + public class DBSectionVersion { + private String id; private String version; private String editor; private String date; private String books_id; + public DBSectionVersion(ResultSet rs) throws SQLException{ + this.id = rs.getString("id"); + this.version = rs.getString("version"); + this.editor = rs.getString("editor"); + this.date = rs.getString("date"); + this.books_id = rs.getString("books_id"); + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getEditor() { + return editor; + } + + public void setEditor(String editor) { + this.editor = editor; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getBooks_id() { + return books_id; + } + + public void setBooks_id(String books_id) { + this.books_id = books_id; + } + + + + + }