Package ca.uhn.fhir.jpa.migrate.tasks
Class VerifyDatabasePartitioningModeMigrationTask
java.lang.Object
ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
ca.uhn.fhir.jpa.migrate.tasks.VerifyDatabasePartitioningModeMigrationTask
This task verifies that the in-place schema is appropriate for
Database Partition Mode (if that mode is enabled), or is appropriate
for legacy mode otherwise.
-
Nested Class Summary
Nested 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, myCheckForExistingTables, myPrettyPrint
-
Constructor Summary
ConstructorDescriptionVerifyDatabasePartitioningModeMigrationTask
(String theProductVersion, String theSchemaVersion, boolean theExpectDatabasePartitionMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
generateEquals
(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) protected void
generateHashCode
(org.apache.commons.lang3.builder.HashCodeBuilder theBuilder) Nothing added other than the class name, just to give some kind of meaningful value.void
validate()
Methods inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
addFlag, addPrecondition, captureExecutedStatement, equals, execute, executeSql, executeSqlListInTransaction, getChangesCount, getConnectionProperties, getDescription, getDriverType, getExecutedStatements, getExecutionResult, getMigrationVersion, getProductVersion, getSchemaVersion, getTxTemplate, hasFlag, hashCode, initializedSchema, isDoNothing, isDryRun, isHeavyweightSkippableTask, isNoColumnShrink, logInfo, newJdbcTemplate, setConnectionProperties, setDescription, setDriverType, setDryRun, setNoColumnShrink, setOnlyAppliesToPlatforms, setPrettyPrint, setTransactional, toString, validateVersion
-
Constructor Details
-
VerifyDatabasePartitioningModeMigrationTask
public VerifyDatabasePartitioningModeMigrationTask(String theProductVersion, String theSchemaVersion, boolean theExpectDatabasePartitionMode)
-
-
Method Details
-
validate
-
doExecute
- Specified by:
doExecute
in classBaseTask
- Throws:
SQLException
-
generateHashCode
Nothing added other than the class name, just to give some kind of meaningful value. There is one bit of interesting state in this class, in themyExpectDatabasePartitionMode
field. But we actually want this task to keep working even if the wrong flag is passed in, so we don't include it here.- Specified by:
generateHashCode
in classBaseTask
-
generateEquals
protected void generateEquals(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) - Specified by:
generateEquals
in classBaseTask
-