Class CustomKeycloakTask

    • Field Detail

      • database

        protected liquibase.database.Database database
      • jdbcConnection

        protected liquibase.database.jvm.JdbcConnection jdbcConnection
      • confirmationMessage

        protected StringBuilder confirmationMessage
      • statements

        protected List<liquibase.statement.SqlStatement> statements
    • Constructor Detail

      • CustomKeycloakTask

        public CustomKeycloakTask()
    • Method Detail

      • validate

        public liquibase.exception.ValidationErrors validate​(liquibase.database.Database database)
        Specified by:
        validate in interface liquibase.change.custom.CustomChange
      • setFileOpener

        public void setFileOpener​(liquibase.resource.ResourceAccessor resourceAccessor)
        Specified by:
        setFileOpener in interface liquibase.change.custom.CustomChange
      • getConfirmationMessage

        public String getConfirmationMessage()
        Specified by:
        getConfirmationMessage in interface liquibase.change.custom.CustomChange
      • setUp

        public void setUp()
                   throws liquibase.exception.SetupException
        Specified by:
        setUp in interface liquibase.change.custom.CustomChange
        Throws:
        liquibase.exception.SetupException
      • generateStatements

        public liquibase.statement.SqlStatement[] generateStatements​(liquibase.database.Database database)
                                                              throws liquibase.exception.CustomChangeException
        Specified by:
        generateStatements in interface liquibase.change.custom.CustomSqlChange
        Throws:
        liquibase.exception.CustomChangeException
      • isApplicable

        protected boolean isApplicable()
                                throws liquibase.exception.CustomChangeException
        Throws:
        liquibase.exception.CustomChangeException
      • generateStatementsImpl

        protected abstract void generateStatementsImpl()
                                                throws liquibase.exception.CustomChangeException
        It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"
        Throws:
        liquibase.exception.CustomChangeException
      • getTaskId

        protected abstract String getTaskId()
      • getTableName

        protected String getTableName​(String tableName)