Package ca.uhn.fhir.jpa.migrate.taskdef
Class AddPrimaryKeyTask
java.lang.Object
ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
ca.uhn.fhir.jpa.migrate.taskdef.BaseTableTask
ca.uhn.fhir.jpa.migrate.taskdef.AddPrimaryKeyTask
Migration task that handles cross-database logic for adding a new primary key.
-
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
ConstructorsConstructorDescriptionAddPrimaryKeyTask(String theProductVersion, String theSchemaVersion, String theTableName, String... theColumnsInOrder) -
Method Summary
Methods inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTableTask
generateEquals, generateHashCode, getSqlType, getTableName, setTableName, validateMethods 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
-
AddPrimaryKeyTask
public AddPrimaryKeyTask(String theProductVersion, String theSchemaVersion, String theTableName, String... theColumnsInOrder)
-
-
Method Details
-
doExecute
- Specified by:
doExecutein classBaseTask- Throws:
SQLException
-