/** @inheritdoc */ @Override public void readEntity(Cursor cursor, NewsJumpBean entity, int offset) { entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); entity.setUrl(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setContent(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); }
/** @inheritdoc */ @Override protected Long updateKeyAfterInsert(NewsJumpBean entity, long rowId) { entity.setId(rowId); return rowId; }