Class SchemaUpdater


  • public class SchemaUpdater
    extends java.lang.Object
    • Method Detail

      • getInstance

        protected static SchemaUpdater getInstance​(java.lang.String coreBaseDir,
                                                   java.lang.String pluginsBaseDir,
                                                   java.lang.String scopeSuffix)
        To be only used by unit test
      • getCoreVersion

        public SchemaVersion getCoreVersion()
        get the current Core schema version from dB
        Returns:
        the SchemaVersion (null if not yet present in db)
      • getPluginVersion

        public SchemaVersion getPluginVersion​(java.lang.String pluginName)
        get the current plugin schema version from dB
        Parameters:
        pluginName - the name of the plugin
        Returns:
        the SchemaVersion (null if not yet present in db)
      • doSchemaUpdate

        public void doSchemaUpdate()
                            throws java.lang.Exception
        Do schema update from slq files. each schema version are done in distinct transaction
        Throws:
        java.lang.Exception - Exceptio thrown if an update cannot be done