Merge branch 'master' into APIUnitTests

This commit is contained in:
Nathan Merz
2020-10-08 19:10:16 -04:00
committed by GitHub
46 changed files with 1159 additions and 326 deletions

View File

@@ -9,10 +9,29 @@ public class ItemEntry {
Boolean purchased;
public ItemEntry(Integer listID, ResultSet listRow) throws SQLException {
this.listID = listID;
productID = listRow.getInt(1);
quantity = listRow.getInt(2);
addedDate = listRow.getTimestamp(3).toInstant().toEpochMilli();
purchased = listRow.getBoolean(4);
productID = listRow.getInt(2);
quantity = listRow.getInt(3);
addedDate = listRow.getTimestamp(4).toInstant().toEpochMilli();
purchased = listRow.getBoolean(5);
}
@Override
public String toString() {
return "ItemEntry{" +
"listID=" + listID +
", productID=" + productID +
", quantity=" + quantity +
", addedDate=" + addedDate +
", purchased=" + purchased +
'}';
}
public Integer getListID() {
return listID;
}
public void setListID(Integer listID) {
this.listID = listID;
}
@Override