Class UpdateInput
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput
com.kingsrook.qqq.backend.core.model.actions.tables.update.UpdateInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for areAllValuesBeingUpdatedTheSameGetter for auditContextbooleanGetter for dryRun - if true, fetch the old records and run the pre-update customizers (with isPreview=true) and all validations (records exist and are accessible, required fields, record security locks, field security locks and permissions if enforced) but do NOT store anything: no backend update, no association changes, audits, record change listeners or post-update customizers.Getter for expectedVersionsgetFlags()Getter for flagsGetter for inputSourcebooleanGetter for omitDmlAuditbooleanGetter for omitModifyDateUpdatebooleanGetter for omitRecordChangeEventsbooleanGetter for omitTriggeringAutomationsGetter for recordsGetter for transactionbooleanhasFlag(ActionFlag flag) voidsetAreAllValuesBeingUpdatedTheSame(Boolean areAllValuesBeingUpdatedTheSame) Setter for areAllValuesBeingUpdatedTheSamevoidsetAuditContext(String auditContext) Setter for auditContextvoidsetDryRun(boolean dryRun) Setter for dryRun - see getDryRun.voidsetExpectedVersions(Map<Serializable, Serializable> expectedVersions) Setter for expectedVersionsvoidsetFlags(Set<ActionFlag> flags) Setter for flagsvoidsetInputSource(InputSource inputSource) Setter for inputSourcevoidsetOmitDmlAudit(boolean omitDmlAudit) Setter for omitDmlAuditvoidsetOmitModifyDateUpdate(boolean omitModifyDateUpdate) Setter for omitModifyDateUpdatevoidsetOmitRecordChangeEvents(boolean omitRecordChangeEvents) Setter for omitRecordChangeEventsvoidsetOmitTriggeringAutomations(boolean omitTriggeringAutomations) Setter for omitTriggeringAutomationsvoidsetRecords(List<QRecord> records) Setter for recordsvoidsetTransaction(QBackendTransaction transaction) Setter for transactionwithAreAllValuesBeingUpdatedTheSame(Boolean areAllValuesBeingUpdatedTheSame) Fluent setter for areAllValuesBeingUpdatedTheSamewithAuditContext(String auditContext) Fluent setter for auditContextwithDryRun(boolean dryRun) Fluent setter for dryRun - see getDryRun.withExpectedVersions(Map<Serializable, Serializable> expectedVersions) Fluent setter for expectedVersionswithFlag(ActionFlag flag) withFlags(Set<ActionFlag> flags) Fluent setter for flagswithInputSource(InputSource inputSource) Fluent setter for inputSourcewithOmitDmlAudit(boolean omitDmlAudit) Fluent setter for omitDmlAuditwithOmitModifyDateUpdate(boolean omitModifyDateUpdate) Fluent setter for omitModifyDateUpdatewithOmitRecordChangeEvents(boolean omitRecordChangeEvents) Fluent setter for omitRecordChangeEventswithOmitTriggeringAutomations(boolean omitTriggeringAutomations) Fluent setter for omitTriggeringAutomationswithRecord(QRecord record) withRecordEntities(List<? extends QRecordEntity> recordEntityList) withRecordEntity(QRecordEntity recordEntity) withRecords(List<QRecord> records) Fluent setter for recordswithTableName(String tableName) Fluent setter for tableNamewithTransaction(QBackendTransaction transaction) Fluent setter for transactionMethods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput
getActionIdentity, getBackend, getTable, getTableMetaData, getTableName, setTableMetaData, setTableName, withTableMetaDataMethods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
getAsyncJobCallback, getPermissionBypassReason, getPermissionEnforcement, setAsyncJobCallback, setPermissionEnforcement, withPermissionBypass, withPermissionEnforcement
-
Constructor Details
-
UpdateInput
public UpdateInput() -
UpdateInput
Constructor
-
-
Method Details
-
withTableName
Description copied from class:AbstractTableActionInputFluent setter for tableName- Overrides:
withTableNamein classAbstractTableActionInput
-
withRecord
-
withRecordEntity
-
withRecordEntities
-
getTransaction
Getter for transaction -
setTransaction
Setter for transaction -
withTransaction
Fluent setter for transaction -
getRecords
-
setRecords
-
getAreAllValuesBeingUpdatedTheSame
Getter for areAllValuesBeingUpdatedTheSame -
setAreAllValuesBeingUpdatedTheSame
Setter for areAllValuesBeingUpdatedTheSame -
getOmitRecordChangeEvents
public boolean getOmitRecordChangeEvents()Getter for omitRecordChangeEvents -
setOmitRecordChangeEvents
public void setOmitRecordChangeEvents(boolean omitRecordChangeEvents) Setter for omitRecordChangeEvents -
withOmitRecordChangeEvents
Fluent setter for omitRecordChangeEvents -
getOmitDmlAudit
public boolean getOmitDmlAudit()Getter for omitDmlAudit -
setOmitDmlAudit
public void setOmitDmlAudit(boolean omitDmlAudit) Setter for omitDmlAudit -
withOmitDmlAudit
Fluent setter for omitDmlAudit -
withRecords
Fluent setter for records -
withAreAllValuesBeingUpdatedTheSame
Fluent setter for areAllValuesBeingUpdatedTheSame -
getAuditContext
Getter for auditContext -
setAuditContext
Setter for auditContext -
withAuditContext
Fluent setter for auditContext -
getInputSource
Getter for inputSource- Overrides:
getInputSourcein classAbstractTableActionInput
-
setInputSource
Setter for inputSource- Overrides:
setInputSourcein classAbstractTableActionInput
-
withInputSource
Fluent setter for inputSource- Overrides:
withInputSourcein classAbstractTableActionInput- Parameters:
inputSource- Indicator of what the source of the action is. Default values from QQQ are USER or SYSTEM (where it can be the case that an action that originated from a USER leads to SYSTEM actions (e.g., running a process - the RunProcessAction is USER initiated, but if that process then runs a query, by default, it would be SYSTEM initiated).- Returns:
- this
-
getOmitTriggeringAutomations
public boolean getOmitTriggeringAutomations()Getter for omitTriggeringAutomations -
setOmitTriggeringAutomations
public void setOmitTriggeringAutomations(boolean omitTriggeringAutomations) Setter for omitTriggeringAutomations -
withOmitTriggeringAutomations
Fluent setter for omitTriggeringAutomations -
getOmitModifyDateUpdate
public boolean getOmitModifyDateUpdate()Getter for omitModifyDateUpdate -
setOmitModifyDateUpdate
public void setOmitModifyDateUpdate(boolean omitModifyDateUpdate) Setter for omitModifyDateUpdate -
withOmitModifyDateUpdate
Fluent setter for omitModifyDateUpdate -
getFlags
Getter for flags -
setFlags
Setter for flags -
withFlags
Fluent setter for flags -
withFlag
-
hasFlag
-
getDryRun
public boolean getDryRun()Getter for dryRun - if true, fetch the old records and run the pre-update customizers (with isPreview=true) and all validations (records exist and are accessible, required fields, record security locks, field security locks and permissions if enforced) but do NOT store anything: no backend update, no association changes, audits, record change listeners or post-update customizers. The output records are the would-be records after the update (old values overlaid with the input's values, when the backend can fetch old records), with errors/warnings. -
setDryRun
public void setDryRun(boolean dryRun) Setter for dryRun - see getDryRun. -
withDryRun
Fluent setter for dryRun - see getDryRun. -
getExpectedVersions
Getter for expectedVersions -
setExpectedVersions
Setter for expectedVersions -
withExpectedVersions
Fluent setter for expectedVersions
-