public static Media getMedia(int mId) {
    String[] cols = { "*" };
    Integer[] condArr = { mId };
    ResultSet results;
    Media mObj;
    SelectBuilder sb = getSelectBuilder(cols, "Inventory");
    ArrayList<Media> mObjs;
    try {
      sb.addIntCondition("mId", "=", condArr, true);

      results = executeQuery(sb);
      mObjs = result2Media(results);
      if (mObjs != null && !mObjs.isEmpty()) {
        mObj = mObjs.get(0);
      } else {
        mObj = null;
      }
    } catch (SQLException sqlE) {
      mObj = null;
    } catch (ArrayIndexOutOfBoundsException indexE) {
      mObj = null;
    } catch (Exception e) {
      mObj = null;
    }
    return mObj;

  }