Class MapJpaLiquibaseUpdaterProvider

    • Constructor Detail

      • MapJpaLiquibaseUpdaterProvider

        public MapJpaLiquibaseUpdaterProvider​(KeycloakSession session)
    • Method Detail

      • update

        public void update​(Class modelType,
                           Connection connection,
                           String defaultSchema)
        Description copied from interface: MapJpaUpdaterProvider
        Updates the Keycloak database for the given model type
        Specified by:
        update in interface MapJpaUpdaterProvider
        Parameters:
        modelType - Model type
        connection - DB connection
        defaultSchema - DB connection
      • export

        public void export​(Class modelType,
                           Connection connection,
                           String defaultSchema,
                           File file)
        Description copied from interface: MapJpaUpdaterProvider
        Exports the SQL update script for the given model type into the given File.
        Specified by:
        export in interface MapJpaUpdaterProvider
        Parameters:
        modelType - Model type
        connection - DB connection
        defaultSchema - DB schema to use
        file - File to write to
      • updateChangeSet

        protected void updateChangeSet​(liquibase.Liquibase liquibase)
                                throws liquibase.exception.LiquibaseException,
                                       SQLException
        Throws:
        liquibase.exception.LiquibaseException
        SQLException
      • validateChangeSet

        protected MapJpaUpdaterProvider.Status validateChangeSet​(liquibase.Liquibase liquibase,
                                                                 String changelog)
                                                          throws liquibase.exception.LiquibaseException
        Throws:
        liquibase.exception.LiquibaseException
      • close

        public void close()
        Specified by:
        close in interface Provider