mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-11 11:05:05 +00:00
Add chainID to Chain class Lambda
This commit is contained in:
35
Lambdas/Lists/Chain/src/Chain.java
Normal file
35
Lambdas/Lists/Chain/src/Chain.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user