Mercurial > hg > LGServer
view src/main/java/de/mpiwg/gazetteer/db/DBBook.java @ 0:7682c04c63a8
First commit of the source code!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 14:50:41 +0100 |
parents | |
children |
line wrap: on
line source
package de.mpiwg.gazetteer.db; import java.sql.ResultSet; import java.sql.SQLException; public class DBBook { private String id; private String name; private Integer line; private String period; // private String author; private String edition; private String volume; public DBBook(ResultSet rs) throws SQLException{ this.name = rs.getString("name"); this.id = rs.getString("id"); this.line = rs.getInt("line"); this.period = rs.getString("period"); this.author = rs.getString("author"); this.edition = rs.getString("edition"); this.volume = rs.getString("volume"); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getLine() { return line; } public void setLine(Integer line) { this.line = line; } public String getPeriod() { return period; } public void setPeriod(String period) { this.period = period; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getEdition() { return edition; } public void setEdition(String edition) { this.edition = edition; } public String getVolume() { return volume; } public void setVolume(String volume) { this.volume = volume; } }