コード例 #1
0
ファイル: BaseApp.java プロジェクト: angelala00/icrawler
  /**
   * Fills the copyObj with the contents of this object using connection. If deepcopy is true, The
   * associated objects are also copied and treated as new objects.
   *
   * @param copyObj the object to fill.
   * @param deepcopy whether the associated objects should be copied.
   * @param con the database connection to read associated objects.
   */
  protected App copyInto(App copyObj, boolean deepcopy, Connection con) throws TorqueException {
    copyObj.setId(id);
    copyObj.setAppId(appId);
    copyObj.setAppname(appname);
    copyObj.setAppnameEn(appnameEn);
    copyObj.setDescription(description);
    copyObj.setVersion(version);
    copyObj.setSize(size);
    copyObj.setSysVer(sysVer);
    copyObj.setProvider(provider);
    copyObj.setDownloadUrl(downloadUrl);
    copyObj.setImgUrl(imgUrl);
    copyObj.setViewUrl(viewUrl);
    copyObj.setDownloadNum(downloadNum);
    copyObj.setAuthor(author);
    copyObj.setRatings(ratings);
    copyObj.setUpdatetime(updatetime);
    copyObj.setTimes(times);
    copyObj.setTemp(temp);

    copyObj.setId(0);

    if (deepcopy) {}
    return copyObj;
  }