Class UpdateActionRecordSplitHelper
java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.UpdateActionRecordSplitHelper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areAllValuesBeingUpdatedTheSame
(UpdateInput updateInput, List<QRecord> recordList, List<String> fieldsBeingUpdated) boolean
Getter for haveAnyWithoutErrorsGetter for outputRecordsGetter for recordsByFieldBeingUpdatedvoid
init
(UpdateInput updateInput)
-
Constructor Details
-
UpdateActionRecordSplitHelper
public UpdateActionRecordSplitHelper()
-
-
Method Details
-
init
-
areAllValuesBeingUpdatedTheSame
public static boolean areAllValuesBeingUpdatedTheSame(UpdateInput updateInput, List<QRecord> recordList, List<String> fieldsBeingUpdated) -
getHaveAnyWithoutErrors
public boolean getHaveAnyWithoutErrors()Getter for haveAnyWithoutErrors -
getRecordsByFieldBeingUpdated
Getter for recordsByFieldBeingUpdated -
getOutputRecords
-