ThreadConnection con = null;
FiltredPreparedStatement statement = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("REPLACE INTO items (owner_id,item_id,count,loc,loc_data,enchant_level,object_id,custom_type1,custom_type2,shadow_life_time,name,class,flags) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)");
statement.setInt(1, getOwnerId());
statement.setInt(2, _itemId);
statement.setLong(3, _count);
statement.setString(4, _loc.name());
statement.setInt(5, _loc_data);