while (hennatree.next())
{
int id = hennatree.getInt("symbol_id");
//String name = hennatree.getString("name");
L2Henna template = HennaTable.getInstance().getTemplate(id);
if(template == null)
{
hennatree.close();
statement2.close();
classlist.close();
statement.close();
return;
}
L2HennaInstance temp = new L2HennaInstance(template);
temp.setSymbolId(id);
temp.setItemIdDye(template.getDyeId());
temp.setAmountDyeRequire(template.getAmountDyeRequire());
temp.setPrice(template.getPrice());
temp.setStatINT(template.getStatINT());
temp.setStatSTR(template.getStatSTR());
temp.setStatCON(template.getStatCON());
temp.setStatMEM(template.getStatMEM());
temp.setStatDEX(template.getStatDEX());
temp.setStatWIT(template.getStatWIT());
list.add(temp);
}
_hennaTrees.put(ClassId.values()[classId], list);
hennatree.close();