
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
ConstructorsConstructorDescriptionVerifyDatabasePartitioningModeMigrationTask(String theProductVersion, String theSchemaVersion, boolean theExpectDatabasePartitionMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidgenerateEquals(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) protected voidgenerateHashCode(org.apache.commons.lang3.builder.HashCodeBuilder theBuilder) Nothing added other than the class name, just to give some kind of meaningful value.voidvalidate()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:
doExecutein 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 themyExpectDatabasePartitionModefield. 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:
generateHashCodein classBaseTask
-
generateEquals
protected void generateEquals(org.apache.commons.lang3.builder.EqualsBuilder theBuilder, BaseTask theOtherObject) - Specified by:
generateEqualsin classBaseTask
-