Class UpdateActionRecordSplitHelper

java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.UpdateActionRecordSplitHelper

public class UpdateActionRecordSplitHelper extends Object
Helper for backends that want to do their updates on records grouped by the set of fields that are being changed, and/or by the values those fields are being set to. e.g., RDBMS, for n records where some sub-set of fields are all having values set the same (say, a status=x), we can do that as 1 query where id in (?,?,...,?).
  • Constructor Details

    • UpdateActionRecordSplitHelper

      public UpdateActionRecordSplitHelper()
  • Method Details

    • init

      public void init(UpdateInput updateInput)
    • areAllValuesBeingUpdatedTheSame

      public static boolean areAllValuesBeingUpdatedTheSame(UpdateInput updateInput, List<QRecord> recordList, List<String> fieldsBeingUpdated)
    • getHaveAnyWithoutErrors

      public boolean getHaveAnyWithoutErrors()
      Getter for haveAnyWithoutErrors
    • getRecordsByFieldBeingUpdated

      public ListingHash<List<String>,QRecord> getRecordsByFieldBeingUpdated()
      Getter for recordsByFieldBeingUpdated
    • getOutputRecords

      public List<QRecord> getOutputRecords()
      Getter for outputRecords