Package ca.uhn.fhir.jpa.migrate.tasks
Class SchemaInitializationProvider
java.lang.Object
ca.uhn.fhir.jpa.migrate.tasks.SchemaInitializationProvider
- All Implemented Interfaces:
ISchemaInitializationProvider
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaInitializationProvider(String theSchemaDescription, String theSchemaFileClassPath, String theSchemaExistsIndicatorTable, boolean theCanInitializeSchema) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected StringgetInitScript(DriverTypeEnum theDriverType) getSqlStatements(DriverTypeEnum theDriverType) inthashCode()protected StringpreProcessSqlStatement(DriverTypeEnum theDriverType, String sqlStatement) protected StringpreProcessSqlString(DriverTypeEnum theDriverType, String sqlString) setSchemaDescription(String theSchemaDescription) setSchemaFileClassPath(String theSchemaFileClassPath) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.jpa.migrate.tasks.api.ISchemaInitializationProvider
isEnabled
-
Constructor Details
-
SchemaInitializationProvider
public SchemaInitializationProvider(String theSchemaDescription, String theSchemaFileClassPath, String theSchemaExistsIndicatorTable, boolean theCanInitializeSchema) - Parameters:
theSchemaFileClassPath- pathname to script used to initialize schematheSchemaExistsIndicatorTable- a table name we can use to determine if this schema has already been initializedtheCanInitializeSchema- this is a "root" schema initializer that creates the primary tables used by this app
-
-
Method Details
-
getSqlStatements
- Specified by:
getSqlStatementsin interfaceISchemaInitializationProvider
-
preProcessSqlString
-
preProcessSqlStatement
-
getInitScript
-
equals
-
hashCode
-
getSchemaExistsIndicatorTable
- Specified by:
getSchemaExistsIndicatorTablein interfaceISchemaInitializationProvider
-
setSchemaFileClassPath
-
getSchemaDescription
- Specified by:
getSchemaDescriptionin interfaceISchemaInitializationProvider
-
setSchemaDescription
- Specified by:
setSchemaDescriptionin interfaceISchemaInitializationProvider
-
canInitializeSchema
- Specified by:
canInitializeSchemain interfaceISchemaInitializationProvider
-