protected ThirdGameDownInfo loadCurrentDeep(Cursor cursor, boolean lock) { ThirdGameDownInfo entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; ThirdGameInfo thirdGameInfo = loadCurrentOther(daoSession.getThirdGameInfoDao(), cursor, offset); if (thirdGameInfo != null) { entity.setThirdGameInfo(thirdGameInfo); } return entity; }
/** @inheritdoc */ @Override public Long getKey(ThirdGameDownInfo entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, ThirdGameDownInfo entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } String gameURLId = entity.getGameURLId(); if (gameURLId != null) { stmt.bindString(2, gameURLId); } String url = entity.getUrl(); if (url != null) { stmt.bindString(3, url); } Integer downToken = entity.getDownToken(); if (downToken != null) { stmt.bindLong(4, downToken); } String remark = entity.getRemark(); if (remark != null) { stmt.bindString(5, remark); } String logoUrl = entity.getLogoUrl(); if (logoUrl != null) { stmt.bindString(6, logoUrl); } stmt.bindString(7, entity.getGameId()); }
/** @inheritdoc */ @Override public void readEntity(Cursor cursor, ThirdGameDownInfo entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setGameURLId(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setUrl(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); entity.setDownToken(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3)); entity.setRemark(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4)); entity.setLogoUrl(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5)); entity.setGameId(cursor.getString(offset + 6)); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(ThirdGameDownInfo entity, long rowId) { entity.setId(rowId); return rowId; }
@Override protected void attachEntity(ThirdGameDownInfo entity) { super.attachEntity(entity); entity.__setDaoSession(daoSession); }