Add chainID to Chain class Lambda

This commit is contained in:
NMerz
2020-11-01 21:08:07 -05:00
parent 9cb3835e4a
commit 48f96c4146
4 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
import java.sql.ResultSet;
import java.sql.SQLException;
public class Chain {
String name;
String website;
public Chain (ResultSet chainRow) throws SQLException {
this.name = chainRow.getString("name");
System.out.println(this.name);
this.website = chainRow.getString("website");
System.out.println(this.website);
}
public Chain(String name, String website) {
this.name = name;
this.website = website;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
}