long startProduce = rs.getLong("start_produce");
long price = rs.getLong("seed_price");
int period = rs.getInt("period");
if (period == PERIOD_CURRENT)
{
production.add(new SeedProduction(seedId, canProduce, price, startProduce));
}
else
{
productionNext.add(new SeedProduction(seedId, canProduce, price, startProduce));
}
}
DbUtils.close(statement, rs);
castle.setSeedProduction(production, PERIOD_CURRENT);
castle.setSeedProduction(productionNext, PERIOD_NEXT);