public static ArrayList<Media> searchInventory(String searchStr,
      SearchField searchField, Types mediaType) {
    String searchColName = enumToCol(searchField);
    SelectBuilder sbInv = DBIO.search(searchStr, searchColName, "Inventory");
    String type = enumToType(mediaType);
    String[] typeCond = { type };

    if (sbInv != null && type != null) {
      try {
        sbInv.addStringCondition("type", "=", typeCond, true);
        return result2Media(sbInv.executeSelect(con));
      } catch (SQLException sqlE) {
        return null;
      } catch (Exception e) {
        return null;
      }
    }
    return null;
  }