Class ScheduledJobParameterTableCustomizer
java.lang.Object
com.kingsrook.qqq.backend.core.model.scheduledjobs.customizers.ScheduledJobParameterTableCustomizer
- All Implemented Interfaces:
TableCustomizerInterface
public class ScheduledJobParameterTableCustomizer
extends Object
implements TableCustomizerInterface
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
TableCustomizerInterface.NotImplementedHereException
-
Field Summary
Fields inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostDelete
(DeleteInput deleteInput, List<QRecord> records) Custom actions after a delete takes place.postInsert
(InsertInput insertInput, List<QRecord> records) custom actions after an insert takes place.postUpdate
(UpdateInput updateInput, List<QRecord> records, Optional<List<QRecord>> oldRecordList) custom actions after an update takes place.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
oldRecordListToMap, postInsertOrUpdate, postQuery, preDelete, preInsert, preInsertOrUpdate, preUpdate, whenToRunPreInsert
-
Constructor Details
-
ScheduledJobParameterTableCustomizer
public ScheduledJobParameterTableCustomizer()
-
-
Method Details
-
postInsert
Description copied from interface:TableCustomizerInterface
custom actions after an insert takes place. General implementation would be, to iterate over the records (the outputs of the insert action), and look at their values: - possibly adding Errors (`addError`) or Warnings (`addWarning`) to the records - possibly throwing an exception - though doing so won't stop the update, and instead will just set a warning on all of the updated records... - doing "whatever else" you may want to do. - returning the list of records (can be the input list) that you want to go back to the caller.- Specified by:
postInsert
in interfaceTableCustomizerInterface
- Throws:
QException
-
postUpdate
public List<QRecord> postUpdate(UpdateInput updateInput, List<QRecord> records, Optional<List<QRecord>> oldRecordList) throws QException Description copied from interface:TableCustomizerInterface
custom actions after an update takes place. General implementation would be, to iterate over the records (the outputs of the update action), and look at their values: - possibly adding Errors (`addError`) or Warnings (`addWarning`) to the records? - possibly throwing an exception - though doing so won't stop the update, and instead will just set a warning on all of the updated records... - doing "whatever else" you may want to do. - returning the list of records (can be the input list) that you want to go back to the caller. Note, "old records" (e.g., with values freshly fetched from the backend) will be available (if the backend supports it).- Specified by:
postUpdate
in interfaceTableCustomizerInterface
- Throws:
QException
-
postDelete
Description copied from interface:TableCustomizerInterface
Custom actions after a delete takes place. General implementation would be, to iterate over the records (ones which didn't have a delete error), and look at their values: - possibly adding Errors (`addError`) or Warnings (`addWarning`) to the records? - possibly throwing an exception - though doing so won't stop the delete, and instead will just set a warning on all of the deleted records... - doing "whatever else" you may want to do. - returning the list of records (can be the input list) that you want to go back to the caller - this is how errors and warnings are propagated .- Specified by:
postDelete
in interfaceTableCustomizerInterface
- Throws:
QException
-