/** @inheritdoc */
 @Override
 public Long getKey(DolphinContext entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, DolphinContext entity) {
    stmt.clearBindings();

    Long id = entity.getId();
    if (id != null) {
      stmt.bindLong(1, id);
    }
    stmt.bindString(2, entity.getActivity_name());
    stmt.bindString(3, entity.getDevice_state());

    Long model_config_id = entity.getModel_config_id();
    if (model_config_id != null) {
      stmt.bindLong(4, model_config_id);
    }
    stmt.bindLong(5, entity.getPlugin_id());
  }