public abstract class CustomKeycloakTask extends Object implements liquibase.change.custom.CustomSqlChange
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
confirmationMessage |
protected Connection |
connection |
protected liquibase.database.Database |
database |
protected liquibase.database.jvm.JdbcConnection |
jdbcConnection |
protected KeycloakSession |
kcSession |
protected List<liquibase.statement.SqlStatement> |
statements |
Constructor and Description |
---|
CustomKeycloakTask() |
Modifier and Type | Method and Description |
---|---|
liquibase.statement.SqlStatement[] |
generateStatements(liquibase.database.Database database) |
protected abstract void |
generateStatementsImpl()
It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"
|
String |
getConfirmationMessage() |
protected String |
getTableName(String tableName) |
protected abstract String |
getTaskId() |
protected boolean |
isApplicable() |
void |
setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) |
void |
setUp() |
liquibase.exception.ValidationErrors |
validate(liquibase.database.Database database) |
protected KeycloakSession kcSession
protected liquibase.database.Database database
protected liquibase.database.jvm.JdbcConnection jdbcConnection
protected Connection connection
protected StringBuilder confirmationMessage
protected List<liquibase.statement.SqlStatement> statements
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
validate
in interface liquibase.change.custom.CustomChange
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
setFileOpener
in interface liquibase.change.custom.CustomChange
public String getConfirmationMessage()
getConfirmationMessage
in interface liquibase.change.custom.CustomChange
public void setUp() throws liquibase.exception.SetupException
setUp
in interface liquibase.change.custom.CustomChange
liquibase.exception.SetupException
public liquibase.statement.SqlStatement[] generateStatements(liquibase.database.Database database) throws liquibase.exception.CustomChangeException
generateStatements
in interface liquibase.change.custom.CustomSqlChange
liquibase.exception.CustomChangeException
protected boolean isApplicable() throws liquibase.exception.CustomChangeException
liquibase.exception.CustomChangeException
protected abstract void generateStatementsImpl() throws liquibase.exception.CustomChangeException
liquibase.exception.CustomChangeException
protected abstract String getTaskId()
Copyright © 2021 JBoss by Red Hat. All rights reserved.