public RecipeController()
{
_listByRecipeId = new HashMap<Integer, L2Recipe>();
_listByRecipeItem = new HashMap<Integer, L2Recipe>();
ThreadConnection con = null;
FiltredPreparedStatement statement = null;
FiltredPreparedStatement st2 = null;
ResultSet list = null, rset2 = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("SELECT * FROM recipes");
st2 = con.prepareStatement("SELECT * FROM `recitems` WHERE `rid`=?");
list = statement.executeQuery();
while(list.next())
{
Vector<L2RecipeComponent> recipePartList = new Vector<L2RecipeComponent>();
boolean isDvarvenCraft = list.getBoolean("dwarven");
String recipeName = list.getString("name");
int id = list.getInt("id");
int recipeId = list.getShort("recid");
int level = list.getInt("lvl");
short itemId = list.getShort("item");
short foundation = list.getShort("foundation");
short count = list.getShort("q");
int mpCost = list.getInt("mp");
int successRate = list.getInt("success");
long exp = list.getLong("exp");
long sp = list.getLong("sp");
//material
st2.setInt(1, id);
rset2 = st2.executeQuery();
while(rset2.next())
{
int rpItemId = rset2.getInt("item");
int quantity = rset2.getInt("q");
L2RecipeComponent rp = new L2RecipeComponent(rpItemId, quantity);