Class ReplaceAction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.AbstractQActionFunction<ReplaceInput,ReplaceOutput>
com.kingsrook.qqq.backend.core.actions.tables.ReplaceAction
Action to do a "replace" - e.g: Update rows with unique-key values that are
already in the table; insert rows whose unique keys weren't already in the
table, and delete rows that weren't in the input (all based on a
UniqueKey that's part of the input)
Note - the filter in the ReplaceInput - its role is to limit what rows are
potentially deleted. e.g., if you have a table that's segmented, and you're
only replacing a particular segment of it (say, for 1 client), then you pass
in a filter that finds rows matching that segment. See Test for example.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.kingsrook.qqq.backend.core.actions.AbstractQActionFunction
executeAsync
-
Constructor Details
-
ReplaceAction
public ReplaceAction()
-
-
Method Details
-
execute
- Specified by:
execute
in classAbstractQActionFunction<ReplaceInput,
ReplaceOutput> - Throws:
QException
-