Class 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 table
      static void createTableIfNeeded​(java.lang.String adminSchemaName, IDatabaseAdapter target)
      Create the CONTROL table in the admin schema.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreateControl

        public CreateControl()
    • 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,
                                               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 -