/** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, DolphinContext entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setActivity_name(cursor.getString(offset + 1));
   entity.setDevice_state(cursor.getString(offset + 2));
   entity.setModel_config_id(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3));
   entity.setPlugin_id(cursor.getLong(offset + 4));
 }
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(DolphinContext entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }