// Add item in correct HashMap
while(rset.next())
{
if(selectQuery.endsWith("etcitem"))
{
Item newItem = readItem(rset);
itemData.put(newItem.id, newItem);
}
else if(selectQuery.endsWith("armor"))
{
Item newItem = readArmor(rset);
armorData.put(newItem.id, newItem);
}
else if(selectQuery.endsWith("weapon"))
{
Item newItem = readWeapon(rset);
weaponData.put(newItem.id, newItem);
}
}
DatabaseUtils.closeDatabaseSR(statement, rset);
}