Class CreateControl


  • public class CreateControl
    extends 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.

    • Constructor Detail

      • CreateControl

        public CreateControl()
    • Method Detail

      • buildTableDef

        public static Table buildTableDef​(PhysicalDataModel dataModel,
                                          String adminSchemaName,
                                          boolean addTags)
        Builds the definition of the admin CONTROL table
        Parameters:
        dataModel -
        adminSchemaName -
        addTags -
        Returns:
      • createTableIfNeeded

        public static void createTableIfNeeded​(String adminSchemaName,
                                               IDatabaseAdapter 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 -