mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-11 11:05:05 +00:00
36 lines
759 B
Java
36 lines
759 B
Java
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;
|
|
}
|
|
}
|