Class Builder
java.lang.Object
ca.uhn.fhir.jpa.migrate.tasks.api.Builder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdGenerator(String theVersion, String theGeneratorName) voidaddTableByColumns(String theVersion, String theTableName, String... thePkColumnNames) addTableRawSql(String theVersion, String theTableName) voidvoiddropIdGenerator(String theVersion, String theIdGeneratorName) executeRawSql(String theVersion, DriverTypeEnum theDriver, String theSql) executeRawSql(String theVersion, String theSql) executeRawSql(String theVersion, Map<DriverTypeEnum, String> theDriverToSql) Builder method to define a raw SQL execution migration that needs to take place against multiple database types, and the SQL they need to use is not equal.executeRawSqls(String theVersion, Map<DriverTypeEnum, List<String>> theDriverToSqls) Builder method to define a raw SQL execution migration that needs to take place against multiple database types, and the SQL they need to use is not equal, and there are multiple sql commands for a given database.voidexecuteRawSqlStub(String theVersion, String theSql) initializeSchema(String theVersion, ISchemaInitializationProvider theSchemaInitializationProvider) initializeSchema(String theVersion, String theSchemaName, ISchemaInitializationProvider theSchemaInitializationProvider) startSectionWithMessage(String theMessage) Deprecated.
-
Constructor Details
-
Builder
-
-
Method Details
-
onTable
-
addTask
-
addTableRawSql
-
executeRawSql
-
executeRawSqlStub
-
initializeSchema
public Builder initializeSchema(String theVersion, ISchemaInitializationProvider theSchemaInitializationProvider) -
initializeSchema
public Builder initializeSchema(String theVersion, String theSchemaName, ISchemaInitializationProvider theSchemaInitializationProvider) -
executeRawSql
-
executeRawSql
Builder method to define a raw SQL execution migration that needs to take place against multiple database types, and the SQL they need to use is not equal. Provide a map of driver types to SQL statements.- Parameters:
theVersion- The version of the migration.theDriverToSql- Map of driver types to SQL statements.- Returns:
-
executeRawSqls
Builder method to define a raw SQL execution migration that needs to take place against multiple database types, and the SQL they need to use is not equal, and there are multiple sql commands for a given database. Provide a map of driver types to list of SQL statements.- Parameters:
theVersion- The version of the migration.theDriverToSqls- Map of driver types to list of SQL statements.- Returns:
-
startSectionWithMessage
Deprecated. -
addTableByColumns
public Builder.BuilderAddTableByColumns addTableByColumns(String theVersion, String theTableName, String... thePkColumnNames) -
addIdGenerator
-
dropIdGenerator
-
addNop
-