Class Changeset

java.lang.Object
tech.ydb.yoj.repository.db.statement.Changeset

@Deprecated public final class Changeset extends Object
Deprecated.
Blindly setting entity fields is not recommended. Use Table.modifyIfPresent() instead, unless you have specific requirements.

Blind updates disrupt query merging mechanism, so you typically won't able to run multiple blind update statements in the same transaction, or interleave them with upserts (Table.save()) and inserts.

Blind updates also do not update projections because they do not load the entity before performing the update; this can cause projections to be inconsistent with the main entity.

  • Constructor Details

    • Changeset

      public Changeset()
      Deprecated.
  • Method Details

    • setField

      public static <V> Changeset setField(String fieldPath, V value)
      Deprecated.
    • set

      public <T> Changeset set(@NonNull @NonNull String fieldPath, T value)
      Deprecated.
    • setAll

      public Changeset setAll(@NonNull @NonNull Changeset other)
      Deprecated.
    • setAll

      public Changeset setAll(@NonNull @NonNull Map<String,?> fieldValues)
      Deprecated.
    • toMap

      public Map<String,?> toMap()
      Deprecated.