return furniture;
}
@Override
public Furniture generateAndFill(ResultSet set) {
Furniture furniture = new Furniture();
try {
furniture.setId(set.getInt("id"));
furniture.setWidth(set.getInt("width"));
furniture.setLength(set.getInt("length"));
furniture.setSprite(set.getInt("sprite_id"));
furniture.setIterateCount(set.getInt("interaction_modes_count"));
furniture.setPublicName(set.getString("public_name"));
furniture.setItemName(set.getString("item_name"));
furniture.setType(set.getString("type"));
furniture.setInteraction(set.getString("interaction_type"));
furniture.setStackHeight(set.getFloat("stack_height"));
furniture.setStackable(set.getInt("can_stack") == 1);
furniture.setSitable(set.getInt("can_sit") == 1);
furniture.setWalkable(set.getInt("is_walkable") == 1);
furniture.setRecyclable(set.getInt("allow_recycle") == 1);
furniture.setTradeable(set.getInt("allow_trade") == 1);
furniture.setSellable(set.getInt("allow_marketplace_sell") == 1);
furniture.setGiftable(set.getInt("allow_gift") == 1);
furniture.setLayable(set.getString("interaction_type").equalsIgnoreCase("bed"));
furniture.setVendors(new GapList<Integer>());
for(String vending : set.getString("vending_ids").split(",")) {
furniture.getVendors().add(new Integer(vending.replace(" ", "")));
}
} catch(Exception ex) {
H4J.getLogger(FurnitureDAO.class.getName()).error(ex.getMessage());
}