Class CreateControl
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.version.CreateControl
-
public class CreateControl extends java.lang.Object
Creates the admin CONTROL table.The CONTROL table is added before all other tables and is used to ensure we have only a single instance of the schema tool running at a time.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADMIN_GROUP
static java.lang.String
SCHEMA_GROUP_TAG
-
Constructor Summary
Constructors Constructor Description CreateControl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Table
buildTableDef(PhysicalDataModel dataModel, java.lang.String adminSchemaName, boolean addTags)
Builds the definition of the admin CONTROL tablestatic void
createTableIfNeeded(java.lang.String adminSchemaName, ISchemaAdapter target)
Create the CONTROL table in the admin schema.
-
-
-
Field Detail
-
SCHEMA_GROUP_TAG
public static final java.lang.String SCHEMA_GROUP_TAG
- See Also:
- Constant Field Values
-
ADMIN_GROUP
public static final java.lang.String ADMIN_GROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildTableDef
public static Table buildTableDef(PhysicalDataModel dataModel, java.lang.String adminSchemaName, boolean addTags)
Builds the definition of the admin CONTROL table- Parameters:
dataModel
-adminSchemaName
-addTags
-- Returns:
-
createTableIfNeeded
public static void createTableIfNeeded(java.lang.String adminSchemaName, ISchemaAdapter target)
Create the CONTROL table in the admin schema.
Version id of 0 is used to imply that this table is not versioned (it is created before the VERSION_HISTORY table and therefore is not managed by it)- Parameters:
adminSchemaName
-target
-
-
-