Class Builder.BuilderCompleteTask
java.lang.Object
ca.uhn.fhir.jpa.migrate.tasks.api.Builder.BuilderCompleteTask
- Enclosing class:
- Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononlyAppliesToPlatforms(DriverTypeEnum... theTypes) Introduce precondition checking logic into the execution of the enclosed task.setTransactional(boolean theFlag) withFlag(TaskFlagEnum theFlag)
-
Constructor Details
-
BuilderCompleteTask
-
-
Method Details
-
failureAllowed
-
doNothing
-
onlyAppliesToPlatforms
-
onlyIf
Introduce precondition checking logic into the execution of the enclosed task. This conditional logic will be implemented by running an SQL SELECT (including CTEs) to obtain a boolean indicating whether a certain condition has been met. One example is to check for a specific collation on a column to decide whether to create a new index. This method may be called multiple times to add multiple preconditions. The precondition that evaluates to false will stop execution of the task irrespective of any or all other tasks evaluating to true.- Parameters:
theSql- The SELECT or CTE used to determine if the precondition is valid.reason- A String to indicate the text that is logged if the precondition is not met.- Returns:
- The BuilderCompleteTask in order to chain further method calls on this builder.
-
runEvenDuringSchemaInitialization
-
setTransactional
-
heavyweightSkipByDefault
-
withFlag
-