/** * 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; }
private App cursorToApp(Cursor cursor) { App app = new App(); app.setId(cursor.getLong(0)); app.setName(cursor.getString(1)); app.setNamespace(cursor.getString(2)); app.setView(cursor.getString(3)); app.setSocketAddress(cursor.getString(4)); app.setDescription(cursor.getString(5)); app.setIcon(cursor.getString(6)); return app; }