Class ColumnStatsTableConfig
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
com.kingsrook.qqq.backend.core.processes.implementations.columnstats.ColumnStatsTableConfig
- All Implemented Interfaces:
Serializable
,Cloneable
Object with properties to allow configuring behavior of the ColumnStats
process.
Can be deployed various ways:
- As supplementalTableMetaData (e.g., set on individual tables in QInstance)
ColumnStatsTableConfig.ofOrWithNew(myTableMetaData).withFailIfCountOverLimit(47)
- As a value in the process, named
"ColumnStatsTableConfig":
- Where one can set a default value for the process (e.g., across all
tables) as in:
processMetaData.getInputField("ColumnStatsTableConfig").ifPresent(f -> f.setDefaultValue(new ColumnStatsTableConfig().withFailIfCountOverLimit(42)));
- Or an application can insert a custom step into this process
to dynamically build the config when the process runs
processMetaData.withStep(0, new QBackendStepMetaData() .withName("setConfig") .withCode(new QCodeReference(ColumnStatusConfigBuilderStep.class)));
and then in that step:runBackendStepOutput.addValue("ColumnStatsTableConfig", new ColumnStatsTableConfig());
- Where one can set a default value for the process (e.g., across all
tables) as in:
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for failIfCountOverLimitGetter for queryTimeoutSecondsgetType()
Getter for typestatic ColumnStatsTableConfig
of
(QTableMetaData tableMetaData) static ColumnStatsTableConfig
ofOrWithNew
(QTableMetaData tableMetaData) void
setFailIfCountOverLimit
(Integer failIfCountOverLimit) Setter for failIfCountOverLimitvoid
setQueryTimeoutSeconds
(Integer queryTimeoutSeconds) Setter for queryTimeoutSecondswithFailIfCountOverLimit
(Integer failIfCountOverLimit) Fluent setter for failIfCountOverLimitwithQueryTimeoutSeconds
(Integer queryTimeoutSeconds) Fluent setter for queryTimeoutSecondsMethods inherited from class com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
clone, enrich, finishClone, includeInFullFrontendMetaData, includeInPartialFrontendMetaData, of, ofOrWithNew, validate
-
Field Details
-
NAME
-
-
Constructor Details
-
ColumnStatsTableConfig
public ColumnStatsTableConfig()
-
-
Method Details
-
getType
Description copied from class:QSupplementalTableMetaData
Getter for type- Specified by:
getType
in classQSupplementalTableMetaData
-
of
-
ofOrWithNew
-
getFailIfCountOverLimit
-
setFailIfCountOverLimit
Setter for failIfCountOverLimit- See Also:
-
withFailIfCountOverLimit
Fluent setter for failIfCountOverLimit- Parameters:
failIfCountOverLimit
- TODO document this property- Returns:
- this
-
getQueryTimeoutSeconds
-
setQueryTimeoutSeconds
Setter for queryTimeoutSeconds- See Also:
-
withQueryTimeoutSeconds
Fluent setter for queryTimeoutSeconds- Parameters:
queryTimeoutSeconds
- TODO document this property- Returns:
- this
-