You'll have to modify MonitorAlertInstance
. Add another field to it:
class MonitorAlertInstance {
private int count;
public void setCount(int count) {
this.count = count;
}
public int getCount() {
return count;
}
}
Then just set it like you set the other fields:
monitor.setCount(rs.getInt(4));