Package ca.uhn.fhir.jpa.migrate.taskdef
Class ArbitrarySqlTask
java.lang.Object
ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
ca.uhn.fhir.jpa.migrate.taskdef.ArbitrarySqlTask
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
BaseTask.ExecutedStatement -
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
MIGRATION_VERSION_PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionArbitrarySqlTask(ca.uhn.fhir.util.VersionEnum theRelease, String theVersion, String theTableName, String theDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExecuteOnlyIfColumnExists(String theTableName, String theColumnName) This task will only execute if the following column existsvoidaddQuery(String theSql, ArbitrarySqlTask.QueryModeEnum theMode, Consumer<Map<String, Object>> theConsumer) voidprotected voidgenerateEquals(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) protected voidgenerateHashCode(org.apache.commons.lang3.builder.HashCodeBuilder theBuilder) voidsetBatchSize(int theBatchSize) voidsetExecuteOnlyIfTableExists(String theExecuteOnlyIfTableExists) voidvalidate()Methods inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
captureExecutedStatement, equals, execute, executeSql, getChangesCount, getConnectionProperties, getDescription, getDriverType, getExecutedStatements, getFlywayVersion, getProductVersion, getSchemaVersion, getTxTemplate, hashCode, initializedSchema, isDoNothing, isDryRun, isFailureAllowed, isNoColumnShrink, isRunDuringSchemaInitialization, logInfo, newJdbcTemplate, setConnectionProperties, setDescription, setDoNothing, setDriverType, setDryRun, setFailureAllowed, setNoColumnShrink, setOnlyAppliesToPlatforms, setRunDuringSchemaInitialization, validateVersion
-
Constructor Details
-
ArbitrarySqlTask
public ArbitrarySqlTask(ca.uhn.fhir.util.VersionEnum theRelease, String theVersion, String theTableName, String theDescription)
-
-
Method Details
-
addQuery
-
validate
-
doExecute
- Specified by:
doExecutein classBaseTask- Throws:
SQLException
-
setBatchSize
-
setExecuteOnlyIfTableExists
-
addExecuteOnlyIfColumnExists
This task will only execute if the following column exists -
generateEquals
protected void generateEquals(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) - Specified by:
generateEqualsin classBaseTask
-
generateHashCode
- Specified by:
generateHashCodein classBaseTask
-